GNOME Bugzilla – Bug 620785
segfault when a python plugin is present.
Last modified: 2021-06-09 20:44:33 UTC
To reproduce the bug: - mkdir -p .gnome2/planner/python - cd .gnome2/planner/python - wget http://git.gnome.org/browse/planner/plain/python/python-demo.py - planner - SIGSEGV in plugin_init I use Debian/unstable almost up-to-date. Versions of packages planner depends on: ii gconf2 2.28.1-3 GNOME configuration database syste ii libart-2.0-2 2.3.21-1 Library of functions for 2D graphi ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit ii libbonobo2-0 2.24.3-1 Bonobo CORBA interfaces library ii libbonoboui2-0 2.24.3-1 The Bonobo UI library ii libc6 2.11.1-2 Embedded GNU C Library: Shared lib ii libcairo2 1.8.10-4 The Cairo 2D vector graphics libra ii libfontconfig1 2.8.0-2.1 generic font configuration library ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib ii libgconf2-4 2.28.1-3 GNOME configuration database syste ii libglade2-0 1:2.6.4-1 library to load .glade files at ru ii libglib2.0-0 2.24.1-1 The GLib library of C routines ii libgnome2-0 2.30.0-1 The GNOME library - runtime files ii libgnomecanvas2-0 2.30.1-1 A powerful object-oriented display ii libgnomeui-0 2.24.3-1 The GNOME libraries (User Interfac ii libgnomevfs2-0 1:2.24.3-1 GNOME Virtual File System (runtime ii libgtk2.0-0 2.20.1-1 The GTK+ graphical user interface ii libice6 2:1.0.6-1 X11 Inter-Client Exchange library ii liborbit2 1:2.14.18-0.1 libraries for ORBit2 - a CORBA ORB ii libpango1.0-0 1.28.0-1 Layout and rendering of internatio ii libpopt0 1.16-1 lib for parsing cmdline parameters ii libsm6 2:1.1.1-1 X11 Session Management library ii libxml2 2.7.7.dfsg-2 GNOME XML library ii libxslt1.1 1.1.26-3 XSLT processing library - runtime ii python 2.5.4-9 An interactive high-level object-o ii python-support 1.0.8 automated rebuilding support for P ii python2.5 2.5.5-6 An interactive high-level object-o ii rarian-compat [scrollke 0.8.1-4.1 Documentation meta-data library (c ii shared-mime-info 0.71-3 FreeDesktop.org shared MIME databa ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Thanks for the detailed report. Even though you made sure to provide the versions of every dependencies, I think you missed the most important one: your planner version. As you're using Debian unstable, I guess (with the help of packages.debian.org) that you have 0.14.4. I couldn't reproduce the issue either with the 0.14.4 package from my distro or with git HEAD. Planner runs fine and the plugin is loaded correctly. I'm not sure listing my dependies at this point would help. I'd rather you try to bring us a stack or something that we can use to get why this happens. Do you think you can help with that?
Sorry for the delay, I am pretty busy right now. OK, I recompiled planner this way: $ CFLAGS=-g ./configure --prefix /home/gildor/tmp/planner-install/ --enable-python-plugin $ make $ make install Check that we linked to the correct library $ ldd bin/planner | grep planner libplanner-1.so.0 => /home/gildor/tmp/planner-install/lib/libplanner-1.so.0 (0x00007f4285992000) $ gdb bin/planner (gdb) run [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00007fffe2a82285 in python_plugin_execute (filename=0x97c5a0 "/home/gildor/.gnome2/planner/python/python-demo.py", window=0x75a000, scripts=0x7d9ca0) at planner-python-plugin.c:105 (gdb) backtrace
+ Trace 223016
Don't hesitate to ask more information. Regards Sylvain Le Gall
Forgot to say, I use the "master" branch of the git repository of planner.
The same problem happening with me.
Ok... sorry.. It's my first time... First, I used repository of Ubuntu 10.04 : Linux fabio-laptop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux Planner Version : 14.4 Before, I searched by one integration with RedMine (http://www.redmine.org/), but I don't found and i resolved make one then I get the planner from master source and I find that example of python integrated with Planner... and I wanted use... I tried many things I searched in internet but I don't found. My version is in portuguese and message is: planner (planner:27502): Gtk-CRITICAL **: gtk_menu_item_set_submenu: assertion `GTK_IS_MENU_ITEM (menu_item)' failed Falha de segmentação If I comment all lines in (python_demo.py) them same error happens. Thanks very much.
Forgot.... I make using --enable-python-plugin
I recently upgraded from Ubuntu 8.04 to 10.04 and now I can reproduce this. That may help us find why this happens. Python changed from 2.5.2 to 2.6.5 and might be the source of the problem.
Created attachment 373926 [details] [review] Patch fixing this bug Attached is a trivial patch fixing this. It is mandatory to call pygobject_init, otherwise pygobject_new crashes the application. Also, there's double-free in plugin_execute_scripts which leads to SIGABRT on modern glibc systems.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/World/planner/-/issues/194.