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] regression: 7.2 prctl syscall inside a threadresults in Bad Address


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.


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