[Pkg-virtualbox-devel] Bug#586265: virtualbox-ose-fuse: vdfuse segfaults

Hilko Bengen bengen at debian.org
Thu Jun 17 21:36:40 UTC 2010


Package: virtualbox-ose-fuse
Version: 3.2.4-dfsg-1
Severity: serious
Tags: patch

At first, the symptoms look rather straightforward:

    $ vdfuse -v -f foo.vdi /tmp/vdi/
    disktype is VDI
    Segmentation fault
    $ ls -lah /tmp/vdi/
    total 24K
    drwxr-xr-x  2 bengen bengen 4.0K Jun 17 18:08 .
    drwxrwxrwt 16 root   root    20K Jun 17 22:57 ..

The VDI file had just been created and not been written to.

I could not reproduce the segfault running under gdb (strange!).
However, gdb's inspection of a core dump showed the following:

    (gdb) bt
    #0  initialisePartitionTable () at debian/vdfuse/vdfuse.c:349
    #1  0x08049c5a in main (argc=4, argv=0xbff3dc84) at debian/vdfuse/vdfuse.c:256

The code lines given looked pretty much harmless to me.

I wanted to recompile vdfuse with some debug printf() statements without
rebuilding the whole package and came up with the attached Makefile
which is attached below. Please consider putting that into the
debian/vdfuse directory and calling

    $(MAKE) -C $(CURDIR)/debian/vdfuse

from debian/rules.

Curiously, at that point I was not able to reproduce the error using the
rebuilt vdfuse binary, with or without debug printf() statements.
Without further investigation, I suspect that the vdfuse binary shipped
in the package has somehow been miscompiled.

All of the above was tried on an i386 installation, I could not
reproduce the error on an amd64 installation.

Cheers,
-Hilko

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages virtualbox-ose-fuse depends on:
ii  libc6                       2.11.2-1     Embedded GNU C Library: Shared lib
ii  libfuse2                    2.8.1-1.2    Filesystem in USErspace library
ii  virtualbox-ose              3.2.4-dfsg-1 x86 virtualization solution - base

virtualbox-ose-fuse recommends no packages.

virtualbox-ose-fuse suggests no packages.

-- no debconf information
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20100617/44ebae30/attachment.asc>


More information about the Pkg-virtualbox-devel mailing list