[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Shared Lib problem

Hi !

I'm having problems using some software downloaded from the net
(netscape, StarOffice etc etc).

I have a brand new installation of Debian 2.0 (kernal 2.0.34),
everything else works great.

I'll use the setup for StarOffice as an example of the problem.
But neither netscape, nor acrobat work either, and crash with
similar problems.

gecko.rex% ./setup.bin
Segmentation fault

gecko.rex% ldd setup.bin
        /lib/nfslock.so.0 => /lib/nfslock.so.0 (0x4000d000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4000f000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40057000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40065000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40108000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4011a000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40126000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4012f000)
        libdl.so.1 => /lib/libdl.so.1 (0x40144000)
        libm.so.5 => /lib/libm.so.5 (0x40147000)
        libc.so.5 => /lib/libc.so.5 (0x4014f000)
        libc.so.6 => /lib/libc.so.6 (0x4020f000)
        ld-linux.so.2 => /lib/ld-linux.so.2 (0x402b4000)

gecko.rex% gdb setup.bin
GNU gdb 4.17
(gdb) run
Starting program: /usr/local/StarOffice/4.0/Office40_Install/setup.bin 
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x401bdab7 in strrchr (str=0x53026aff <Address 0x53026aff out of bounds>, ch=339858408)
(gdb) where
#0  0x401bdab7 in strrchr (str=0x53026aff <Address 0x53026aff out of bounds>, ch=339858408)
#1  0x8067008 in _IO_seekmark ()
#2  0x5653501c in ?? ()
Cannot access memory at address 0x478b1cc4.
(gdb) The program is running.  Exit anyway? (y or n) y

gecko.rex% ls -l /lib/libc.so.5 /lib/libc.so.6
lrwxrwxrwx   1 root     root           14 Sep 17 09:03 /lib/libc.so.5 -> libc.so.5.4.46*
lrwxrwxrwx   1 root     root           13 Aug 28 08:07 /lib/libc.so.6 -> libc-2.0.7.so*

gecko.rex% objdump --all-headers setup.bin


Dynamic Section:
  NEEDED      libXt.so.6
  NEEDED      libXpm.so.4
  NEEDED      libX11.so.6
  NEEDED      libXmu.so.6
  NEEDED      libXext.so.6
  NEEDED      libSM.so.6
  NEEDED      libICE.so.6
  NEEDED      libdl.so.1
  NEEDED      libm.so.5
  NEEDED      libc.so.5
  INIT        0x804e730
  FINI        0x81ffa80
  HASH        0x80480e8
  STRTAB      0x804b920
  SYMTAB      0x80492b0
  STRSZ       0x1e64
  SYMENT      0x10
  DEBUG       0x0
  PLTGOT      0x822ef28
  PLTRELSZ    0xcb8
  PLTREL      0x11
  JMPREL      0x804da74
  REL         0x804d784
  RELSZ       0x2f0

It seems that libc6 is not required, it has libc5 (latest and last version),
so why does ldd report a requirement for libc6 ?

Other binaries have similar problems.  Usually crashing in a simple C routine
such as rindex().

Any help would be greatly appreciated.

Cheers, Rex

Reply to: