This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/12018] New: regression: 7.2 prctl syscall inside a thread results in Bad Address
- From: "arvid dot picciani at nokia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 14 Sep 2010 13:58:31 -0000
- Subject: [Bug threads/12018] New: regression: 7.2 prctl syscall inside a thread results in Bad Address
- Reply-to: sourceware-bugzilla at sourceware dot org
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.