FS#9450 - zim error with perl in testing

Attached to Project: Arch Linux
Opened by Giorgio Lando (patroclo7) - Saturday, 02 February 2008, 21:14 GMT
Last edited by Kevin Piche (kpiche) - Thursday, 24 April 2008, 02:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
Zim does not start with per in testing. It fails with the following error:
/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/current/i686-linux-thread-multi/auto/Glib/Glib.so: undefined symbol: Perl_Tstack_sp_ptr

Additional info:
* package version(s): zim-0.23-1, perl 5.10.0-2


Steps to reproduce: upgrade to the latest perl in testing, launch zim
This task depends upon

Closed by  Kevin Piche (kpiche)
Thursday, 24 April 2008, 02:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  Released version 0.24
Comment by Eric Belanger (Snowman) - Saturday, 02 February 2008, 22:27 GMT
Are you using glib-perl (and the other perl packages) from testing?


BTW, here zim seg faults on x86_64. It starts fine on i686.
Comment by Giorgio Lando (patroclo7) - Saturday, 02 February 2008, 23:09 GMT
Yes, perl and glib-perl from testing, but zim gives the error above
Comment by Giorgio Lando (patroclo7) - Saturday, 02 February 2008, 23:10 GMT
I am on i686
Comment by Giorgio Lando (patroclo7) - Sunday, 03 February 2008, 10:54 GMT
I get an analogous error if I try to repackage zim from abs. This is the output of the build function:

Creating custom builder _build/lib/My/Builder.pm in _build/lib/My
Checking whether your kit is complete...
Looks good

perl: symbol lookup error: /usr/lib/perl5/site_perl/current/i686-linux-thread-multi/auto/Cairo/Cairo.so: undefined symbol: Perl_Tstack_sp_ptr
Can't open perl script "Build": No such file or directory
Can't open perl script "Build": No such file or directory

After that the compilation is interrupted.
Comment by Giorgio Lando (patroclo7) - Sunday, 03 February 2008, 12:41 GMT
Ok, I upgraded to gtk2-perl and cairo-perl in testing and successfully repackaged zim against them.

Now, that error is away, but zim segfaults. I attach the output of 'strace zim' (it seems that it looks for things in a wrong path)
Comment by Eric Belanger (Snowman) - Monday, 04 February 2008, 05:55 GMT
the attachment is empty.
Comment by Eric Belanger (Snowman) - Monday, 04 February 2008, 06:09 GMT
try removing or renaming your configs: ~/.config/zim/

For me, that did the trick on x86_64.
Comment by Giorgio Lando (patroclo7) - Monday, 04 February 2008, 09:50 GMT
Well, this works in the sense that after removing ~/.config/zim/notebooks.list (the other files have no impact) I can launch zim successfully. But, once I create a notebook again and so a notebooks.list is written again, zim will segfault the next time I try to launch it. Thus, zim is unusable.

Perhaps this leads to the conclusion that this is an upstream bug with zim and 5.10.0 perl?

Sorry for the empty attachment, I will reattach the strace as soon as I reach home this evening or sooner.
Comment by Giorgio Lando (patroclo7) - Monday, 04 February 2008, 10:02 GMT
Here it is.
   strace.zim (346.5 KiB)
Comment by Kevin Piche (kpiche) - Friday, 08 February 2008, 05:08 GMT
The segfault is caused by the perl <-> C interface with the Gtk2 modules. Zim creates an array of your notebooks and the segfault happens when the list is attached to the listbox widget in Zim::GUI::NotebookDialog.pm. The wierd thing is that if you start it in the perl debugger it works fine so I know the perl code is fine. Try "perl -d /usr/bin/zim" then the "r" command.
Comment by Giorgio Lando (patroclo7) - Friday, 08 February 2008, 08:57 GMT
Yes, I confirm that it works under the debugger
Comment by Giorgio Lando (patroclo7) - Sunday, 23 March 2008, 13:55 GMT
Has this problem already been reported to the zim developer or is it useful if I report it now? The new perl is now in core and zim can be used only with the debugger (but the GUI freezes very often under the debugger - an independent proble, I guess).
Comment by Jarsto van Santen (Jarsto) - Sunday, 23 March 2008, 17:17 GMT
Having the same problem - segfault when notebooks.list is present. Can also confirm that the list will work with the debugger, though I find simply launching with "/usr/bin/zim <path of desired wiki>" is an easier workaround.
Comment by Jonathan Frazier (wide-eye) - Monday, 24 March 2008, 01:35 GMT
I would guess this has been reported upstream, as the notebook selector is working again while using the bzr version. so it should be fixed once the next zim is released and our packages are rebuilt.

I also had to rebuild perl-gtk2-spell and perl-gtk2-trayicon against the new perl or it would hang before opening the notebook. after that zim doesn't report any errors, and after a few minutes of testing it seems to be working fine.

using: arch=i686, not testing.
Comment by A. K. (Misery) - Monday, 21 April 2008, 17:18 GMT
zim 0.24 is released: http://zim-wiki.org
Comment by Giorgio Lando (patroclo7) - Monday, 21 April 2008, 17:41 GMT
Compiled by hand, it works fine

Loading...