iostreams test failure on psim
Joel Sherrill
joel.sherrill at OARcorp.com
Tue Jun 17 20:52:13 UTC 2008
Till Straumann wrote:
> Weird. It works for me here on psim but I might use a different
> 4.9 snapshot (and different gcc/newlib patches).
>
> It probably fails creating the __mutex
>
> (e.g., rtems_gxx_mutex_init() panics if semaphore
> creation fails -- do you have enough configured?).
>
>
Yes. I had hand checked that but just to make sure
I added 10 more to the configuration and it fails in the
same way. I will check sis to make sure it isn't something
wrong with the linker script.
I don't have any real changes outstanding now if you
want to doublecheck the head. I would appreciate it.
--joel
> T.
>
> Joel Sherrill wrote:
>
>> Hi,
>>
>> This looks vaguely familiar but I don't find it
>> in the rtems mail list archives:
>>
>> #3 0x0007b478 in ?? ()
>> #4 0x000038a0 in get_locale_mutex ()
>> at ../../../../../gcc-4.3.1/libstdc++-v3/src/locale_init.cc:42
>> #5 0x00004740 in locale (this=0x7b2ec)
>> at ../../../../../gcc-4.3.1/libstdc++-v3/src/locale_init.cc:215
>> #6 0x00001830 in Init (this=<value optimized out>)
>> at
>> /builddir/build/BUILD/rtems-4.9-powerpc-rtems4.9-gcc-4.3.1/build/powerpc-rtems4.9/m603e/libstdc++-v3/include/streambuf:447
>> #7 0x00000250 in __static_initialization_and_destruction_0 (
>> __initialize_p=<value optimized out>, __priority=<value optimized out>)
>> at /opt/rtems-4.9/lib/gcc/powerpc-rtems4.9/4.3.1/include/c++/iostream:77
>> #8 0x00065a98 in __do_global_ctors_aux ()
>> #9 0x00065b10 in _init ()
>> #10 0x00055488 in _Thread_Handler ()
>>
>> I traced but can't tell much except that somewhere below here, it is dying.
>> All object create calls are working but I am remembering something was
>> broken in this area and we had a patch to gcc.
>>
>> __gnu_cxx::__mutex&
>> get_locale_mutex()
>> {
>> static __gnu_cxx::__mutex locale_mutex;
>> return locale_mutex;
>> }
>>
>>
>>
>
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list