NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/46989: gdb stepping gets confused in threaded programs

>Number:         46989
>Category:       toolchain
>Synopsis:       gdb stepping gets confused in threaded programs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 20 12:35:00 +0000 2012
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.11
The NetBSD Foundation, Inc.
System: NetBSD 6.99.11 NetBSD 6.99.11 
(WHOEVER) #3: Wed Sep 19 09:38:50 CEST 2012 
Architecture: sparc64
Machine: sparc64

(Single) stepping in threaded programs seems to have probblems, at least
on sparc64:

[New LWP 2]
/usr/src/external/gpl3/gdb/dist/gdb/infrun.c:3550: internal-error: 
handle_inferior_event: Assertion `ptid_equal (singlestep_ptid, ecs->ptid)' 
A problem internal to GDB has been detected,
further debugging may prove unreliable.


cd /usr/tests/lib/libpthread
gdb ./t_join
break pthread_join
run pthread_join

and then, when hitting the breakpoint, do: c


Home | Main Index | Thread Index | Old Index