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 threads/12018] New: regression: 7.2 prctl syscall inside a thread results in Bad Address


open any program that starts multiple threads. wait for them to  be created, 
then stop it

(gdb) set $a = malloc (10)
(gdb) call prctl(16,$a)
$1 = -1
(gdb) print errno
$2 = 14

passing any inferior owned address will reproduce this.
the call works fine in 7.1, and when not starting pthreads.
the current thread does not matter, can be main thread.

16 is PR_GET_NAME, for reference

-- 
           Summary: regression: 7.2 prctl syscall inside a thread results in
                    Bad Address
           Product: gdb
           Version: 7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: threads
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: arvid dot picciani at nokia dot com
                CC: gdb-prs at sourceware dot org
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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