qapps runs well but breakpoint sometimes generates segmentation fault

Posted by yan bellavance on Stack Overflow See other posts from Stack Overflow or by yan bellavance
Published on 2010-05-18T19:41:49Z Indexed on 2010/05/18 22:40 UTC
Read the original article Hit count: 220

Filed under:
|
|
|
|

I have a qApp that generates a segmentation fault only when a breakpoint is inserted in the code (I can put it at different places) and only after 4-5 breakpoint stops. Do I have a problem with my code or is this a DBG bug. the method is part of a QThread Class.

Basically what I did is i took the mandlebrot example, and have 3 instances of it in my program. So the program would look like a mainwindow that has 3 mandlebrot widgets in it, one besides the other. Is it possible that GDB doesnt support debugging qthread subclasses that are instantiated multiple times or is it thread-unsafe to do so. I dont have any problems at run-time.

© Stack Overflow or respective owner

Related posts about qt

Related posts about gdb