public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kconfig: conf segfault (with invalid kconfig contents)
@ 2007-10-24  3:14 Olof Johansson
  2007-10-25 21:32 ` Sam Ravnborg
  2008-12-27 21:48 ` Sam Ravnborg
  0 siblings, 2 replies; 4+ messages in thread
From: Olof Johansson @ 2007-10-24  3:14 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel

Hi,

Sorry, no patch, just a bugreport. :)

I did a mistake in some Kconfig changes (locally) and got a segfault
from conf:

#0  0x10005fe0 in sym_check_deps ()
#1  0x10005f40 in sym_check_expr_deps ()
#2  0x1000605c in sym_check_deps ()
#3  0x1000f3f4 in conf_parse ()
#4  0x10003824 in main ()


The way to reproduce is simple. I just added the equivalent of this
to arch/powerpc/Kconfig:

---
config TEST1
        bool
        depends on TEST2 && PCI
        select TEST2

config TEST2
        bool
---

Neither TEST1 nor TEST2 exists in the existing .config when I run make
oldconfig to reproduce.

It's clearly invalid in that it depends on what it selects, but it should
just abort instead.


-Olof

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-27 21:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24  3:14 Kconfig: conf segfault (with invalid kconfig contents) Olof Johansson
2007-10-25 21:32 ` Sam Ravnborg
2007-10-28  0:02   ` Roman Zippel
2008-12-27 21:48 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox