[mythtv-commits] Ticket #3167: MythArchive: machine hangs/crashes if working directory contains a trailing "/" character

MythTV mythtv at cvs.mythtv.org
Tue Mar 6 12:18:52 UTC 2007


#3167: MythArchive:  machine hangs/crashes if working directory contains a
trailing "/" character
----------------------------------------+-----------------------------------
 Reporter:  briand <turbo at talstar.com>  |        Owner:  paulh  
     Type:  defect                      |       Status:  new    
 Priority:  major                       |    Milestone:  unknown
Component:  mytharchive                 |      Version:  head   
 Severity:  high                        |   Resolution:         
----------------------------------------+-----------------------------------

Comment(by briand):

 Replying to [comment:1 paulh]:
 > I just happened to be looking though the mythtv users irc transcripts
 and came across your conversation with squish102 about this problem. What
 is strange about the log extract you posted on pastebin is it looks like
 it was the second file that failed and also I just don't see any path
 through the code in question can produce that log in normal operation so I
 suspect that some sort of stack corruption is taking place somewhere. I
 think the most likely explanation is that the file is corrupt and the
 avcodec library is choking on the file.

 It seemed odd to me, as well.  The process would chug along as normal and
 then just die at that point (creating thumbnail images for the chapters).
 This is after all of the subdirectories under the temp directory were
 created and populated with various working files and logs -- in other
 words, there were plenty of opportunities for it to choke on the '/'
 before the point it (apparently) did.

 I'm not sure about file corruption.  The problem originally occurred when
 I was creating a DVD of two Bruce Hornsby concerts: "Live at the Town
 Hall" recorded at 480x480 from PBS and "Crossroads: Bruce Hornsby & Ricky
 Skaggs" recorded at 720x480 from CMT.  I had chosen the animated
 MythCenter theme for the menus.  I had thought that there might be a
 problem with the older file (at 480x480) during transcoding to dvd
 resolution, so my second attempt was just with the 720x480 file.  That,
 too, failed... and at the same point.  Third attempt was just with the
 480x480 file, which also failed at the same point.  It was at this point
 that squish102 posted a 'good' log for me to compare, and the extra '/' is
 all I saw different.  We compared how our temporary working directories
 were specified, and I eliminated the trailing '/' on my path in setup.  I
 cleared out the /video/tmp directory (`rm -rf *`, as I had between
 previous attempts) and re-ran the original attempt with both videos on the
 resultant dvd.  At this point, it ran to completion.

 > What version of compiler are you using. There may be a problem with
 using gcc v3.x with libavcodec which complains about the compiler not
 aligning stack variables. Not sure how big a problem this is I see that
 warning all the time and it doesn't seem to affect anything but may be
 something to try.

      [root at myth ~]# gcc --version
      gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1)
      Copyright (C) 2006 Free Software Foundation, Inc.

 > In any case I will fix the double '/' in the temp work directory path.

   Okay.  Again, I agree that this seems to be an odd (and unrelated) fix
 to a strange 'hang' problem.  I'll be archiving more stuff to DVD as my
 schedule allows, so there'll be plenty of opportunity to stress things,
 here.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3167#comment:2>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list