After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620785 - segfault when a python plugin is present.
segfault when a python plugin is present.
Status: RESOLVED OBSOLETE
Product: planner
Classification: Other
Component: General
0.14.x
Other Linux
: Normal normal
: ---
Assigned To: planner-maint
planner-maint
Depends on:
Blocks:
 
 
Reported: 2010-06-06 22:58 UTC by Sylvain Le Gall
Modified: 2021-06-09 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch fixing this bug (1.00 KB, patch)
2018-10-14 17:35 UTC, Yavor Doganov
none Details | Review

Description Sylvain Le Gall 2010-06-06 22:58:57 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
Comment 1 Alexandre Franke 2010-06-06 23:55:15 UTC
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?
Comment 2 Sylvain Le Gall 2010-07-27 22:05:53 UTC
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 
  • #0 python_plugin_execute
    at planner-python-plugin.c line 105
  • #1 plugin_init
    at planner-python-plugin.c line 155
  • #2 planner_plugin_setup
    at planner-plugin.c line 106
  • #3 mpl_load_dir
    at planner-plugin-loader.c line 79
  • #4 planner_plugin_loader_load
    at planner-plugin-loader.c line 98
  • #5 window_populate
    at planner-window.c line 734
  • #6 planner_window_new
    at planner-window.c line 1696
  • #7 planner_application_new_window
    at planner-application.c line 243
  • #8 main
    at planner-main.c line 85

Don't hesitate to ask more information.

Regards
Sylvain Le Gall
Comment 3 Sylvain Le Gall 2010-07-27 22:08:09 UTC
Forgot to say, I use the "master" branch of the git repository of planner.
Comment 4 Fabio Nascimento 2010-08-22 03:34:47 UTC
The same problem happening with me.
Comment 5 Fabio Nascimento 2010-08-22 14:00:16 UTC
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.
Comment 6 Fabio Nascimento 2010-08-22 14:05:15 UTC
Forgot.... I make using --enable-python-plugin
Comment 7 Alexandre Franke 2010-09-02 17:32:07 UTC
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.
Comment 8 Yavor Doganov 2018-10-14 17:35:49 UTC
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.
Comment 9 GNOME Infrastructure Team 2021-06-09 20:44:33 UTC
-- 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.