Package: xarchiver
Version: 1:0.5.3+dfsg-2
Severity: important

Hi,

When opening any archive on mipsel, xarchiver segfaults. This happens
consistently every time.

Running with gdb I get:
> (gdb) run
> Starting program: /usr/bin/xarchiver 
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/mipsel-linux-gnu/libthread_db.so.1".
> [New Thread 0x338882f0 (LWP 12763)]
> [New Thread 0x3435d2f0 (LWP 12764)]
> [New Thread 0x34cff2f0 (LWP 12765)]
> [New Thread 0x354ff2f0 (LWP 12766)]
> [Thread 0x354ff2f0 (LWP 12766) exited]
> [New Thread 0x354ff2f0 (LWP 12767)]
> [Thread 0x354ff2f0 (LWP 12767) exited]
(open an archive)
> Program received signal SIGSEGV, Segmentation fault.
> xa_process_output (ioc=<optimized out>, cond=<optimized out>, data=0x0) at 
> archive.c:244
> 244   archive.c: No such file or directory.
> (gdb) bt
> #0  xa_process_output (ioc=<optimized out>, cond=<optimized out>, data=0x0) 
> at archive.c:244
> #1  0x2b18d324 in g_main_dispatch (context=0x487900) at 
> /build/glib2.0-Tp1gVN/glib2.0-2.40.0/./glib/gmain.c:3064
> #2  g_main_context_dispatch (context=0x487900) at 
> /build/glib2.0-Tp1gVN/glib2.0-2.40.0/./glib/gmain.c:3663
> #3  0x2b18d794 in g_main_context_iterate (context=0x487900, block=1, 
> dispatch=1, self=<optimized out>) at 
> /build/glib2.0-Tp1gVN/glib2.0-2.40.0/./glib/gmain.c:3734
> #4  0x2b18dcb8 in g_main_loop_run (loop=0x5f0c08) at 
> /build/glib2.0-Tp1gVN/glib2.0-2.40.0/./glib/gmain.c:3928
> #5  0x2ac560c0 in gtk_main () from 
> /usr/lib/mipsel-linux-gnu/libgtk-x11-2.0.so.0
> #6  0x0040aac0 in main (argc=1, argv=0x7fff65b4) at main.c:306
> (gdb) print archive
> $1 = (XArchive *) 0x0

I traced it through with GDB and the value of the archive variable is set to
NULL immediately after the call to xa_set_statusbar_message_for_displayed_rows.

I don't know much about gtk, but I'm guessing that in that function,
gtk_tree_model_get overflows the size variable, expecting it to be 64 bits
when it's only 32 bits.

I also tested the version in stable (1:0.5.2+20090319+dfsg-4.1) and the bug
does not affect that version.

James

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: mipsel (mips)

Kernel: Linux 3.0.8-1-ci20 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xarchiver depends on:
ii  libc6               2.19-7
ii  libgdk-pixbuf2.0-0  2.30.7-1
ii  libglib2.0-0        2.40.0-3
ii  libgtk2.0-0         2.24.24-1
ii  libpango-1.0-0      1.36.3-1

Versions of packages xarchiver recommends:
ii  bzip2       1.0.6-7
ii  p7zip-full  9.20.1~dfsg.1-4.1
ii  unzip       6.0-12
ii  xdg-utils   1.1.0~rc1+git20111210-7.1
ii  xz-utils    5.1.1alpha+20120614-2

Versions of packages xarchiver suggests:
pn  arj    <none>
pn  lhasa  <none>
pn  rar    <none>
pn  rpm    <none>
pn  unar   <none>
pn  zip    <none>

-- no debconf information

Reply via email to