aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [Really Important!] Amule crash with OpenOffice.Org????  (Read 3286 times)

gianogli

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
[Really Important!] Amule crash with OpenOffice.Org????
« on: March 07, 2006, 09:40:28 PM »

In my PC there are:
-) Slackware-current with kernel "vanilla" 2.6.15.4
-) OpenOffice.org 2.0.1 (packet from http://www.slacky.it)
-) aMule 2.1.0 from source
-) wxWidgets 2.6.3-rc1 from source

If i start amule in gdb crashes with:  ;(
Code: [Select]
Terminated after throwing an instance of 'wxString'
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1224747328 (LWP 8688)]
0xb77dbda0 in vfprintf () from /lib/tls/libc.so.6
(there are hundreds of "Terminated after throwing an instance of 'wxString'" error!)

The result of "bt" command is:
Code: [Select]
#0  0xb77dbda0 in vfprintf () from /lib/tls/libc.so.6
#1  0xb77dbc2c in buffered_vfprintf () from /lib/tls/libc.so.6
#2  0xb77dbe5b in vfprintf () from /lib/tls/libc.so.6
#3  0xb77e457f in fprintf () from /lib/tls/libc.so.6
#4  0x082f3098 in std::operator+, std::allocator > ()
#5  0xb79a1505 in __cxa_call_unexpected () from /opt/openoffice.org2.0/program/libstdc++.so.6
#6  0xb79a1542 in std::terminate () from /opt/openoffice.org2.0/program/libstdc++.so.6
#7  0xb79a1739 in __cxa_rethrow () from /opt/openoffice.org2.0/program/libstdc++.so.6

The result of "bt full" command is:
Code: [Select]
#0  0xb77dbda0 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#1  0xb77dbc2c in buffered_vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#2  0xb77dbe5b in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#3  0xb77e457f in fprintf () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x082f3098 in std::operator+, std::allocator > ()
No symbol table info available.
#5  0xb79a1505 in __cxa_call_unexpected () from /opt/openoffice.org2.0/program/libstdc++.so.6
No symbol table info available.
#6  0xb79a1542 in std::terminate () from /opt/openoffice.org2.0/program/libstdc++.so.6
No symbol table info available.
#7  0xb79a1739 in __cxa_rethrow () from /opt/openoffice.org2.0/program/libstdc++.so.6
No symbol table info available.

OpenOffice.org2.0???? What it means?  ?(

If I rename OpenOffice.org directory with:
"mv /opt/openoffice.org2.0 /opt/openoffice.org2.tmp"
then aMule don't crashes and works fine!  8o

Why?  X(

Thank you for the help!
GiAn
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: [Really Important!] Amule crash with OpenOffice.Org????
« Reply #1 on: March 08, 2006, 04:11:42 AM »

gianogli,

It means that openoffice 2.0 has its own version of libstdc++, and that you are using it, and that it has some problem with aMule. This library is in the search path before the correct libstdc++ library. There is probably some error in the openoffice package you got that is messing with your system libraries.

Cheers!
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: [Really Important!] Amule crash with OpenOffice.Org????
« Reply #2 on: March 08, 2006, 06:42:50 AM »

Your "real" libstdc++.so.6 (i.e., the one that came with your system and not with OpenOffice.org) is probably installed in "/usr/lib", right?

If so, you can force searching "/usr/lib" before "/opt/openoffice.org2.0/program" by putting the former into your LD_LIBRARY_PATH before the latter:
Code: [Select]
export LD_LIBRARY_PATH="/usr/lib:/opt/openoffice.org2.0/program"By the way, this OpenOffice.org package is somewhat broken. There is a consensus that packages with private libraries should not expose them system-wide.
« Last Edit: March 08, 2006, 06:45:13 AM by Gerd78 »
Logged

gianogli

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: [Really Important!] Amule crash with OpenOffice.Org????
« Reply #3 on: March 08, 2006, 01:45:26 PM »

Quote
Originally posted by Gerd78
Your "real" libstdc++.so.6 (i.e., the one that came with your system and not with OpenOffice.org) is probably installed in "/usr/lib", right?
Yes!
Quote
If so, you can force searching "/usr/lib" before "/opt/openoffice.org2.0/program" by putting the former into your LD_LIBRARY_PATH before the latter:
Code: [Select]
export LD_LIBRARY_PATH="/usr/lib:/opt/openoffice.org2.0/program"By the way, this OpenOffice.org package is somewhat broken. There is a consensus that packages with private libraries should not expose them system-wide.
With the command "ldconfig -p | grep libstdc++" I see:
Code: [Select]
       libstdc++.so.6 (libc6) => /opt/openoffice.org2.0/program/libstdc++.so.6
        libstdc++.so.6 (libc6) => /usr/lib/libstdc++.so.6
        libstdc++.so.5 (libc6) => /usr/i486-slackware-linux/lib/libstdc++.so.5
        libstdc++.so.4 (libc6) => /usr/i486-slackware-linux/lib/libstdc++.so.4
        libstdc++.so.2.9 (libc6) => /usr/i486-slackware-linux/lib/libstdc++.so.2.9
        libstdc++.so.2.8 (libc6) => /usr/i486-slackware-linux/lib/libstdc++.so.2.8
        libstdc++.so.2.7.2 (libc6) => /usr/i486-slackware-linux/lib/libstdc++.so.2.7.2
        libstdc++.so (libc6) => /usr/lib/libstdc++.so
        libstdc++-libc6.2-2.so.3 (libc6) => /usr/i486-slackware-linux/lib/libstdc++-libc6.2-2.so.3
        libstdc++-libc6.1-2.so.3 (libc6) => /usr/i486-slackware-linux/lib/libstdc++-libc6.1-2.so.3
        libstdc++-libc6.1-1.so.2 (libc6) => /usr/i486-slackware-linux/lib/libstdc++-libc6.1-1.so.2
The problem is the OpenOffice.Org package that expose its private libraries to the system! But I should see the OpenOffice libraries with "ldconfig -p command" or no? If yes is only a order problem?
Thank you all!
GiAn
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: [Really Important!] Amule crash with OpenOffice.Org????
« Reply #4 on: March 08, 2006, 02:25:40 PM »

Quote
Originally posted by gianogli
But I should see the OpenOffice libraries with "ldconfig -p command" or no?
No, it should not be there, but it is.

OpenOffice.org includes this library in order to work on both GCC3 and GCC4 systems. Maybe you don't need it at all because you already have it.

Try do get rid of it:
Code: [Select]
mv /opt/openoffice.org2.0/program/libstdc++.so.6 /opt/openoffice.org2.0/program/libstdc++.so.6.bakIf OpenOffice.org still works afterwards, you don't need this extra library at all.

Otherwise you have to override the order with LD_LIBRARY_PATH, as described above.

By the way, where does this OpenOffice.org package come from? It is not built properly. Packages that need to include such libraries for whatever reason should use wrapper scripts or set their RPATH to $ORIGIN instead of adding the directory to the system-wide search path. Consider filing a bug-report against this package.
Logged