SIGTRAP and gdb multithreading program under UML
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.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Miao Qingjun
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).
Signature · 17 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines · Miao Qingjun
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · Jeff Dike
Quoted 6 lines · Miao Qingjun
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.
Signature · 17 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · Blaisorblade
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel