FS#55788 - [gedit-plugins] gedit crashes when enabling git plugin

Attached to Project: Arch Linux
Opened by Thomas Pointhuber (pointhi) - Thursday, 28 September 2017, 11:24 GMT
Last edited by morganamilo (morganamilo) - Sunday, 17 November 2019, 14:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

When I enable the git plugin, gedit crashes with a segmentation fault.

Steps to reproduce:

* Enable git plugin
* Try to start gedit

$ gdb gedit
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gedit...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/gedit
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffeb070700 (LWP 14050)]
[New Thread 0x7fffea86f700 (LWP 14051)]
[New Thread 0x7fffe8833700 (LWP 14052)]
[New Thread 0x7fffd6ab9700 (LWP 14053)]
[New Thread 0x7fffd587b700 (LWP 14054)]
[New Thread 0x7fffcee68700 (LWP 14055)]

Thread 1 "gedit" received signal SIGSEGV, Segmentation fault.
0x00007fffd9bc9c59 in ?? () from /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
(gdb) backtrace
#0 0x00007fffd9bc9c59 in () at /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
#1 0x00007fffd9bc4994 in () at /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
#2 0x00007fffd9bc6468 in () at /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
#3 0x00007fffda52ebf4 in _PyObject_FastCallDict () at /usr/lib/libpython3.6m.so.1.0
#4 0x00007fffda56b95d in () at /usr/lib/libpython3.6m.so.1.0
#5 0x00007fffda5092ea in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.6m.so.1.0
#6 0x00007fffda56a5ff in () at /usr/lib/libpython3.6m.so.1.0
#7 0x00007fffda56b571 in () at /usr/lib/libpython3.6m.so.1.0
#8 0x00007fffda56b8ee in () at /usr/lib/libpython3.6m.so.1.0
#9 0x00007fffda5092ea in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.6m.so.1.0
#10 0x00007fffda56a173 in () at /usr/lib/libpython3.6m.so.1.0
#11 0x00007fffda56b571 in () at /usr/lib/libpython3.6m.so.1.0
#12 0x00007fffda56b8ee in () at /usr/lib/libpython3.6m.so.1.0
#13 0x00007fffda5092ea in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.6m.so.1.0
#14 0x00007fffda56a173 in () at /usr/lib/libpython3.6m.so.1.0
#15 0x00007fffda56aea3 in _PyFunction_FastCallDict () at /usr/lib/libpython3.6m.so.1.0
#16 0x00007fffda52edce in _PyObject_FastCallDict () at /usr/lib/libpython3.6m.so.1.0
#17 0x00007fffda52f9d1 in _PyObject_Call_Prepend () at /usr/lib/libpython3.6m.so.1.0
#18 0x00007fffda52fabb in PyObject_Call () at /usr/lib/libpython3.6m.so.1.0
#19 0x00007fffd9bc23dc in () at /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
#20 0x00007ffff38e8fbf in ffi_closure_unix64_inner () at /usr/lib/libffi.so.6
#21 0x00007ffff38e9330 in ffi_closure_unix64 () at /usr/lib/libffi.so.6
#22 0x00007ffff7b37b97 in () at /usr/lib/gedit/libgedit.so
#23 0x00007ffff7520e59 in g_cclosure_marshal_VOID__OBJECTv () at /usr/lib/libgobject-2.0.so.0
#24 0x00007ffff751e0e6 in () at /usr/lib/libgobject-2.0.so.0
#25 0x00007ffff7538f6f in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#26 0x00007ffff753969f in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#27 0x00007fffdaf844f2 in () at /usr/lib/gedit/plugins/libfilebrowser.so
#28 0x00007ffff751dead in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#29 0x00007ffff75304ae in () at /usr/lib/libgobject-2.0.so.0
#30 0x00007ffff7538c85 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#31 0x00007ffff753969f in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#32 0x00007fffdaf73fd5 in () at /usr/lib/gedit/plugins/libfilebrowser.so
#33 0x00007fffdaf762c7 in () at /usr/lib/gedit/plugins/libfilebrowser.so
#34 0x00007ffff77b4417 in () at /usr/lib/libgio-2.0.so.0
#35 0x00007ffff77ebd53 in () at /usr/lib/libgio-2.0.so.0
#36 0x00007ffff77ebd89 in () at /usr/lib/libgio-2.0.so.0
#37 0x00007ffff46fb8c5 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#38 0x00007ffff46fbc88 in () at /usr/lib/libglib-2.0.so.0
#39 0x00007ffff46fbd1c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#40 0x00007ffff780172d in g_application_run () at /usr/lib/libgio-2.0.so.0
#41 0x0000555555554c95 in main ()
(gdb) quit
A debugging session is active.

Inferior 1 [process 14046] will be killed.

Quit anyway? (y or n) y
This task depends upon

Closed by  morganamilo (morganamilo)
Sunday, 17 November 2019, 14:42 GMT
Reason for closing:  Not a bug
Additional comments about closing:  libgit2-glib opt-depend is needed.
Comment by Dan Ziemba (zman0900) - Monday, 25 March 2019, 18:59 GMT
Plugin still doesn't work, but gedit does not crash for me. Instead the following error shows in the journal:

Mar 25 14:57:07 host gedit[28387]: Error importing plugin 'git':
Traceback (most recent call last):
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/gedit/plugins/git/__init__.py", line 23, in <module>
gi.require_version('Ggit', '1.0')
File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Ggit not available
Mar 25 14:57:07 host gedit[28387]: Error loading plugin 'git'
Comment by Dan Ziemba (zman0900) - Monday, 25 March 2019, 19:02 GMT
Nevermind, it actually works fine. I just didn't install the optional 'libgit2-glib' dependency.

Loading...