gdb debugging problem on uml-2.6.10
Hi,
When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a problem.
When I set a breakpoint somewhere, and after some step, uml will always get a SIGTRAP signal and trap into gdb.
Does anyone met the same problem as me? Any known fix for it?
thanks!
Eric
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 4 lines · Mei,Jia
When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a problem.
When I set a breakpoint somewhere, and after some step, uml will always get a SIGTRAP signal and trap into gdb.
You are running UML inside gdb, not gdb inside UML, correct?
And you get a SIGTRAP from nowhere, someplace that you didn't set a breakpoint?
Can you post a gdb log of this?
And can you try something more recent than 2.6.10?
Jeff
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 8 lines · Mei,Jia
Hi,
When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a problem.
When I set a breakpoint somewhere, and after some step, uml will always get a SIGTRAP signal and trap into gdb.
Does anyone met the same problem as me? Any known fix for it?
No, I don't think there is any known fix for it. However, does this problem keep on and makes debugging impossible (i.e., after you "cont", does it keep stopping)?
Quoted 3 lines
thanks!
Eric
Hmm, are you doing debugging in SKAS or in TT mode? In the second case, then it can be a bug in the ptrace proxy (which has a big bug with some gdb releases >= 6.0).
In the first case, maybe it's something I observed too (I'm not sure because I don't use a lot gdb with UML)... Better, I've observed breakpoints being *skipped* by gdb.
Signature · 18 lines
Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines · Blaisorblade
Quoted 5 lines
When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a problem.
When I set a breakpoint somewhere, and after some step, uml will always get a SIGTRAP signal and trap into gdb.
Quoted 7 lines
Quoted 1 line
Does anyone met the same problem as me? Any known fix for it?
No, I don't think there is any known fix for it. However, does this problem keep on and makes debugging impossible (i.e., after you "cont", does it keep stopping)?
Hmm, are you doing debugging in SKAS or in TT mode? In the second case, then it can be a bug in the ptrace proxy (which has a big bug with some gdb releases >= 6.0).
In the first case, maybe it's something I observed too (I'm not sure because I don't use a lot gdb with UML)... Better, I've observed breakpoints being *skipped* by gdb.
I'm sorry for the late response since away for a few days. It turn out to be the rootfs problem, although I don't know why (not related to tls), change to a new rootfs fixed it. Maybe don't need to chase more on this. And appreciate you and Jeff's reply.
Eric
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 21 lines · Mei,Jia
Quoted 12 lines · Blaisorblade
Quoted 7 lines
When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a problem.
When I set a breakpoint somewhere, and after some step, uml will always get a SIGTRAP signal and trap into gdb.
Does anyone met the same problem as me? Any known fix for it?
No, I don't think there is any known fix for it. However, does this problem keep on and makes debugging impossible (i.e., after you "cont", does it keep stopping)?
Quoted 7 lines
Hmm, are you doing debugging in SKAS or in TT mode? In the second case, then it can be a bug in the ptrace proxy (which has a big bug with some gdb releases >= 6.0).
In the first case, maybe it's something I observed too (I'm not sure because I don't use a lot gdb with UML)... Better, I've observed breakpoints being *skipped* by gdb.
Quoted 5 lines
I'm sorry for the late response since away for a few days. It turn out to be the rootfs problem, although I don't know why (not related to tls), change to a new rootfs fixed it. Maybe don't need to chase more on this.
And appreciate you and Jeff's reply.
This just happened to other three people (including me) in these days, so I'd like to know which rootfs's you used, to get a feeling of what could be going on. Thanks a lot.
Signature · 17 lines
Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 1 line · Blaisorblade
This just happened to other three people (including me) in these days, so I'd like to know which rootfs's you used, to get a feeling of what could be going
The rootfs is a kind of minimal installation of FC3 (obtained from others), the new rootfs is also FC3 made by others and I was told there's nothing special trick for the new rootfs. I'll ask for more details.
Eric
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel