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

Bug#696556: [kfreebsd] ldd: segfault with inkscape/inkview executables

Package: libc-bin
Version: 2.13-37
File: /usr/bin/ldd
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: debian-bsd@lists.debian.org


On 22/07/12 22:18, Steven Chamberlain wrote:
>> $ ldd /usr/bin/inkscape
>> ldd: exited with unknown exit code (139)
>> pid 16961 (ld-2.13.so), uid 1000: exited on signal 10

I haven't seen this happen with any other executables - the most notable
thing about the inkscape/inkview binaries is their large size.

On linux amd64 the bug does not occur, but we see that some 100 dynamic
libraries are linked in.

I'm struggling to get any helpful debugging info:

(gdb) run --verify ./inkscape
Starting program: /usr/lib/debug/lib/x86_64-kfreebsd-gnu/ld-2.13.so
--verify ./inkscape
Cannot access memory at address 0x220128
Cannot access memory at address 0x220120
(gdb) bt
#0  0x0000000001021ab0 in ?? ()
#1  0x0000000000000000 in ?? ()

>From a separate run under ktrace(1) we get some rough idea of what leads
up to the crash:

 49053 ld-2.13.so CALL  open(0x1241148,0<><invalid>0,<unused>0)
 49053 ld-2.13.so NAMI  "./inkscape"
 49053 ld-2.13.so RET   open 3
 49053 ld-2.13.so CALL  read(0x3,0x7fffffffcfb8,0x340)
 49053 ld-2.13.so RET   read 832/0x340
 49053 ld-2.13.so CALL  fstat(0x3,0x7fffffffcd00)
 49053 ld-2.13.so RET   fstat 0
 49053 ld-2.13.so CALL  __getcwd(0x7fffffffc900,0x400)
 49053 ld-2.13.so NAMI  ".."
 49053 ld-2.13.so NAMI  "/usr/bin"
 49053 ld-2.13.so RET   __getcwd 0
 49053 ld-2.13.so CALL
 49053 ld-2.13.so RET   mmap 4194304/0x400000
 49053 ld-2.13.so PSIG  SIGSEGV SIG_DFL code=0x1

That mmap is the inkscape ELF executable, up to and including the
.gcc_except_table section.

The 0x1021ab0 address mentioned by GDB would be within that
.gcc_except_table section, where I guess it's not supposed to be
executing code?

> 1021aa4: 00ffff01 0e550578 0060058d 01008801  .....U.x.`......
> 1021ab4: 050000ff ff01081b 05450059 050000ff  .........E.Y....
> 1021ac4: ff013451 9f018c03 00850205 fe03008d  ..4Q............

$ file inkscape
inkscape: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD),
dynamically linked (uses shared libs), for GNU/kFreeBSD 8.1.0,
BuildID[sha1]=0x085d1e83d4ab8e3466e0a31b2f480cc7d9cda835, stripped

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-2-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information

Reply to: