public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address
       [not found] <bug-12018-4717@http.sourceware.org/bugzilla/>
@ 2011-01-19 17:46 ` tromey at redhat dot com
  2012-01-11 19:24 ` tromey at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2011-01-19 17:46 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address
       [not found] <bug-12018-4717@http.sourceware.org/bugzilla/>
  2011-01-19 17:46 ` [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address tromey at redhat dot com
@ 2012-01-11 19:24 ` tromey at redhat dot com
  2012-11-09 14:47 ` gdb at dpinol dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2012-01-11 19:24 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-01-11
     Ever Confirmed|0                           |1

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-01-11 19:23:59 UTC ---
Any response?

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address
       [not found] <bug-12018-4717@http.sourceware.org/bugzilla/>
  2011-01-19 17:46 ` [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address tromey at redhat dot com
  2012-01-11 19:24 ` tromey at redhat dot com
@ 2012-11-09 14:47 ` gdb at dpinol dot com
  2012-11-09 14:56 ` palves at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: gdb at dpinol dot com @ 2012-11-09 14:47 UTC (permalink / raw)
  To: gdb-prs

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

Dani <gdb at dpinol dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdb at dpinol dot com

--- Comment #3 from Dani <gdb at dpinol dot com> 2012-11-09 14:47:55 UTC ---
Any news about this?

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address
       [not found] <bug-12018-4717@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2012-11-09 14:47 ` gdb at dpinol dot com
@ 2012-11-09 14:56 ` palves at redhat dot com
  2012-11-09 15:57 ` gdb at dpinol dot com
  2012-11-09 16:04 ` palves at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: palves at redhat dot com @ 2012-11-09 14:56 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #4 from Pedro Alves <palves at redhat dot com> 2012-11-09 14:56:22 UTC ---
Is this failing for you?  What have you done, what did you expect, and what did
you get instead?

It works for me too.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address
       [not found] <bug-12018-4717@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2012-11-09 14:56 ` palves at redhat dot com
@ 2012-11-09 15:57 ` gdb at dpinol dot com
  2012-11-09 16:04 ` palves at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: gdb at dpinol dot com @ 2012-11-09 15:57 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from Dani <gdb at dpinol dot com> 2012-11-09 15:57:01 UTC ---
Hi,
I didn't test it myself, my actual problem is this
https://bugreports.qt-project.org/browse/QTCREATORBUG-2332 . And since both
tickets are open, I assumed that the gdb problem still persisted.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address
       [not found] <bug-12018-4717@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2012-11-09 15:57 ` gdb at dpinol dot com
@ 2012-11-09 16:04 ` palves at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: palves at redhat dot com @ 2012-11-09 16:04 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #6 from Pedro Alves <palves at redhat dot com> 2012-11-09 16:04:00 UTC ---
I see, thanks.  Let's close this then.  Please reopen if you can still
reproduce with a current gdb.  Note that nowadays, at least on GNU/Linux, GDB
tells you the thread's name in the output of "-thread-info".  It is extracted
from 
/proc/PID/task/TID/comm.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-09 16:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-12018-4717@http.sourceware.org/bugzilla/>
2011-01-19 17:46 ` [Bug threads/12018] regression: 7.2 prctl syscall inside a thread results in Bad Address tromey at redhat dot com
2012-01-11 19:24 ` tromey at redhat dot com
2012-11-09 14:47 ` gdb at dpinol dot com
2012-11-09 14:56 ` palves at redhat dot com
2012-11-09 15:57 ` gdb at dpinol dot com
2012-11-09 16:04 ` palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).