Red Hat Bugzilla – Bug 141093
segfault in mkisofs
Last modified: 2007-11-30 17:07:14 EST
Description of problem:
segfault and NULL pointer messages from mkisofs
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.rm -rf /tmp/Isolinux
2.cp -vfpr /var/local/mirrors/linux/RHEL/3.95/i386/os/isolinux /tmp/
3.mv -f /tmp/isolinux /tmp/Isolinux
4.mkisofs -o EL395-dvd.iso -A 'EL/3.95 i386' -V 'EL/3.95 i386' -J -R
-T -q -x ./lost+found -no-emul-boot -boot-load-size 4 -boot-info-table
-x isolinux /tmp/Isolinux /var/local/mirrors/linux/RHEL/3.95/i386/os
/home/summer/bin/RHEL-DVD: line 20: 18249 Segmentation fault
mkisofs -o EL395-dvd.iso -A "EL/3.95 i386" -V "EL/3.95 i386" -J -R -T
-q -x ./lost+found -no-emul-boot -boot-load-size 4 -boot-info-table -x
isolinux /tmp/Isolinux /var/local/mirrors/linux/RHEL/3.95/i386/os
And iso at EL395-dvd.iso
Probably this is related:
+ mv -f /tmp/isolinux /tmp/Isolinux
+ mkisofs -o EL395-dvd.iso -b Isolinux/isolinux.bin -A 'EL/3.95 i386'
-V 'EL/3.95 i386' -J -R -T -q -x ./lost+found -c Isolinux/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table -x isolinux
Unknown file type (unallocated) /tmp/Isolinux/.. - ignoring and
mkisofs: Uh oh, I cant find the boot catalog directory 'Isolinux'!
The primary source is an unpacked Nahant AS CD set.
Will have to poke into why mkisofs is falling over, but your second example
above isn't correct mkisofs syntax in the first place, hence the error message.
Both the boot catalog and the boot image need to be specified relative to the
source paths listed on the command line, so the command above is telling mkisofs
to look for "Isolinux/isolinux.bin" and "Isolinux/boot.cat" in the
"/tmp/Isolinux" and "/var/local/mirrors/linux/RHEL/3.95/i386/os" directories,
where, of course, it doesn't exist. Running the following command does indeed
mkisofs -o EL395-dvd.iso -b isolinux.bin -A 'EL/3.95 i386' -V 'EL/3.95 i386' -J
-R -T -q -x ./lost+found -c boot.cat -no-emul-boot -boot-load-size 4
-boot-info-table -x ./isolinux /tmp/Isolinux
Fix summary typo.
I since have create a working commandline. I'venot yet established
that it does what I want though.
I suggest that mkisofs should be properly validating parameter info
including checking for consistency and that it's not doing this. This
would likely give rise to erroneous messages and segfaults, and quite
possibly in some contexts, security exposures.
I know my commandline was wrong, but that doesn't make messages about
null pointers (whoops I didn't actually show that one) permissable.
Luckily I still have one:
+ mkisofs -o EL394-dvd.iso -b isolinux/isolinux.bin -A 'EL/3.94 i386'
4 i386' -J -R -T -q -x ./lost+found -c isolinux/boot.cat -no-emul-boot
d-size 4 -boot-info-table /tmp/isolinux
Unknown file type (unallocated) /tmp/isolinux/.. - ignoring and
mkisofs: Error: (NULL POINTER) and
olinux/boot.cat have the same Joliet name