View Issue Details

IDProjectCategoryView StatusLast Update
0005541ScribusGeneralpublic2007-04-10 06:02
Reportermhanski Assigned Tocbradney  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformPentium(R) M processor 1.50GHzOSKubuntuOS VersionDapper Drake
Product Version1.3.4cvs 
Fixed in Version1.3.4cvs 
Summary0005541: 1.3.4cvs: crash while creating a new doc or opening an existing one
Descriptionas stated above, it happens with today's cvs, cmake, and cairo

cmake . -DCMAKE_INSTALL_PREFIX:PATH=/opt/scribus134 -DWANT_CAIRO=1 -DWANT_LIBART=0 -DWANT_DEBUG=1 -DPREFIX_CAIRO:PATH=/opt/cairo

/opt/scribus134/bin/scribus: symbol lookup error: /opt/scribus134/bin/scribus: undefined symbol: cairo_get_group_target

Program exited with code 0177.
(gdb) bt
No stack.
TagsNo tags attached.
Patch

Activities

cbradney

2007-04-07 20:37

administrator   ~0015791

No crash here. If you are updating cairo to its cvs level you might need to rebuild Scribus completely.

mhanski

2007-04-07 21:25

developer   ~0015792

there were no changes to cairo on my system, it works fine with 1.3.3.9cvs, and it worked fine with 1.3.4cvs until a couple of days ago.

mhanski

2007-04-07 21:26

developer   ~0015793

Reminder sent to: christoph_s

Christoph, could you test it?

cbradney

2007-04-07 21:28

administrator   ~0015794

Nothing has changed in Scribus 1.3.4 in relation to cairo lately, I'd suggest a full rebuild.

christoph_s

2007-04-07 21:30

developer   ~0015795

I built 1.3.4cvs two days ago. No crash here.

mhanski

2007-04-07 21:36

developer   ~0015796

Last edited: 2007-04-07 21:37

it was a totally fresh rebuild from a few hours ago, and cvs -z3 co -r Version13x Scribus shows there were no changes in cvs.

cbradney

2007-04-07 21:55

administrator   ~0015797

What version of cairo do you have then?

mhanski

2007-04-07 22:06

developer   ~0015798

cairo 1.2.6

plinnell

2007-04-08 17:36

viewer   ~0015802

no crash here with 134cvs and cairo 1.2.4 on Suse 10.2

mhanski

2007-04-08 18:07

developer   ~0015803

crash with today's cvs as well.

There is this error message: "symbol lookup error: /opt/scribus134/bin/scribus: undefined symbol: cairo_get_group_target" -- do you need any additional information from me to check what it means?

cbradney

2007-04-08 19:58

administrator   ~0015805

I dont believe its anything to do with our code. Nothing related to cairo has changed in CVS in awhile.

avox

2007-04-08 21:25

updater   ~0015806

this is a linking error, so we would need a) arguments used for the final linking of Scribus, b) link information in the scribus executable, c) version information on installed cairo libs.

it's pretty difficult to debug this kind of error if one doesnt have access to the system.

cbradney

2007-04-09 12:27

administrator   ~0015822

Not our issue, we think. Resolving.

mhanski

2007-04-09 14:52

developer   ~0015827

nice... I can't test any more 1.3.4cvs issues until this one is gone but it's of course your decision.

cbradney

2007-04-09 15:41

administrator   ~0015830

Sorry, but how can we fix this when its not crashing in our code? Try cairo 1.4.2 and see then.

christoph_s

2007-04-09 22:35

developer   ~0015832

As per discussion on IRC, the issue seems occur if two different versions of cairo are installed.

cbradney

2007-04-09 23:20

administrator   ~0015833

Well, sorry for closing it. I still dont know what has changed in any of the systems as you say you havent changed cairo or cmake.. and our RPATH setting hasn't changed at all.. I have committed a change that should fix this though. It does change the RPATH stored in the binary now. You will need to rm your CMakeCache.txt and make clean.

Maciej, I notice you are not building out of source based on your commands. It makes for a much cleaner build method.. just a tip.

avox

2007-04-09 23:22

updater   ~0015834

Symptom seems to be triggered by a missing RPATH in scribus and an additional old cairo installation in /usr/lib.

Use this to check against which cairo version scribus is linked:

    ldd scribus | grep cairo

Is the the intended version? If not, the RPATH must include the directory where the current cairo lib exists.
Use this to check the RPATH scribus uses:

    objdump -p scribus | grep RPATH

christoph_s

2007-04-09 23:51

developer   ~0015837

Seems to be fixed:

ldd scribus | grep cairo
libcairo.so.2 => /opt/latest_cairo/lib/libcairo.so.2 (0xb7ebd000)

mhanski

2007-04-10 06:01

developer   ~0015842

tested, fixed, closing

@Andreas:

==Output of both commands before the fix==
objdump -p /opt/scribus134/bin/scribus | grep RPATH
   RPATH /home/maciej/dane/scribus/cvs134/Scribus/lib/scribus/plugins

ldd /opt/scribus134/bin/scribus | grep cairo
   libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7ebb000)


==Output of both commands after the fix==

objdump -p /opt/scribus134/bin/scribus | grep RPATH
   RPATH /home/maciej/dane/scribus/cvs134/Scribus/lib/scribus/plugins:desaxe:text:styles:fonts:pixbuf:/opt/cairo/lib:/usr/lib/python2.4/config


ldd /opt/scribus134/bin/scribus | grep cairo
   libcairo.so.2 => /opt/cairo/lib/libcairo.so.2 (0xb7f28000)

thx for going into depth with this issue

Issue History

Date Modified Username Field Change
2007-04-07 13:07 mhanski New Issue
2007-04-07 20:37 cbradney Note Added: 0015791
2007-04-07 21:25 mhanski Note Added: 0015792
2007-04-07 21:26 mhanski Note Added: 0015793
2007-04-07 21:28 cbradney Note Added: 0015794
2007-04-07 21:30 christoph_s Note Added: 0015795
2007-04-07 21:36 mhanski Note Added: 0015796
2007-04-07 21:37 mhanski Note Edited: 0015796
2007-04-07 21:55 cbradney Note Added: 0015797
2007-04-07 22:06 mhanski Note Added: 0015798
2007-04-08 17:36 plinnell Note Added: 0015802
2007-04-08 18:07 mhanski Note Added: 0015803
2007-04-08 19:58 cbradney Note Added: 0015805
2007-04-08 21:25 avox Note Added: 0015806
2007-04-09 12:27 cbradney Status new => resolved
2007-04-09 12:27 cbradney Resolution open => not fixable
2007-04-09 12:27 cbradney Assigned To => cbradney
2007-04-09 12:27 cbradney Note Added: 0015822
2007-04-09 14:52 mhanski Status resolved => closed
2007-04-09 14:52 mhanski Note Added: 0015827
2007-04-09 15:41 cbradney Note Added: 0015830
2007-04-09 22:35 christoph_s Status closed => feedback
2007-04-09 22:35 christoph_s Resolution not fixable => reopened
2007-04-09 22:35 christoph_s Note Added: 0015832
2007-04-09 23:20 cbradney Note Added: 0015833
2007-04-09 23:22 avox Note Added: 0015834
2007-04-09 23:51 christoph_s Note Added: 0015837
2007-04-09 23:58 avox Status feedback => resolved
2007-04-09 23:58 avox Fixed in Version => 1.3.4cvs
2007-04-09 23:58 avox Resolution reopened => fixed
2007-04-10 06:01 mhanski Status resolved => closed
2007-04-10 06:01 mhanski Note Added: 0015842