#79 geany 0.21 crashes at program end under debugging

open
debugger (11)
5
2012-06-18
2012-06-18
Anonymous
No

geany -V
geany 0.21 (built on Mar 19 2012 with GTK 2.24.10, GLib 2.31.20)

$geany -v
(geany:21735): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

(geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed
$

1. Starting geany from terminal.
2. Opening project with C program (ex. helloworld.c)
3. Lunch program in debugger
4. When program ends - click "Stop" button on debugger tab - geany crash

Discussion

<< < 1 2 (Page 2 of 2)
  • Ivan Trombley

    Ivan Trombley - 2012-08-11

    I'm using Ubuntu 12.04. Here's how to reproduce the issue. Install GDC (sudo apt-get install gdc) and build the following code using "gdc -g -o test test.d":

    // test.d >>>----->
    import std.stdio;

    int main()
    {
    int[100] arr = void;

    foreach (idx, val; arr)
    writefln("%s = %s", idx, val);

    return 0;
    }
    // <-----<<< test.d

    Set a breakpoint on the line with "foreach" and start debugging. This should work fine. Change the line with "arr" to this:

    int[100] arr;

    Build and start debugging. geany will hang for a few seconds and then crash. I can debug this without issue from the command line.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-08-23

    Same issue here with Xubuntu 12.04
    Geany 1.23 (git>=2b77157)
    Debugger 1.23 (downloaded from here http://download.geany.org/geany_plugins_git.tar.gz\)

    Here is the debug log:

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    (geany:13635): GLib-CRITICAL **: g_hash_table_remove_all: assertion `hash_table != NULL' failed

    It will be very good to fix this plugins immediately cause its the only full featured debug plugin for Geany.

     
  • Alexander Petukhov

    hi guys, sorry for delay, i was getting married ),
    I checked your requests on ubuntu 12.04 and my head branch
    (it has 3 commits on it that have not been merged into geany/geany-plugins yet, but I just opened a pull request)
    and all seems ok:

    1. session is not being killed when stopping debugging syncronously or asyncronously, or when program is exiting normally
    2. geany does not hang on debuging D program with both array declarations

    You can clone my branch by doing
    git clone git://github.com/cesspit/geany-plugins.git

    or you can wait until pull request will be merged and pull master branch of geany/geany-plugins

    If you still experience problems pls post here, will look asap

     
  • Alexander Petukhov

    3. geany does not crash when stopping debugging syncronously or
    asyncronously, or when program is exiting normally

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-08-24

    Tested and the issue solved :)
    Thank you very much and I am wishing you the best of life today and in the days to come.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-08-24

    The message

    (geany:21735): GLib-CRITICAL **: g_string_free: assertion `string != NULL' failed

    still appears but the debug plugins works.
    Just to inform you.

     
    Last edit: Anonymous 2015-05-01
  • Ivan Trombley

    Ivan Trombley - 2012-08-28

    Congratulations Alexander.

    I switched to dmd (for other reasons) and tried your changes. I still get the same issue but now it will happen if arr is initialized or not.

     
  • Ivan Trombley

    Ivan Trombley - 2012-08-28

    Backtrace:

    #0 0x00007ffff5370445 in __GI_raise (sig=<optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    #1 0x00007ffff5373bab in __GI_abort () at abort.c:91
    #2 0x00007ffff53ade2e in __libc_message (do_abort=2,
    fmt=0x7ffff54b60d0 "*** glibc detected *** %s: %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
    #3 0x00007ffff53b8626 in malloc_printerr (action=3,
    str=0x7ffff54b62c0 "double free or corruption (fasttop)",
    ptr=<optimized out>) at malloc.c:5007
    #4 0x00007fffd93a93b0 in get_variables (vars=0xba3260) at dbm_gdb.c:1389
    #5 0x00007fffd93a9995 in update_autos () at dbm_gdb.c:1592
    #6 0x00007fffd93aa245 in on_read_from_gdb (src=<optimized out>,
    cond=<optimized out>, data=<optimized out>) at dbm_gdb.c:530
    #7 0x00007ffff616bd53 in g_main_context_dispatch ()
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #8 0x00007ffff616c0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #9 0x00007ffff616c49a in g_main_loop_run ()
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #10 0x00007ffff78d42f7 in gtk_main ()
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
    #11 0x0000000000448e0c in main (argc=1, argv=0x7fffffffe2b8) at main.c:1155

     
  • Ivan Trombley

    Ivan Trombley - 2012-08-29

    I just tried it again and now it works.

     
  • Alexander Petukhov

    I tried yesterday and it didn't but with other symptoms - exit right after start debugging on both ubuntu 12.04 and debian squeeze, however I'm hardly rewriting gdb backend now, so if it works for you for now, I wont search for my problem source at my box

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks