Bug#770153: gedit segfaults when one tries to extend "tools-section" after extending "preferences-section"

Pietro Battiston me at pietrobattiston.it
Wed Nov 19 08:27:47 UTC 2014


Package: gedit
Version: 3.14.0-2
Severity: important
Tags: upstream

See https://bugzilla.gnome.org/show_bug.cgi?id=737781 .

Although the Debian latex plugin can workaround this (i.e. in the current
upstream master it uses "preferences-section" instead than "tools-section"),
the bug makes it impossible to use i.e. crypto ( http://pietrobattiston.it
/gedit-crypto - I know this particularly well since I wrote it, but I am sure
there are other cases) and Snippets together.

What is worse, if I run gedit and enable the problematic plugin, it will not
crash. But next time it will give no signs of life, and (unless I know how to
use dconf to disable the plugins, or unless I completely uninstall them) I will
not be able to start it again.

I am attaching a backtrace. Unfortunately I don't have much time now and I'm
having trouble understanding which package contains the symbols for libgedit (I
do have gedit-dev installed).



-- Package-specific info:
Active plugins:
  - 'latex'
  -  'spell'
  -  'charmap'

Plugins in $HOME:
  - file-search

Module versions:
  - glib                  2.42.0
  - gtk+                  3.14.4
  - gtksourceview         3.14.1
  - pygobject             2.28.6
  - enchant               1.6.0
  - iso-codes             3.57


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gedit depends on:
ii  gedit-common               3.14.0-2
ii  gir1.2-peas-1.0            1.12.1-1
ii  gnome-icon-theme-symbolic  3.12.0-1
ii  gsettings-desktop-schemas  3.14.1-1
ii  iso-codes                  3.57-1
ii  libatk1.0-0                2.14.0-1
ii  libc6                      2.19-12
ii  libcairo-gobject2          1.14.0-2.1
ii  libcairo2                  1.14.0-2.1
ii  libenchant1c2a             1.6.0-10.1
ii  libgdk-pixbuf2.0-0         2.31.1-2+b1
ii  libgirepository-1.0-1      1.42.0-2.2
ii  libglib2.0-0               2.42.0-2
ii  libgtk-3-0                 3.14.4-1
ii  libgtksourceview-3.0-1     3.14.1-1
ii  libpango-1.0-0             1.36.8-2
ii  libpangocairo-1.0-0        1.36.8-2
ii  libpeas-1.0-0              1.12.1-1
ii  libx11-6                   2:1.6.2-3
ii  libxml2                    2.9.1+dfsg1-4
ii  python3-gi                 3.14.0-1
ii  python3-gi-cairo           3.14.0-1
pn  python3:any                <none>

Versions of packages gedit recommends:
ii  yelp    3.14.1-1
ii  zenity  3.14.0-1

Versions of packages gedit suggests:
ii  gedit-plugins  3.14.0-1

-- no debconf information
-------------- next part --------------
Program received signal SIGSEGV, Segmentation fault.
g_menu_model_get_n_items (model=0x0) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gio/gmenumodel.c:492
492	/build/glib2.0-dt6trg/glib2.0-2.42.0/./gio/gmenumodel.c: File o directory non esistente.
(gdb)     thread apply all bt 

Thread 3 (Thread 0x7fffe7fff700 (LWP 16195)):
#0  0x00007ffff707e17d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff4216ee4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7fffe00010c0, timeout=25000, context=0x8656b0)
    at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gmain.c:4076
#2  g_main_context_iterate (context=context at entry=0x8656b0, block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>)
    at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gmain.c:3776
#3  0x00007ffff4216ffc in g_main_context_iteration (context=0x8656b0, may_block=1) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gmain.c:3842
#4  0x00007fffec57527d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#5  0x00007ffff423d925 in g_thread_proxy (data=0x86d8a0) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gthread.c:764
#6  0x00007ffff73520a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007ffff7086cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7fffeeb75700 (LWP 16194)):
#0  0x00007ffff707e17d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff4216ee4 in g_main_context_poll (priority=2147483647, n_fds=2, fds=0x7fffe80010c0, timeout=-1, context=0x668e60)
    at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gmain.c:4076
#2  g_main_context_iterate (context=0x668e60, block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gmain.c:3776
#3  0x00007ffff4217272 in g_main_loop_run (loop=0x668df0) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gmain.c:3975
#4  0x00007ffff7894f06 in gdbus_shared_thread_func (user_data=0x668e30) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gio/gdbusprivate.c:273
#5  0x00007ffff423d925 in g_thread_proxy (data=0x64b720) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./glib/gthread.c:764
#6  0x00007ffff73520a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007ffff7086cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7ffff7f9e980 (LWP 16190)):
#0  g_menu_model_get_n_items (model=0x0) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gio/gmenumodel.c:492
#1  0x00007ffff7b59d09 in ?? () from /usr/lib/x86_64-linux-gnu/gedit/libgedit.so
#2  0x00007ffff7b59d2b in ?? () from /usr/lib/x86_64-linux-gnu/gedit/libgedit.so
#3  0x00007ffff7b59d2b in ?? () from /usr/lib/x86_64-linux-gnu/gedit/libgedit.so
#4  0x00007ffff7b5c3e5 in ?? () from /usr/lib/x86_64-linux-gnu/gedit/libgedit.so
#5  0x00007ffff7b5c6ef in gedit_app_activatable_extend_menu () from /usr/lib/x86_64-linux-gnu/gedit/libgedit.so
#6  0x00007ffff3672d1e in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#7  0x00007ffff3672788 in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#8  0x00007fffe6f5caf4 in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so
---Type <return> to continue, or q <return> to quit---
#9  0x00007fffe6f5e3f8 in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so
#10 0x00007fffe6f525ae in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so
#11 0x00007fffe72cecd8 in PyObject_Call (func=func at entry=0x7fffe51efb20, arg=arg at entry=0x7fffe51edc18, kw=kw at entry=0x0) at ../Objects/abstract.c:2067
#12 0x00007fffe73a7f62 in do_call (nk=<optimized out>, na=<optimized out>, pp_stack=0x7fffffffd760, func=<optimized out>) at ../Python/ceval.c:4463
#13 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd760) at ../Python/ceval.c:4261
#14 PyEval_EvalFrameEx (f=f at entry=0x7fffe5206048, throwflag=throwflag at entry=0) at ../Python/ceval.c:2836
#15 0x00007fffe73a9c0c in fast_function (nk=<optimized out>, na=1, n=1, pp_stack=0x7fffffffd880, func=<optimized out>) at ../Python/ceval.c:4331
#16 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd880) at ../Python/ceval.c:4259
#17 PyEval_EvalFrameEx (f=0xa7ff98, throwflag=<optimized out>) at ../Python/ceval.c:2836
#18 0x00007fffe73abaa3 in PyEval_EvalCodeEx (_co=0x0, globals=0x7ffff7b988ba, locals=locals at entry=0x0, args=0x7fffe51e91b0, argcount=-11712, kws=0x1, kws at entry=0x0, 
    kwcount=-423678976, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:3585
#19 0x00007fffe7297ff9 in function_call.lto_priv.378 (func=0x7fffe528d6a8, arg=0x7fffe51e9198, kw=0x0) at ../Objects/funcobject.c:632
#20 0x00007fffe72cecd8 in PyObject_Call (func=func at entry=0x7fffe528d6a8, arg=arg at entry=0x7fffe51e9198, kw=<optimized out>) at ../Objects/abstract.c:2067
#21 0x00007fffe73a2787 in PyEval_CallObjectWithKeywords (func=0x7fffe528d6a8, arg=0x7fffe51e9198, kw=<optimized out>) at ../Python/ceval.c:4111
#22 0x00007fffe6f5a630 in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so
#23 0x00007ffff3672b0f in ffi_closure_unix64_inner () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#24 0x00007ffff3672e86 in ffi_closure_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#25 0x00007ffff4c6097b in peas_extension_set_foreach () from /usr/lib/libpeas-1.0.so.0
#26 0x00007ffff7577474 in _g_closure_invoke_va (closure=0x0, closure at entry=0x617af0, return_value=0x7ffff7b988ba, return_value at entry=0x0, instance=0x0, instance at entry=0x61c1e0, 
    args=0x0, args at entry=0x7fffffffdf50, n_params=-11712, param_types=0x1) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gobject/gclosure.c:831
#27 0x00007ffff7591057 in g_signal_emit_valist (instance=0x61c1e0, signal_id=<optimized out>, detail=0, var_args=var_args at entry=0x7fffffffdf50)
    at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gobject/gsignal.c:3218
#28 0x00007ffff75919af in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>)
    at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gobject/gsignal.c:3365
#29 0x00007ffff785e652 in g_application_register (application=0x61c1e0, cancellable=0x0, error=0x7fffffffe090) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gio/gapplication.c:1975
#30 0x00007ffff785edf7 in g_application_real_local_command_line (application=0x61c1e0, arguments=0x7fffffffe188, exit_status=0x7fffffffe184)
    at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gio/gapplication.c:963
#31 0x00007ffff785f127 in g_application_run (application=0x61c1e0, argc=1, argv=0x7fffffffe2e8) at /build/glib2.0-dt6trg/glib2.0-2.42.0/./gio/gapplication.c:2251
#32 0x0000000000400d0a in main ()
(gdb) 



More information about the pkg-gnome-maintainers mailing list