Unexpected trap (0x04) fp disabled

Patricia Lopez-Cueva Patricia.Lopez-Cueva at scisys.co.uk
Mon Feb 19 17:12:03 UTC 2007


Hi all.

 

I have tried to run a simple test in sparc-rtems-gdb and I get the
following error:

 

Unexpected trap (0x04) at address 0x40004ee8

fp disabled

 

The backtrace shows:

 

Program exited with code 0362.

(gdb) bt

#0  syscall ()

    at
../../../../../../../../rtems-4.6.5/c/src/lib/libcpu/sparc/syscall/sysca
ll.S:54

#1  0x40003ba8 in DEBUG_puts (string=0xf2000fe7 "")

    at
../../../../../../../../../rtems-4.6.5/c/src/lib/libbsp/sparc/leon2/cons
ole/debugputs.c:108

#2  0x40003fa8 in bsp_spurious_handler (trap=2779096485, isf=0xa5a5a5a5)

    at
../../../../../../../../../rtems-4.6.5/c/src/lib/libbsp/sparc/leon2/star
tup/spurious.c:122

#3  0xa5a5a5ad in ?? ()

#4  0xa5a5a5ad in ?? ()

Previous frame identical to this frame (corrupt stack?)

 

I thought it was because of I didn't put the floating point attribute
for the rtems task but it still fails with the same error.

 

#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT

 

I don't know if there is any error in the thread creation with
pthread_create or anything else.

 

Thanks for your help

Patricia

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20070219/c296bbf6/attachment.html>


More information about the users mailing list