This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13218] New: GDB always segfaults on Linux 3.0 and ARM
- From: "johannespfau at gmx dot de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 22 Sep 2011 15:28:05 +0000
- Subject: [Bug gdb/13218] New: GDB always segfaults on Linux 3.0 and ARM
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13218
Bug #: 13218
Summary: GDB always segfaults on Linux 3.0 and ARM
Product: gdb
Version: 7.3
Status: NEW
Severity: critical
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: johannespfau@gmx.de
Classification: Unclassified
Created attachment 5940
--> http://sourceware.org/bugzilla/attachment.cgi?id=5940
patch
Because of a bug in the get_linux_version function in the arm-linux-nat.c file,
gdb always segfaults. get_linux_version assumes that a linux kernel version
always has 3 version numbers (n.n.n) which is not true for the linux 3.0
kernel. In my case, the kernel version string is "3.0-ARCH". Because of that,
the third token returned by strtok is null, which causes the segfault.
Patch for gdb 7.3.1 attached.
--
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.