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/16909] New: GDB `add-inferior` causes segfaults on OSX


https://sourceware.org/bugzilla/show_bug.cgi?id=16909

            Bug ID: 16909
           Summary: GDB `add-inferior` causes segfaults on OSX
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: evan.sultanik at digitaloperatives dot com

$ gdb -ex 'add-inferior -exec pwd' -ex 'inferior 2' -ex 'run'

and

$ gdb -ex 'add-inferior -copies 2 -exec pwd' -ex 'inferior 2' -ex 'run'

both segfault on the `run` command.  In both cases it appears as if it is due
to a null pointer dereference, however, the stack traces for both versions are
slightly different.  I assume that the underlying cause is that multiple
inferiors are not supported in that environment, but GDB should die more
gracefully if that is the case.

I have reproduced this on GDB 7.6 and 7.6.2, both configured as
"x86_64-apple-darwin13.0.0", and also GDB 7.7 configured as
"x86_64-apple-darwin13.1.0â.

-- 
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]