public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system
@ 2009-10-23 4:40 melwyn dot lobo at gmail dot com
2009-10-23 4:41 ` [Bug gdb/10833] " melwyn dot lobo at gmail dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: melwyn dot lobo at gmail dot com @ 2009-10-23 4:40 UTC (permalink / raw)
To: gdb-prs
When running gdb on a multithreaded program on a dual core SMP system the
program carshes with the error log as given below. The same program when run
without gdb works fine.
root$ gdb hex
GNU gdb STMicroelectronics/Linux Base 6.6-15
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "arm-cortex-linux-gnueabi"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /opt/hex
[Thread debugging using libthread_db enabled]
[New Thread 1073848128 (LWP 348)]
[New Thread 1083503760 (LWP 351)]
[New Thread 1091892368 (LWP 352)]
348: Hello world [0]
0
348: Hello world [1]
348: Hello world [2]
348: Hello world [3]
348: Hello world [4]
348: Hello world [5]
348: Hello world [6]
348: Hello world [7]
348: Hello world [8]
348: Hello world [9]
348: Hello world [0]
[Thread 1083503760 (LWP 351) exited]
Program received signal SIGILL, Illegal instruction.
[Switching to Thread 1083503760 (LWP 351)]
0x4002639c in __nptl_death_event () from /lib/libpthread.so.0
(gdb) bt
#0 0x4002639c in __nptl_death_event () from /lib/libpthread.so.0
#1 0x40026d3c in start_thread () from /lib/libpthread.so.0
#2 0x400f1548 in clone () from /lib/libc.so.6
Backtrace stopped: frame did not save the PC
(gdb) c
Continuing.
../../gdb/linux-nat.c:2074: internal-error: linux_nat_wait: Assertion
`iterate_over_lwps (running_ca
llback, NULL)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
../../gdb/linux-nat.c:2074: internal-error: linux_nat_wait: Assertion
`iterate_over_lwps (running_ca
llback, NULL)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
root$
GDB Version: 6.6
Platform: ARM CortexA9 Dual Core SMP
GLIBC - 2.6.1
GCC - 4.2.4
Kernel - 2.6.27
Configure options to GDB:
../configure --host=arm-cortex-linux-gnueabi --build=i686-pc-linux-gnu --
prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --
sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --
libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --
sharedstatedir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --
disable-gdbtk
The sample program which crashed repeatedly is attached.
--
Summary: GDB crashes on debugging multithreaded program on ARM
SMP dual core system
Product: gdb
Version: 6.6
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: melwyn dot lobo at gmail dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug gdb/10833] GDB crashes on debugging multithreaded program on ARM SMP dual core system
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
@ 2009-10-23 4:41 ` melwyn dot lobo at gmail dot com
2009-10-23 4:42 ` melwyn dot lobo at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: melwyn dot lobo at gmail dot com @ 2009-10-23 4:41 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From melwyn dot lobo at gmail dot com 2009-10-23 04:41 -------
Created an attachment (id=4312)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4312&action=view)
Plain multithreaded program to illustrate crash issue
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug gdb/10833] GDB crashes on debugging multithreaded program on ARM SMP dual core system
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
2009-10-23 4:41 ` [Bug gdb/10833] " melwyn dot lobo at gmail dot com
@ 2009-10-23 4:42 ` melwyn dot lobo at gmail dot com
2009-10-23 5:17 ` ppluzhnikov at google dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: melwyn dot lobo at gmail dot com @ 2009-10-23 4:42 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug gdb/10833] GDB crashes on debugging multithreaded program on ARM SMP dual core system
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
2009-10-23 4:41 ` [Bug gdb/10833] " melwyn dot lobo at gmail dot com
2009-10-23 4:42 ` melwyn dot lobo at gmail dot com
@ 2009-10-23 5:17 ` ppluzhnikov at google dot com
2009-10-23 9:17 ` melwyn dot lobo at gmail dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ppluzhnikov at google dot com @ 2009-10-23 5:17 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From ppluzhnikov at google dot com 2009-10-23 05:17 -------
GDB 6.6 is 3 years old.
Could you try to reproduce this using (just released) 7.0 or (better yet) GDB
built from CVS?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug gdb/10833] GDB crashes on debugging multithreaded program on ARM SMP dual core system
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
` (2 preceding siblings ...)
2009-10-23 5:17 ` ppluzhnikov at google dot com
@ 2009-10-23 9:17 ` melwyn dot lobo at gmail dot com
2009-10-23 14:15 ` ppluzhnikov at google dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: melwyn dot lobo at gmail dot com @ 2009-10-23 9:17 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From melwyn dot lobo at gmail dot com 2009-10-23 09:17 -------
(In reply to comment #2)
> GDB 6.6 is 3 years old.
> Could you try to reproduce this using (just released) 7.0 or (better yet) GDB
> built from CVS?
I have also experienced the same behaviour on GDB 6.8. Do you think this could
be of use to you? It will take some time for me to setup ARM cortex build on
GDB 7.0.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug gdb/10833] GDB crashes on debugging multithreaded program on ARM SMP dual core system
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
` (3 preceding siblings ...)
2009-10-23 9:17 ` melwyn dot lobo at gmail dot com
@ 2009-10-23 14:15 ` ppluzhnikov at google dot com
2009-10-28 5:50 ` melwyn dot lobo at gmail dot com
2009-10-28 5:51 ` melwyn dot lobo at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: ppluzhnikov at google dot com @ 2009-10-23 14:15 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From ppluzhnikov at google dot com 2009-10-23 14:15 -------
(In reply to comment #3)
> I have also experienced the same behaviour on GDB 6.8.
There have been fixes to linux-thread-db and linux-nat since 6.8, so yes I
believe it would help to know if the problem is still present in current CVS
version.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug gdb/10833] GDB crashes on debugging multithreaded program on ARM SMP dual core system
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
` (4 preceding siblings ...)
2009-10-23 14:15 ` ppluzhnikov at google dot com
@ 2009-10-28 5:50 ` melwyn dot lobo at gmail dot com
2009-10-28 5:51 ` melwyn dot lobo at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: melwyn dot lobo at gmail dot com @ 2009-10-28 5:50 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From melwyn dot lobo at gmail dot com 2009-10-28 05:50 -------
(In reply to comment #4)
> (In reply to comment #3)
> > I have also experienced the same behaviour on GDB 6.8.
> There have been fixes to linux-thread-db and linux-nat since 6.8, so yes I
> believe it would help to know if the problem is still present in current CVS
> version.
I am able to reproduce the exact same behaviour on GDB 7.0. The remaining bug
environment is the same.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug gdb/10833] GDB crashes on debugging multithreaded program on ARM SMP dual core system
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
` (5 preceding siblings ...)
2009-10-28 5:50 ` melwyn dot lobo at gmail dot com
@ 2009-10-28 5:51 ` melwyn dot lobo at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: melwyn dot lobo at gmail dot com @ 2009-10-28 5:51 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From melwyn dot lobo at gmail dot com 2009-10-28 05:51 -------
> I am able to reproduce the exact same behaviour on GDB 7.0. The remaining
bug
> environment is the same.
Also if I disable one of the cores, OR if I set scheduler affinity to a
particular processor this error (SIGILL) does not come.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10833
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-10-28 5:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-23 4:40 [Bug gdb/10833] New: GDB crashes on debugging multithreaded program on ARM SMP dual core system melwyn dot lobo at gmail dot com
2009-10-23 4:41 ` [Bug gdb/10833] " melwyn dot lobo at gmail dot com
2009-10-23 4:42 ` melwyn dot lobo at gmail dot com
2009-10-23 5:17 ` ppluzhnikov at google dot com
2009-10-23 9:17 ` melwyn dot lobo at gmail dot com
2009-10-23 14:15 ` ppluzhnikov at google dot com
2009-10-28 5:50 ` melwyn dot lobo at gmail dot com
2009-10-28 5:51 ` melwyn dot lobo at gmail 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).