All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olof Johansson <olof@lixom.net>
To: sam@ravnborg.org
Cc: linux-kernel@vger.kernel.org
Subject: Kconfig: conf segfault (with invalid kconfig contents)
Date: Tue, 23 Oct 2007 22:14:01 -0500	[thread overview]
Message-ID: <20071024031401.GA13376@lixom.net> (raw)

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

             reply	other threads:[~2007-10-24  3:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24  3:14 Olof Johansson [this message]
2007-10-25 21:32 ` Kconfig: conf segfault (with invalid kconfig contents) Sam Ravnborg
2007-10-28  0:02   ` Roman Zippel
2008-12-27 21:48 ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071024031401.GA13376@lixom.net \
    --to=olof@lixom.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.