$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [thread] why crash launching a thread?
From: David M. Cotter (me_at_[hidden])
Date: 2010-01-30 17:04:05
>> i'm launching a new thread from an existing background thread, BUT it is crashing.
>> i don't know if it happens often yet, but was wondering what could possibly cause this?
>>
>> Thread 10 Crashed:
>> 0 libSystem.B.dylib 0x96ce435d usleep$NOCANCEL$UNIX2003 + 0
>> 1 libSystem.B.dylib 0x96d05a50 abort + 105
>> 2 libstdc++.6.dylib 0x96bb2fda __gnu_cxx::__verbose_terminate_handler() + 433
>> 3 libstdc++.6.dylib 0x96bb117a __cxxabiv1::__terminate(void (*)()) + 10
>> 4 libstdc++.6.dylib 0x96bb11ba __cxxabiv1::__unexpected(void (*)()) + 0
>> 5 libstdc++.6.dylib 0x96bb12b8 __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
>> 6 libboost_thread.dylib 0x006af933 boost::thread::start_thread() + 195
>> 7 com.kjams.kjams 0x001281d1 CThreads::Fork(APP_ThreadType, long (*)(void*, long), long (*)(void*, long), void*, char const*) + 1521
>> 8 com.kjams.kjams 0x0012858b CT_Preemptive::call(char const*) + 91
>> 9 com.kjams.kjams 0x00139fc2 CSpooler::Fork_Spool(CSpooler*, bool) + 290
>> 10 com.kjams.kjams 0x0027fd05 CSongImporter::EncodeSong(CSI_PersistantQueData*, CSpooler*) + 1109
>
> Looks like you have an uncaught exception in that thread.
i do in fact have a general exception handler surrounding this code, so that can't be the problem.
also, it is not my code which is throwing, it is boost. why does boost throw?