issue with spfatal26
Joel Sherrill
joel.sherrill at oarcorp.com
Wed Apr 1 13:56:15 UTC 2015
Hi
I was looking into a failure for sp26 and noticed that it is calling
a printf() variant after _Terminate has been called. I am getting
an exception during the __swsetup_r call. I am wondering if
there is an ordering issue:
Program received signal SIGEMT, Emulation trap.
0x0004b216 in __swsetup_r (ptr=0x550f4, fp=0x0)
at ../../../../../gcc-4.9.2/newlib/libc/stdio/wsetup.c:39
39 ../../../../../gcc-4.9.2/newlib/libc/stdio/wsetup.c: No such file
or directory.
(gdb) bt
#0 0x0004b216 in __swsetup_r (ptr=0x550f4, fp=0x0)
at ../../../../../gcc-4.9.2/newlib/libc/stdio/wsetup.c:39
#1 0x0004a69e in _vfiprintf_r (data=0x550f4, fp=0x0,
fmt0=0x4f1f4 "%s: %d %s\n", ap=0x54fc8)
at ../../../../../gcc-4.9.2/newlib/libc/stdio/vfprintf.c:865
#2 0x00049fce in fiprintf (fp=0x0, fmt=0x4f1f4 "%s: %d %s\n")
at ../../../../../gcc-4.9.2/newlib/libc/stdio/fiprintf.c:50
#3 0x000441cc in fatal_extension (source=<optimized out>,
is_internal=<optimized out>, code=<optimized out>)
at
../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal26/init.c:68
#4 0x00046f4e in _User_extensions_Iterate (arg=0x54ff4,
visitor=0x46eec <_User_extensions_Fatal_visitor>)
at
../../../../../../rtems/c/src/../../cpukit/score/src/userextiterate.c:155
#5 0x00045538 in _User_extensions_Fatal (error=<optimized out>,
is_internal=false, source=RTEMS_FATAL_SOURCE_EXIT)
at
../../cpukit/../../../simsh1/lib/include/rtems/score/userextimpl.h:253
#6 _Terminate (the_source=RTEMS_FATAL_SOURCE_EXIT, is_internal=false,
the_error=0)
at ../../../../../../rtems/c/src/../../cpukit/score/src/interr.c:44
#7 0x0004d7cc in rtems_shutdown_executive (result=<optimized out>)
at ../../../../../../rtems/c/src/../../cpukit/sapi/src/exshutdown.c:21
#8 0x0004d482 in _exit (status=<optimized out>)
at
../../../../../../rtems/c/src/../../cpukit/libcsupport/src/newlibc_exit.c:47
#9 0x00049f7c in exit (code=0)
at ../../../../../gcc-4.9.2/newlib/libc/stdlib/exit.c:70
#10 0x000441d2 in fatal_extension (source=<optimized out>,
is_internal=<optimized out>, code=<optimized out>)
at
../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal26/init.c:68
#11 0x00046f4e in _User_extensions_Iterate (arg=0x55044,
visitor=0x46eec <_User_extensions_Fatal_visitor>)
at
../../../../../../rtems/c/src/../../cpukit/score/src/userextiterate.c:155
#12 0x00045538 in _User_extensions_Fatal (error=<optimized out>,
is_internal=false, source=RTEMS_FATAL_SOURCE_EXIT)
at
../../cpukit/../../../simsh1/lib/include/rtems/score/userextimpl.h:253
#13 _Terminate (the_source=RTEMS_FATAL_SOURCE_EXIT, is_internal=false,
the_error=0)
--
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 devel
mailing list