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
Hello!
On my system [1],
growisofs -version
causes a core dump in mkisofs (8). The exact output is:
* growisofs by <appro at fy.chalmers.se>, 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,
does.
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 : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070828/c82d2e46/patch-growisofs2.bin
-------------- next part --------------
Greetings
Wolfram Fenske
Footnotes:
[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] <http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/dvd%2Brw-tools/files/patch-growisofs.c?rev=1.5>
More information about the freebsd-ports
mailing list