public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "scott dot sourceware dot 2009 at scottrix dot co dot uk" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/10909] New: segfault when STARTUP_WITH_SHELL = 0, in breakup_args. Date: Thu, 05 Nov 2009 14:58:00 -0000 [thread overview] Message-ID: <20091105145840.10909.scott.sourceware.2009@scottrix.co.uk> (raw) Setting STARTUP_WITH_SHELL to 0 in inferior.h means that gdb segfaults when trying to run a program with arguments. This is because of the code: - cp = strchr (cp, ' '); - if (cp == NULL) - cp = strchr (cp, '\t'); - if (cp == NULL) - cp = strchr (cp, '\n'); Which is clearly broken. While google I found a post which suggests this problem has been there since at least 5.3 !!!. I will attach a suggested patch. -- Summary: segfault when STARTUP_WITH_SHELL = 0, in breakup_args. Product: gdb Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned at sourceware dot org ReportedBy: scott dot sourceware dot 2009 at scottrix dot co dot uk CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10909 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next reply other threads:[~2009-11-05 14:58 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-11-05 14:58 scott dot sourceware dot 2009 at scottrix dot co dot uk [this message] 2009-11-05 14:59 ` [Bug gdb/10909] " scott dot sourceware dot 2009 at scottrix dot co dot uk 2009-11-05 21:22 ` tromey at redhat dot com
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=20091105145840.10909.scott.sourceware.2009@scottrix.co.uk \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).