[Geany-Devel] Segmentation fault when auto-close plug-in is enable

n@sk0 arrtedone at xxxxx
Wed Oct 23 09:20:48 UTC 2013

There is strange behaviour when Auto-close plug-in is enabled.

Steps to reproduce :
1. open Geany
2. Enable auto-close plug-in
3. open several files for edit
4. Click Ctrl+W (close document)

Expected result :
Currently opened document is closed.

Actual result :
Segmentation fault

See attached gdb backtrace for more info.

Debug info :
Geany-INFO: Geany 1.24 (git >= ef33175), en_US.UTF-8
Geany-INFO: GTK 2.24.22, GLib 2.36.3
Geany-INFO: System data dir: /usr/local/share/geany
Geany-INFO: User config dir: /home/nask0/.config/geany
Geany-INFO: System plugin path: /usr/local/lib/geany
Geany-INFO: Added filetype CUDA (57).
Geany-INFO: Added filetype Rust (58).
Geany-INFO: Added filetype Scala (59).
Geany-INFO: Added filetype Graphviz (60).
Geany-INFO: Added filetype Cython (61).
Geany-INFO: Added filetype Genie (62).
Geany-INFO: Added filetype Clojure (63).
Geany-INFO: Added filetype Go (64).
Geany-INFO: Disabling terminal support
Geany-INFO: Loaded:   /usr/local/lib/geany/addons.so (Addons)
Geany-INFO: Loaded:   /usr/local/lib/geany/autoclose.so (Auto-close)
Geany-INFO: Loaded:   /usr/local/lib/geany/geanylipsum.so (GeanyLipsum)
Geany-INFO: Loaded:   /usr/local/lib/geany/geanyvc.so (GeanyVC)
Geany-INFO: Loaded:   /usr/local/lib/geany/htmlchars.so (HTML Characters)
Geany-INFO: Loaded:   /usr/local/lib/geany/geanyprj.so (Project)
Geany-INFO: Loaded:   /usr/local/lib/geany/splitwindow.so (Split Window)
Geany-INFO: Loaded:   /usr/local/lib/geany/treebrowser.so (TreeBrowser)
Geany-INFO: Loaded:   /usr/local/lib/geany/xmlsnippets.so (XML Snippets)

-------------- next part --------------
nask0 at nask0 /var/www/html/projects/svn/costa $ gdb geany
GNU gdb (GDB) Fedora 7.6.1-42.fc19
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /usr/local/bin/geany...done.
(gdb) start
Temporary breakpoint 1 at 0x44d8e0: file main.c, line 1025.
Starting program: /usr/local/bin/geany
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3600.3-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Temporary breakpoint 1, main (argc=1, argv=0x7fffffffdef8) at main.c:1025
1025    {
(gdb) start
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) continue
[New Thread 0x7fffe7418700 (LWP 19500)]
[New Thread 0x7fffe6c17700 (LWP 19501)]
geany: Warning: ignoring null tag in /var/www/html/projects/svn/phase-a1/trunk/public/ckeditor/plugins/uicolor/yui/yui.js
[Thread 0x7fffe6c17700 (LWP 19501) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe4b8c0bc in on_editor_notify (obj=0x2d4a0a0, scn=0, nt=0x7fffffffc8b0, user_data=0xe54290) at autoclose.c:777
777     if (!data || !data->doc || !data->doc->editor || !data->doc->editor->sci)
(gdb) continue
[Thread 0x7ffff7fb69c0 (LWP 19495) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.

More information about the Devel mailing list