This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/13218] New: GDB always segfaults on Linux 3.0 and ARM


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]