This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/14392] New: list ,5 crashes GDB with a SEGFAULT
- From: "kevin.pouget at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 24 Jul 2012 14:49:48 +0000
- Subject: [Bug cli/14392] New: list ,5 crashes GDB with a SEGFAULT
- Auto-submitted: auto-generated
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.