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

Wolfram Fenske Wolfram.Fenske at Student.Uni-Magdeburg.DE
Wed Aug 29 08:40:21 PDT 2007


Pav Lucistnik <pav at FreeBSD.org> writes:

> Wolfram Fenske pí¹e v st 29. 08. 2007 v 02:32 +0200:
>> Pav Lucistnik <pav at FreeBSD.org> writes:
>> 
>> > Wolfram Fenske pí¹e v út 28. 08. 2007 v 07:47 +0200:
>> >
>> >> 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)

[...]

>> > Must be something with your system, works for me:

[...]

>> It turns out the FreeBSD port installs the dvd+rw-tools with mode 555
>> and the problem doesn't reveal itself in this configuration.  However,
>> if you do set the setuid bit on the programs built from the ports
>> collection [2], you get the behavior I described.  My little patch
>> fixes that.
>
> I'm not sure, I always set growisofs setuid root on all my machines,
> because I'm too bored to use sudo just to burn some discs,

(Ah, so that's what this is for.)

> and it works fine:
>
> ls -l /usr/local/bin/growisofs 
> -r-sr-sr-x  1 root  wheel  63620 Jun 16 22:45 /usr/local/bin/growisofs*
>
> $ growisofs --version
> * growisofs by <appro at fy.chalmers.se>, version 7.0.1,
>   front-ending to mkisofs: mkisofs 2.01.01a05 (i386-unknown-freebsd6.2)
>
> Must be something else.

Yes, apparently:

--8<---------------cut here---------------start------------->8---
[wfenske at hondo: ~]
$ ls -l /usr/local/bin/growisofs
-r-xr-xr-x  1 root  wheel    62K 29 Aug 17:23 /usr/local/bin/growisofs*
[wfenske at hondo: ~]
$ /usr/local/bin/growisofs -version
* /usr/local/bin/growisofs by <appro at fy.chalmers.se>, version 7.0.1,
  front-ending to mkisofs: mkisofs 2.01 (i386-unknown-freebsd6.1)
[wfenske at hondo: ~]
$ sudo chmod +s /usr/local/bin/growisofs
[wfenske at hondo: ~]
$ /usr/local/bin/growisofs -version     
* /usr/local/bin/growisofs by <appro at fy.chalmers.se>, version 7.0.1,
  front-ending to mkisofs: Bus error
--8<---------------cut here---------------end--------------->8---

On the other hand, with my patched version under /opt/dvd+rw-tools:

--8<---------------cut here---------------start------------->8---
[wfenske at hondo: ~]
$ ls -l /opt/dvd+rw-tools/bin/growisofs
-rwsr-xr-x  1 root  wheel    69K 28 Aug 07:16 /opt/dvd+rw-tools/bin/growisofs*
[wfenske at hondo: ~]
$ /opt/dvd+rw-tools/bin/growisofs -version
* /opt/dvd+rw-tools/bin/growisofs by <appro at fy.chalmers.se>, version 7.0.1,
  front-ending to mkisofs: mkisofs 2.01 (i386-unknown-freebsd6.1)
--8<---------------cut here---------------end--------------->8---

Hm.  Perhaps it's the FreeBSD version.  You're using 6.2, I'm still on
6.1.  Since the error doesn't occur on 6.2, maybe the problem is not
in growisfs but something in FreeBSD 6.1 that already got fixed in
6.2.  If that is so, good for you and all the other FreeBSD 6.2 users!
:-)

-- 
Wolfram Fenske

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?


More information about the freebsd-ports mailing list