This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/12018] regression: 7.2 prctl syscall inside a threadresults in Bad Address
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 19 Jan 2011 17:46:16 +0000
- Subject: [Bug threads/12018] regression: 7.2 prctl syscall inside a threadresults in Bad Address
- Auto-submitted: auto-generated
- References: <bug-12018-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12018
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-01-19 17:46:04 UTC ---
(In reply to comment #0)
> (gdb) set $a = malloc (10)
PR_GET_NAME requires a 16 byte buffer.
> (gdb) call prctl(16,$a)
> $1 = -1
> (gdb) print errno
> $2 = 14
This is EFAULT.
So maybe something is wrong in your call....
> 16 is PR_GET_NAME, for reference
On my machine, PR_GET_NAME is 14.
16 is PR_SET_TIMING. When I try this, I get EINVAL, though.
When I use 14, it works for me.
--
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.