[Helix-producer-issues] [Bug 15397] New: Mac Dual Proc crash in mov reader

Helix Bug Tracker <[email protected]> Wed, 29 May 2013 20:24:40 -0700
Newsgroups gmane.comp.multimedia.helix.devel
Message-ID <[email protected]>
https://bugs.helixcommunity.org/show_bug.cgi?id=15397



guest created:

          Priority: P1                                                      
  Operating System: MacOS X                                                 
        AssignedTo: cconover                                                
         QAContact: produceriz                                              
           Summary: Mac Dual Proc crash in mov reader                       
          Severity: TRIAGE                                                  
            Status: NEW                                                     
 Last changed date: 2004-03-03 11:53:41                                     
          Hardware: PowerPC                                                 
           Version: unspecified                                             
           Tracker: Settings Files                                          
           Project: helix-producer                                          
  Target Milestone: Beta                                                    

cconover imported this issue from https://producerapps.helixcommunity.org/issues/show_bug.cgi?id=164
Issue state when exported:
               AssignedTo: cconover
                Component: producerapps
              creation_ts: 2003-03-27 12:37
        Last changed date: 20030405130140
                  Issue #: 164
                   Status: RESOLVED
               Issue type: DEFECT
                 Keywords: 
               OS/Version: MacOS X
                 Priority: P1
                QAContact: issues@producerapps
                 Platform: PowerPC
               ReportedBy: cconover
               Resolution: WORKSFORME
                  Summary: Mac Dual Proc crash in mov reader
        Status Whiteboard: 
             Subcomponent: File Input
         Target Milestone: Producer 9.2 beta
                  Version: current
                    Votes: 


------- Additional Comments From [email protected] 2003-03-27 12:37 PST -------
Environment:
   OS: 10.2.4
   System: Dual Proc Proc 1 GHz, with 256 MB

How Repeat:

0. Reference test system on Gogini's "screamer"
dual proc box.  see /helix directory for clips and
symlink examples

1. Copy this file:
\\qa-fileserver\content\MOV\Audio_Video\360x240_RGB32_22k16m.mov
to your content directory

2. Create a directory to store symlinks for batch use
cd <content directory>
mkdir <batch directory>

3. Create symlinks to file
cd <batch directory>
ln -s <contentdirectory>/360x240_RGB32_22k16m.mov
1.mov
ln -s <contentdirectory>/360x240_RGB32_22k16m.mov
2.mov
.. repeat for a total of ~30 links

4. create an output directory
mkdir <batch output directory>

5. run producer in batch mode
./producer -i <batch source directory> -o <batch
output directory> -ad 768k -dt

Notes:

This crash does not seem sensitive to the
audience.  It will crash with 10mbs, 768, 512,
256k etc.  (I haven't tried it with lower bitrate
audiences)

It may take anywhere from 7 to 60 encodes to get
it to crash - from 20 minutes to 2 hours.

I have seen this crash in debug builds, running in
codewarrior's debugger, and running from gdb.  It
seemed to take longer to crash when running from
codewarrior.  GDB was more stable but not
incredibly informative.  The release build seems
to crash the quickest.  I did not however double
check the crash stack as I had a number of crashes
in debug builds as well.

I had wonderered if the problem was related to
running out of physical memory and having to use
swap space (different timing).  I added another
512MB for a total of 768MB but saw no change in
behaviour.

I also tried maxing out the cpu with other
applications while encoding and this had no
discernable effect.

Crash 1: Thread 10
CQTFile::AdvanceToNextSample


Date/Time:  2003-03-13 09:38:04 -0800
OS Version: 10.2.4 (Build 6I32)
Host:       screamer.local.

Command:    producer
PID:        1333

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at
0x00000001

Thread 0:
 #0   0x900257ac in select
 #1   0x006960a4 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00697e30 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x0069638c in
HXTWaitForSignal(CHXTDescriptor *, long)
 #4   0x00696da0 in CHXTEvent::Wait(long)
 #5   0x005ab844 in
CHXTEncodingJob::StartEncoding(int)
 #6   0x0026e394 in CSDKSession::StartJob(void)
 #7   0x0026ca80 in
CSDKSession::ProcessJobParams(void)
 #8   0x0026d508 in CSDKSession::ProcessBatch(void)
 #9   0x0026afd0 in CSDKSession::StartEncoder(void)
 #10  0x0025e258 in CProducerApp::Run(int, char **)
 #11  0x0025e0d0 in main
 #12  0x000035c8 in main
 #13  0x00003348 in _start
 #14  0x000031c8 in start

Thread 1:
 #0   0x90042688 in semaphore_timedwait_signal_trap
 #1   0x9003e8b4 in _pthread_cond_wait
 #2   0x90233384 in TSWaitOnSemaphoreCommon
 #3   0x9023c170 in TimerThread
 #4   0x90020d48 in _pthread_body

Thread 2:
 #0   0x9003eaa8 in semaphore_wait_signal_trap
 #1   0x9003e8c4 in _pthread_cond_wait
 #2   0x90233368 in TSWaitOnSemaphoreCommon
 #3   0x90233ca8 in DeferredTaskThread
 #4   0x90020d48 in _pthread_body

Thread 3:
 #0   0x900257ac in select
 #1   0x00b08b14 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00b0a200 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x00b08dfc in
HXTWaitForSignal(CHXTDescriptor *, long)
 #4   0x00b0a7a8 in
CUtCountedSemaphore::Wait(unsigned long, unsigned
long)
 #5   0x00ae0fb0 in
CHXTLogQueue::GetMessageToRead(CLogMsg **)
 #6   0x00ae6abc in 0xae6abc
 #7   0x00ae6a1c in
CHXTDeliveryManager::DeliveryThread(void *)
 #8   0x00b09e44 in CUtThread::ThreadProc(void *)
 #9   0x902b7cfc in _MP_CFMTaskProc
 #10  0x9025e3dc in PrivateMPEntryPoint
 #11  0x90020d48 in _pthread_body

Thread 4:
 #0   0x900257ac in select
 #1   0x006960a4 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00697e30 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x0066060c in 0x66060c
 #4   0x0065fe38 in
CHXTEventPump::threadLauncher(void *)
 #5   0x006977e4 in CUtThread::ThreadProc(void *)
 #6   0x902b7cfc in _MP_CFMTaskProc
 #7   0x9025e3dc in PrivateMPEntryPoint
 #8   0x90020d48 in _pthread_body

Thread 5:
 #0   0x900257ac in select
 #1   0x006960a4 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00697e30 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x0069638c in
HXTWaitForSignal(CHXTDescriptor *, long)
 #4   0x006983d8 in
CUtCountedSemaphore::Wait(unsigned long, unsigned
long)
 #5   0x00659d8c in
CHXTEventQueue::GetFrontEvent(SEventObj &)
 #6   0x005afdd8 in
CHXTEncodingJob::eventHandler(void)
 #7   0x005afc80 in
CHXTEncodingJob::eventHandlingThread(void *)
 #8   0x006977e4 in CUtThread::ThreadProc(void *)
 #9   0x902b7cfc in _MP_CFMTaskProc
 #10  0x9025e3dc in PrivateMPEntryPoint
 #11  0x90020d48 in _pthread_body

Thread 6:
 #0   0x900257ac in select
 #1   0x006960a4 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00697e30 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x0066060c in 0x66060c
 #4   0x0065fe38 in
CHXTEventPump::threadLauncher(void *)
 #5   0x006977e4 in CUtThread::ThreadProc(void *)
 #6   0x902b7cfc in _MP_CFMTaskProc
 #7   0x9025e3dc in PrivateMPEntryPoint
 #8   0x90020d48 in _pthread_body

Thread 7:
 #0   0x9003eaa8 in semaphore_wait_signal_trap
 #1   0x9003e8c4 in _pthread_cond_wait
 #2   0x902a08e0 in MPWaitOnSemaphore
 #3   0x00c87078 in HXCarbonEvent::Wait(unsigned long)
 #4   0x00cabd84 in
Core_Encoder_T::g_ThreadProc(void *)
 #5   0x902b7cfc in _MP_CFMTaskProc
 #6   0x9025e3dc in PrivateMPEntryPoint
 #7   0x90020d48 in _pthread_body

Thread 8:
 #0   0x9003eaa8 in semaphore_wait_signal_trap
 #1   0x9003e8c4 in _pthread_cond_wait
 #2   0x902a08e0 in MPWaitOnSemaphore
 #3   0x00c87078 in HXCarbonEvent::Wait(unsigned long)
 #4   0x00cabd84 in
Core_Encoder_T::g_ThreadProc(void *)
 #5   0x902b7cfc in _MP_CFMTaskProc
 #6   0x9025e3dc in PrivateMPEntryPoint
 #7   0x90020d48 in _pthread_body

Thread 9:
 #0   0x90041ba8 in mach_wait_until
 #1   0x902646bc in MPDelayUntil
 #2   0x008e9cf0 in CHXTRMWriter::MessageLoop(void *)
 #3   0x00956914 in CUtThread::ThreadProc(void *)
 #4   0x902b7cfc in _MP_CFMTaskProc
 #5   0x9025e3dc in PrivateMPEntryPoint
 #6   0x90020d48 in _pthread_body

Thread 10 Crashed:
 #0   0x00878fd8 in
CQTFile::AdvanceToNextSample(void *, long long)
 #1   0x00878d84 in
CQTFile::ReadSamplesFromChunk(void *, long long,
unsigned 
char *)
 #2   0x00878914 in CQTFile::ReadTrack(void *,
long long, unsigned char *, long 
long *)
 #3   0x00881ff8 in
CHXTMovReader::GetNextSample(unsigned char *,
unsigned 
long, bool *, long long *, long long *, unsigned
long *)
 #4   0x00884400 in
CHXTInMovActor::ReadSample(unsigned long, 
IHXTMediaSample **)
 #5   0x00664fa4 in 0x664fa4
 #6   0x006632a8 in
CHXTInputDirector::SourceThreadLauncher(void *)
 #7   0x006977e4 in CUtThread::ThreadProc(void *)
 #8   0x902b7cfc in _MP_CFMTaskProc
 #9   0x9025e3dc in PrivateMPEntryPoint
 #10  0x90020d48 in _pthread_body

PPC Thread State:
  srr0: 0x00878fd8 srr1: 0x0000f030              
 vrsave: 0x00000000
   xer: 0x00000000   lr: 0x00878fc8  ctr:
0x0087ef80   mq: 0x00000000
    r0: 0x00878fc8   r1: 0xf058a5c0   r2:
0x008ad000   r3: 0x00000001
    r4: 0x00c3b410   r5: 0x00000001   r6:
0x00054600   r7: 0x00054600
    r8: 0x00000296   r9: 0x0000029e  r10:
0x00c42600  r11: 0xa00044b0
   r12: 0x008ad73c  r13: 0x00000000  r14:
0x00000000  r15: 0x00000000
   r16: 0x00b5dcd0  r17: 0x00b5dcd0  r18:
0x00b561b0  r19: 0x00b561b0
   r20: 0x00000000  r21: 0x00000001  r22:
0x00b561b0  r23: 0x00bc2130
   r24: 0x00bc2130  r25: 0x00bc2130  r26:
0x00b5dca0  r27: 0x00000000
   r28: 0x00000001  r29: 0x00000000  r30:
0x00000000  r31: 0x00bbaff0

Crash 2: Thread 0:
szone_malloc via CHXTMovReader::LoadFile(char const *)

Date/Time:  2003-03-13 09:29:45 -0800
OS Version: 10.2.4 (Build 6I32)
Host:       screamer.local.

Command:    producer
PID:        1327

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at
0x00004245

Thread 0 Crashed:
 #0   0x90004bf0 in szone_malloc
 #1   0x90004a64 in malloc_zone_malloc
 #2   0x00889214 in HXMM_NEW
 #3   0x00888dbc in nwa(unsigned long, char *, long)
 #4   0x00882ab8 in 0x882ab8
 #5   0x00881c04 in CHXTMovReader::LoadFile(char
const *)
 #6   0x00885b18 in 
Initialize__14CHXTInMovAgentFP15IHXTPropertyBagPP15IHXTPropert
 #7   0x00565338 in 
OpenPluginOnFile__15CHXTInputSourceFQ23std252reverse_iterator<
 #8   0x00564c58 in 
CHXTInputSource::TryPluginSetByExtensionAndThenByRemaining(
*)
 #9   0x005644b8 in
CHXTInputSource::instantiateReader(IHXTPropertyBag *)
 #10  0x0056427c in 
OnProxiedFilterInitialize__15CHXTInputSourceFP15IHXTPropertyBa
 #11  0x0057070c in
Initialize__35CHXTConfigurationHelper<9IHXTInput>
FP15IHXTPrope
 #12  0x005b7600 in 
BuildInstance__14CHXTJobFactoryFRC5_GUIDP15IHXTPropertyBagPP8I
 #13  0x00271dc8 in CSDKSession::HandleInputs(void)
 #14  0x0026c5dc in 0x26c5dc
 #15  0x0026d508 in CSDKSession::ProcessBatch(void)
 #16  0x0026afd0 in CSDKSession::StartEncoder(void)
 #17  0x0025e258 in CProducerApp::Run(int, char **)
 #18  0x0025e0d0 in main
 #19  0x000035c8 in main
 #20  0x00003348 in _start
 #21  0x000031c8 in start

Thread 1:
 #0   0x90042688 in semaphore_timedwait_signal_trap
 #1   0x9003e8b4 in _pthread_cond_wait
 #2   0x90233384 in TSWaitOnSemaphoreCommon
 #3   0x9023c170 in TimerThread
 #4   0x90020d48 in _pthread_body

Thread 2:
 #0   0x9003eaa8 in semaphore_wait_signal_trap
 #1   0x9003e8c4 in _pthread_cond_wait
 #2   0x90233368 in TSWaitOnSemaphoreCommon
 #3   0x90233ca8 in DeferredTaskThread
 #4   0x90020d48 in _pthread_body

Thread 3:
 #0   0x900257ac in select
 #1   0x00b08b14 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00b0a200 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x00b08dfc in
HXTWaitForSignal(CHXTDescriptor *, long)
 #4   0x00b0a7a8 in
CUtCountedSemaphore::Wait(unsigned long, unsigned
long)
 #5   0x00ae0fb0 in
CHXTLogQueue::GetMessageToRead(CLogMsg **)
 #6   0x00ae6abc in 0xae6abc
 #7   0x00ae6a1c in
CHXTDeliveryManager::DeliveryThread(void *)
 #8   0x00b09e44 in CUtThread::ThreadProc(void *)
 #9   0x902b7cfc in _MP_CFMTaskProc
 #10  0x9025e3dc in PrivateMPEntryPoint
 #11  0x90020d48 in _pthread_body

Thread 4:
 #0   0x900257ac in select
 #1   0x006960a4 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00697e30 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x0066060c in 0x66060c
 #4   0x0065fe38 in
CHXTEventPump::threadLauncher(void *)
 #5   0x006977e4 in CUtThread::ThreadProc(void *)
 #6   0x902b7cfc in _MP_CFMTaskProc
 #7   0x9025e3dc in PrivateMPEntryPoint
 #8   0x90020d48 in _pthread_body

Thread 5:
 #0   0x900257ac in select
 #1   0x006960a4 in 
select__10systemcallFiPQ210systemcall6fd_setPQ210systemcall6fd
 #2   0x00697e30 in HXTWaitForSignal(unsigned int,
CHXTDescriptor **, long &, 
bool, long)
 #3   0x0069638c in
HXTWaitForSignal(CHXTDescriptor *, long)
 #4   0x006983d8 in
CUtCountedSemaphore::Wait(unsigned long, unsigned
long)
 #5   0x00659d8c in
CHXTEventQueue::GetFrontEvent(SEventObj &)
 #6   0x005afdd8 in
CHXTEncodingJob::eventHandler(void)
 #7   0x005afc80 in
CHXTEncodingJob::eventHandlingThread(void *)
 #8   0x006977e4 in CUtThread::ThreadProc(void *)
 #9   0x902b7cfc in _MP_CFMTaskProc
 #10  0x9025e3dc in PrivateMPEntryPoint
 #11  0x90020d48 in _pthread_body

PPC Thread State:
  srr0: 0x90004bf0 srr1: 0x0000f030              
 vrsave: 0x00000000
   xer: 0x20000000   lr: 0x90004bac  ctr:
0x9005e250   mq: 0x00000000
    r0: 0x01000838   r1: 0xbfffde50   r2:
0x00000000   r3: 0x00000001
    r4: 0x00000001   r5: 0x00000000   r6:
0x00bbcdaf   r7: 0x00000a03
    r8: 0x00000000   r9: 0x00000000  r10:
0x00000000  r11: 0x00004241
   r12: 0x9005e250  r13: 0x00000000  r14:
0x00000000  r15: 0x00000000
   r16: 0x00b5bdb0  r17: 0x00b5bdb0  r18:
0x00b5bdb0  r19: 0x00b7ad50
   r20: 0x00b7ad50  r21: 0x00b7ad50  r22:
0x00000002  r23: 0x00000000
   r24: 0x0008d25c  r25: 0xbfffde90  r26:
0xa0004acc  r27: 0x00000001
   r28: 0x0008d010  r29: 0x0008d060  r30:
0x00bce860  r31: 0x90004acc


------- Additional Comments From [email protected] 2003-04-02 07:50 PST -------
Could not repro on 1ghz dual proc, 9.1 branch build 329.


------- Additional Comments From [email protected] 2003-04-05 13:01 PST -------
removed cc

------- Additional Comments From guest 2013-29-05 20:24 GMT-0800 -------
This bug is a clone of bug #79, created by guest

-- 
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
You are in the CC list for the product the bug is within.


This e-mail is sent to you automatically from the Helix Bug Tracker.  Please, do
not respond to this message, but instead edit your Bug Tracker user preferences
to change when Bug Tracker sends you e-mail.