You are not logged in.

#1 2015-03-08 08:24:40

ansh_kumar
Member
Registered: 2013-02-01
Posts: 89

[SOLVED] GDB freezes computer with multithreaded program

I'm working on https://github.com/Fluorohydride/ygopro. I'm using eclipse on a fully updated system (linux-lts 3.14). During debug when I step over or step in, whole system freezes. I've to power off the system. This behavior is random, like it may happen after 10 step overs or 18 , sometimes it happens with just 4 step over. Netbeans was also showing the same behavior. I don't know which log to provide. Please help.

Last edited by ansh_kumar (2015-04-28 13:22:55)

Offline

#2 2015-03-09 04:02:13

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [SOLVED] GDB freezes computer with multithreaded program

Make sure your system is up to date. A few month back gdb had similar problem https://sourceware.org/bugzilla/show_bug.cgi?id=17247

If updated system still shows the same issue then run another gdb attach to the hang gdb process and print its stack.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2015-03-13 17:16:08

ansh_kumar
Member
Registered: 2013-02-01
Posts: 89

Re: [SOLVED] GDB freezes computer with multithreaded program

GDB hangs whole computer. I'm just able to move mouse and nothing else works.

Offline

#4 2015-03-13 18:03:29

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] GDB freezes computer with multithreaded program

If you're able to move the mouse [pointer], it seems unlikely that the "whole computer" is hanging. You could try Ctrl+Alt+Bksp to kill X, but I think that feature needs to be enabled with an X config file these days. You could also try switching to a TTY, or if practical set up sshd and try connecting from another machine. If all else fails, try REISUB.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2015-03-14 05:25:08

ansh_kumar
Member
Registered: 2013-02-01
Posts: 89

Re: [SOLVED] GDB freezes computer with multithreaded program

I've amd graphic card, so I was using proprietary driver. Last night I switched to open source drive, since then I'm not getting that hanging issue. But open source driver performance is visibly slow.

Offline

Board footer

Powered by FluxBB