* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
@ 2012-09-09 8:42 ` anton.kochkov at gmail dot com
2012-09-09 9:39 ` anton.kochkov at gmail dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: anton.kochkov at gmail dot com @ 2012-09-09 8:42 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
--- Comment #1 from Anton Kochkov <anton.kochkov at gmail dot com> 2012-09-09 08:42:18 UTC ---
7.4 version works well, without this bug
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
2012-09-09 8:42 ` [Bug gdb/14564] " anton.kochkov at gmail dot com
@ 2012-09-09 9:39 ` anton.kochkov at gmail dot com
2012-09-09 12:22 ` jan.kratochvil at redhat dot com
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: anton.kochkov at gmail dot com @ 2012-09-09 9:39 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
--- Comment #2 from Anton Kochkov <anton.kochkov at gmail dot com> 2012-09-09 09:39:08 UTC ---
When add printf("status=%lx", status); before gdb_assert(WIFSTOPPED(status));
in gdb/common/linux-ptrace.c in function linux_ptrace_test_ret_to_nx() it show
"status=9" before /common/linux-ptrace.c:117: internal-error:
linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
2012-09-09 8:42 ` [Bug gdb/14564] " anton.kochkov at gmail dot com
2012-09-09 9:39 ` anton.kochkov at gmail dot com
@ 2012-09-09 12:22 ` jan.kratochvil at redhat dot com
2012-09-09 12:23 ` jan.kratochvil at redhat dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-09 12:22 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-09 12:21:48 UTC ---
Created attachment 6629
--> http://sourceware.org/bugzilla/attachment.cgi?id=6629
Detection of PaX, also on x86_64.
Could you check if this patch works? It would be nice to test it also on
x86_64.
Downloading some gentoo .iso but not sure how it will work 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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (2 preceding siblings ...)
2012-09-09 12:22 ` jan.kratochvil at redhat dot com
@ 2012-09-09 12:23 ` jan.kratochvil at redhat dot com
2012-09-09 13:50 ` anton.kochkov at gmail dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-09 12:23 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jan.kratochvil at redhat
| |dot com
AssignedTo|unassigned at sourceware |jan.kratochvil at redhat
|dot org |dot com
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (3 preceding siblings ...)
2012-09-09 12:23 ` jan.kratochvil at redhat dot com
@ 2012-09-09 13:50 ` anton.kochkov at gmail dot com
2012-09-09 13:54 ` jan.kratochvil at redhat dot com
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: anton.kochkov at gmail dot com @ 2012-09-09 13:50 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
--- Comment #4 from Anton Kochkov <anton.kochkov at gmail dot com> 2012-09-09 13:50:13 UTC ---
(In reply to comment #3)
> Created attachment 6629 [details]
> Detection of PaX, also on x86_64.
>
> Could you check if this patch works? It would be nice to test it also on
> x86_64.
> Downloading some gentoo .iso but not sure how it will work for me.
With applied patch:
└>gdb `which elinks`
GNU gdb (Gentoo 7.5 p1) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/elinks...(no debugging symbols found)...done.
(gdb) run http://google.com
Starting program: /usr/bin/elinks http://google.com
./common/linux-ptrace.c:136: internal-error: linux_ptrace_test_ret_to_nx:
Assertion `WIFSIGNALED (status) == SIGKILL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (4 preceding siblings ...)
2012-09-09 13:50 ` anton.kochkov at gmail dot com
@ 2012-09-09 13:54 ` jan.kratochvil at redhat dot com
2012-09-09 14:10 ` anton.kochkov at gmail dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-09 13:54 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #6629|0 |1
is obsolete| |
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-09 13:54:29 UTC ---
Created attachment 6630
--> http://sourceware.org/bugzilla/attachment.cgi?id=6630
Fixed patch.
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (5 preceding siblings ...)
2012-09-09 13:54 ` jan.kratochvil at redhat dot com
@ 2012-09-09 14:10 ` anton.kochkov at gmail dot com
2012-09-09 14:15 ` jan.kratochvil at redhat dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: anton.kochkov at gmail dot com @ 2012-09-09 14:10 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
--- Comment #6 from Anton Kochkov <anton.kochkov at gmail dot com> 2012-09-09 14:09:47 UTC ---
(In reply to comment #5)
> Created attachment 6630 [details]
> Fixed patch.
Now I have this output:
┌─[ xvilka@XLaptop ] [12:09:19 ] ~/gdb-bug
└>gdb `which elinks`
GNU gdb (Gentoo 7.5 p1) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/elinks...(no debugging symbols found)...done.
(gdb) run http://google.com
Starting program: /usr/bin/elinks http://google.com
warning: linux_ptrace_test_ret_to_nx: Cannot PTRACE_KILL: No such process
warning: Cannot call inferior functions, Linux kernel PaX protection forbids
return to non-executable pages!
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0xa9249d93 in GC_is_black_listed () from /usr/lib/libgc.so.1
(gdb)
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (6 preceding siblings ...)
2012-09-09 14:10 ` anton.kochkov at gmail dot com
@ 2012-09-09 14:15 ` jan.kratochvil at redhat dot com
2012-09-09 14:37 ` anton.kochkov at gmail dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-09 14:15 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #6630|0 |1
is obsolete| |
--- Comment #7 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-09 14:14:44 UTC ---
Created attachment 6631
--> http://sourceware.org/bugzilla/attachment.cgi?id=6631
Patch #3.
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (7 preceding siblings ...)
2012-09-09 14:15 ` jan.kratochvil at redhat dot com
@ 2012-09-09 14:37 ` anton.kochkov at gmail dot com
2023-12-31 14:55 ` ssbssa at sourceware dot org
2024-01-01 5:56 ` jan at jankratochvil dot net
10 siblings, 0 replies; 12+ messages in thread
From: anton.kochkov at gmail dot com @ 2012-09-09 14:37 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14564
--- Comment #8 from Anton Kochkov <anton.kochkov at gmail dot com> 2012-09-09 14:36:41 UTC ---
(In reply to comment #7)
> Created attachment 6631 [details]
> Patch #3.
Yes, it works:
┌─[ xvilka@XLaptop ] [12:09:19 ] ~/gdb-bug
└>gdb `which elinks`
GNU gdb (Gentoo 7.5 p1) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/elinks...(no debugging symbols found)...done.
(gdb) run http://google.com
Starting program: /usr/bin/elinks http://google.com
warning: Cannot call inferior functions, Linux kernel PaX protection forbids
return to non-executable pages!
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x9d11ed93 in GC_is_black_listed () from /usr/lib/libgc.so.1
(gdb)
--
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] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (8 preceding siblings ...)
2012-09-09 14:37 ` anton.kochkov at gmail dot com
@ 2023-12-31 14:55 ` ssbssa at sourceware dot org
2024-01-01 5:56 ` jan at jankratochvil dot net
10 siblings, 0 replies; 12+ messages in thread
From: ssbssa at sourceware dot org @ 2023-12-31 14:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=14564
Hannes Domani <ssbssa at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ssbssa at sourceware dot org
--- Comment #9 from Hannes Domani <ssbssa at sourceware dot org> ---
(In reply to Anton Kochkov from comment #8)
> (In reply to comment #7)
> > Created attachment 6631 [details]
> > Patch #3.
>
> Yes, it works:
A version of this patch was applied here:
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=6e3c039e9cd766aae9e300fef549926ef2df2bc9
So can this be closed?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug gdb/14564] ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
2012-09-09 8:40 [Bug gdb/14564] New: ./common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed anton.kochkov at gmail dot com
` (9 preceding siblings ...)
2023-12-31 14:55 ` ssbssa at sourceware dot org
@ 2024-01-01 5:56 ` jan at jankratochvil dot net
10 siblings, 0 replies; 12+ messages in thread
From: jan at jankratochvil dot net @ 2024-01-01 5:56 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=14564
Jan Kratochvil <jan at jankratochvil dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #10 from Jan Kratochvil <jan at jankratochvil dot net> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread