* [uml-devel] SIGTRAP and gdb multithreading program under UML
@ 2006-07-13 12:49 Miao Qingjun
2006-07-13 18:45 ` Blaisorblade
2006-07-13 18:45 ` Jeff Dike
0 siblings, 2 replies; 5+ messages in thread
From: Miao Qingjun @ 2006-07-13 12:49 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: user-mode-linux-user
[-- Attachment #1.1: Type: text/plain, Size: 272 bytes --]
Hi,
Under UML bash, I gdb a multithreading program, and set a breakpoint on thread entry function,
But when run it, gdb is not stop at the breakpoint,
instead, program exit because:
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
Why?
Thanks.
[-- Attachment #1.2: Type: text/html, Size: 910 bytes --]
[-- Attachment #2: Type: text/plain, Size: 375 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 194 bytes --]
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] SIGTRAP and gdb multithreading program under UML
2006-07-13 12:49 [uml-devel] SIGTRAP and gdb multithreading program under UML Miao Qingjun
@ 2006-07-13 18:45 ` Blaisorblade
2006-07-13 18:45 ` Jeff Dike
1 sibling, 0 replies; 5+ messages in thread
From: Blaisorblade @ 2006-07-13 18:45 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Miao Qingjun, user-mode-linux-user
On Thursday 13 July 2006 14:49, Miao Qingjun wrote:
> Hi,
>
> Under UML bash, I gdb a multithreading program, and set a breakpoint on
> thread entry function, But when run it, gdb is not stop at the breakpoint,
> instead, program exit because:
>
> Program terminated with signal SIGTRAP, Trace/breakpoint trap.
I don't know, but:
Is that different under host / UML? If yes /lib/tls may play a role (but it is
used on host, and it should be used in UML).
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] SIGTRAP and gdb multithreading program under UML
2006-07-13 12:49 [uml-devel] SIGTRAP and gdb multithreading program under UML Miao Qingjun
2006-07-13 18:45 ` Blaisorblade
@ 2006-07-13 18:45 ` Jeff Dike
2006-07-13 18:50 ` Blaisorblade
1 sibling, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2006-07-13 18:45 UTC (permalink / raw)
To: Miao Qingjun; +Cc: user-mode-linux-user, user-mode-linux-devel
On Thu, Jul 13, 2006 at 08:49:31PM +0800, Miao Qingjun wrote:
> Under UML bash, I gdb a multithreading program, and set a breakpoint on thread entry function,
> But when run it, gdb is not stop at the breakpoint,
> instead, program exit because:
>
> Program terminated with signal SIGTRAP, Trace/breakpoint trap.
What version of UML? Sounds like a bug in UML interrupt handling.
Can you send me a copy of the binary you're debugging?
Jeff
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] SIGTRAP and gdb multithreading program under UML
2006-07-13 18:45 ` Jeff Dike
@ 2006-07-13 18:50 ` Blaisorblade
2006-07-13 19:16 ` Jeff Dike
0 siblings, 1 reply; 5+ messages in thread
From: Blaisorblade @ 2006-07-13 18:50 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Jeff Dike, Miao Qingjun, user-mode-linux-user
On Thursday 13 July 2006 20:45, Jeff Dike wrote:
> On Thu, Jul 13, 2006 at 08:49:31PM +0800, Miao Qingjun wrote:
> > Under UML bash, I gdb a multithreading program, and set a breakpoint on
> > thread entry function, But when run it, gdb is not stop at the
> > breakpoint,
> > instead, program exit because:
> >
> > Program terminated with signal SIGTRAP, Trace/breakpoint trap.
>
> What version of UML? Sounds like a bug in UML interrupt handling.
>
> Can you send me a copy of the binary you're debugging?
SIGTRAP must be sent for the breakpoint - I think the problem is that either
GDB misinterprets it or it is not sent the correct way.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] SIGTRAP and gdb multithreading program under UML
2006-07-13 18:50 ` Blaisorblade
@ 2006-07-13 19:16 ` Jeff Dike
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Dike @ 2006-07-13 19:16 UTC (permalink / raw)
To: Blaisorblade; +Cc: Miao Qingjun, user-mode-linux-user, user-mode-linux-devel
On Thu, Jul 13, 2006 at 08:50:29PM +0200, Blaisorblade wrote:
> SIGTRAP must be sent for the breakpoint - I think the problem is that either
> GDB misinterprets it or it is not sent the correct way.
I'm thinking the latter...
Jeff
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-13 19:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-13 12:49 [uml-devel] SIGTRAP and gdb multithreading program under UML Miao Qingjun
2006-07-13 18:45 ` Blaisorblade
2006-07-13 18:45 ` Jeff Dike
2006-07-13 18:50 ` Blaisorblade
2006-07-13 19:16 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox