-
Notifications
You must be signed in to change notification settings - Fork 133
Segmentation fault in QApplication destructor in CalcQt #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ubuntu Linux 13.04, gcc 4.7.3, Qt 4.8.4, Boost 1.53.0 works fine. Something related to the gfx card? Are Mint and Ubuntu installed on the same PC? Does CalcQt example work fine outside cucumber? |
I'm wondering if this still happens, especialy on with PR #98 |
Still reproducible: Thread 1 "BoostCalculator" received signal SIGSEGV, Segmentation fault.
0x00007ffff62e5fed in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
(gdb) bt full
#0 0x00007ffff62e5fed in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
No symbol table info available.
#1 0x00007ffff681ddcc in QApplication::~QApplication() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
No symbol table info available.
#2 0x00007ffff4e59ff8 in __run_exit_handlers (status=0, listp=0x7ffff51e45f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
atfct = <optimized out>
onfct = <optimized out>
cxafct = <optimized out>
#3 0x00007ffff4e5a045 in __GI_exit (status=<optimized out>) at exit.c:104
No locals.
#4 0x00007ffff4e40837 in __libc_start_main (main=0x60547a <main>, argc=1, argv=0x7fffffffdb58, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffdb48) at ../csu/libc-start.c:325
result = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 5378916977031014334, 6186992, 140737488345936, 0, 0, -5378917201933736002, -5378941200771291202},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x1, 0x60547a <main>}, data = {prev = 0x0, cleanup = 0x0, canceltype = 1}}}
not_first_call = <optimized out>
#5 0x00000000005e6819 in _start ()
No symbol table info available.
(gdb)
|
I was just looking at this. I believe that this line is root cause: cucumber-cpp/examples/CalcQt/features/step_definitions/BoostCalculatorQtSteps.cpp Line 10 in 07850d5
|
I assume you are referring to the Putting this in a |
Probably GlobalScope would be even better but it is not yet implemented, i.e. #66 |
You could create a wrapper object with a default constructor, if I understand your question correctly. |
Everything works until the program is shutting down and the QApplication destructor is called:
Happens on:
The text was updated successfully, but these errors were encountered: