GNOME Bugzilla – Bug 621782
Crash using gbinding
Last modified: 2010-06-17 09:34:16 UTC
So I have the case where I have binded: A -> B, B -> C. If I unbind A -> B, B -> C and then I bind A -> C I get a crash. Backtrace: Program received signal SIGABRT, Aborted. 0x00007ffff2a32a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c (gdb) bt
+ Trace 222441
Created attachment 163823 [details] valgrind log valgrind log
Created attachment 163826 [details] [review] tests: Add a chain binding Test the case with a chain like A → B, B → C, and what happens when switching to a direct A → C link.
the attached test case does not crash - so this might either be the case of an error in the gedit code or a much more subtle issue. having a self-contained test case that does crash would help me immensely.
Created attachment 163849 [details] test This is more or less what I do in gedit, here this test crashes. If you remove the call to bind in on_button_clicked it doesn't crash, so it is a problem binding for the second time.
mmm, somehow now the test does not crash for me, I'll try to make something else.
Created attachment 163864 [details] test_v2.c Slightly modified test. Execute it and press in the button Here it is what what I get with it: Program received signal SIGABRT, Aborted. 0x00007ffff4d45a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c (gdb) bt
+ Trace 222450
After rebuilding all the deps seems it works. So I guess this can be closed as NOTABUG and sorry for waisting your time.
closing, as per last comment.