[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mkisofs bug? creating cdrom image for bulk files with -old-root -> enter infinite loop?



å¼ é?¡æ­¦ <zhangweiwu@realss.com> wrote:

> å?¨ 2006-09-24æ?¥ç?? 21:24 +0200ï¼?Patrick Ohlyå??é??ï¼?
> > On Sat, 2006-09-23 at 23:31 +0800, å¼ é?¡æ­¦ wrote:
> > > Do you think I should now try the alpha
> > > versions?
> > 
> > Yes, please do that. There have been cases where mkisofs ran into an
> > endless loop - your's may or may not be the same bug.
> > 
> > If it still fails, do you think you could compile with debug information
> > and no optimization (usually done with configure CFLAGS=-g) and then
> > attach to the hanging mkisofs with a debugger to find out where it hangs
> > (ps -ef | grep mkisofs; gdb -p <pid of mkisofs>)?
>
> I tried the 'lastest' one version 2.01.01a16-pre. Still fail with the
> same behavior. I am still trying to get a back trace.
>
> I don't think it's an endless loop now, because if I replace -M /dev/hdd
> to -M /tmp/first.iso then no more CPU resource is taken, when it hangs,
> it simply hangs. PS shows its status is 'S' (waiting for an event).
>
> Output follows:
> zhangweiwu@joe:/opt/schily> bin/mkisofs -v -v -C 0,204809 -M /tmp/first.iso -old-root / -m .beagle -m Cache -m .Trash -m .thumbnails -m music -m '*.avi' -r -iso-level 4 -V 20060923_zhangweiwu_backup ~zhangweiwu/ > /tmp/second.iso
> Warning: creating filesystem that does not conform to ISO-9660.
> Warning: Creating ISO-9660:1999 (version 2) filesystem.
> Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the OS.
> mkisofs 2.01.01a16 (i686-pc-linux-gnu)
> Rock Ridge signatures found
> Scanning /home/zhangweiwu/
> Scanning /home/zhangweiwu/.mc

First a note: due to the more mature option parser I am using now instead of 
GNU getopt_long, you may now use -vv instead of -v -v


If you believe it hangs whithout consuming CPU time, it cannot really be a 
problem in mkisofs. 

Possible debug methods:

-	Run "pstack <pid>" to see a stack trace of the program

-	Run "gcore <pid>" followed by "adb <path_to_mkisofs> <core.pid>" 
	followed by $c to see a strack trace.

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de                (uni)  
       schilling@fokus.fraunhofer.de     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily


-- 
To UNSUBSCRIBE, email to cdwrite-REQUEST@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@other.debian.org


Reply to: