public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/14392] New: list ,5 crashes GDB with a SEGFAULT
@ 2012-07-24 14:50 kevin.pouget at gmail dot com
  2012-07-31 14:13 ` [Bug cli/14392] " tromey at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kevin.pouget at gmail dot com @ 2012-07-24 14:50 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14392

             Bug #: 14392
           Summary: list ,5 crashes GDB with a SEGFAULT
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
        AssignedTo: unassigned@sourceware.org
        ReportedBy: kevin.pouget@gmail.com
    Classification: Unclassified


`help list` specifies that last can have two arguments:

> One argument specifies a line, and ten lines are listed around that line.
> Two arguments with comma between specify starting and ending lines to list.

But if you forget the first argument, GDB crashes with a SEGFAULT:

$ where
#0  0x00000000004d8947 in filter_sals (sals=0x7fff2b82f4d0)    at
.../gdb/cli/cli-cmds.c:1521
#1  0x00000000004d7664 in list_command (arg=0xc83732 ",5", from_tty=1)    at
.../gdb/cli/cli-cmds.c:964

it looks like `sals` is never initialized when the arguments starts with a ','.

GDB HEAD is affected, but not the one from Fedora 17 package
(7.4.50.20120120-49.fc17)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2012-08-06 18:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-24 14:50 [Bug cli/14392] New: list ,5 crashes GDB with a SEGFAULT kevin.pouget at gmail dot com
2012-07-31 14:13 ` [Bug cli/14392] " tromey at redhat dot com
2012-08-05 19:49 ` jan.kratochvil at redhat dot com
2012-08-06 18:29 ` cvs-commit at gcc dot gnu.org
2012-08-06 18:34 ` cvs-commit at gcc dot gnu.org
2012-08-06 18:36 ` tromey at redhat dot com

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).