FreeBSD Port: dvd+rw-tools-7.0: growisofs -version dumps core

Wolfram Fenske Wolfram.Fenske at Student.Uni-Magdeburg.DE
Mon Aug 27 23:04:56 PDT 2007


On my system [1],

  growisofs -version

causes a core dump in mkisofs (8).  The exact output is:

  * growisofs by <appro at>, version 7.0.1,
    front-ending to mkisofs: Bus error(coredump)

(It says growisofs version 7.0.1, not 7.0, because I also use another
patch [2].  The problem occurs with or without this patch, though.)

I don't usually call growisofs like that myself, but k3b, for example,

I can't say I understand the cause of the bug completely, but I
believe the problem is simply that growisofs calls setuid (2) and
munlockall (2) in the wrong order.  The attached patch fixes the
problem for me.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-growisofs2.c
Type: text/x-patch
Size: 692 bytes
Desc: Patch to fix core dump in mkisofs when calling
	growisofs with the -version option
Url :
-------------- next part --------------

Wolfram Fenske

[1]  $ uname -a
        FreeBSD hondo 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #1: Mon Jul  9 03:49:32 CEST 2007     wfenske at hondo:/usr/obj/usr/src/sys/NVE_RELEASE_6_1  i386

     The kernel is only slightly customized.  The only real difference
     is that I use the nve (4) driver from -CURRENT because my network
     adapter didn't work properly at the time I built the kernel.

[2]  <>

More information about the freebsd-ports mailing list