Hi all, I'm completely new to Vxworks environment and have some simple
question to ask. At present, while my C programs are running in the
Vxworks Tornado environment, some error messages pop up as follows:


protection violation/data access
Exception current instruction address: 0x0003d730
Machine Status Register: 0x00028010
Condition Register: 0x42820080
Task: 0x1455fa0 "tanaly"

machine check
Exception next instruction address: 0xeaca6800
Machine Status Register: 0x00029210
Condition Register: 0x82820080
Bus Error Adress Register: 0xeaca6800
Bus Error Syndrome Register: 0xc0000000
Task: 0x1455fa0 "tanaly"
0x0000000b: EXCEPTION occured
d

I only have one task (i.e. tanaly) being run. Apparently, it was found
out later that it was due to some misassignment of the array variable.
e.g
define int addr[16][8] but we try to assign a value to addr[0][10]
instead.

When the error occurs, the /var/adm/messages shows this:

Jan 7 12:29:25 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B pEsf->regSet.cr
:0x42800080
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B pEsf->regSet.xer
:0x20000000
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B pEsf->regSet.pad
:0x014e0000
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B pEsf->pad0
:0x014548e8
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B task id
:0x01455fa0
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B vector No.
:0x00000300
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B pEsf->spCopy
:0x01453f58
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B pEsf->vecOffset
:0x00000300
Jan 7 12:29:26 lt145 mra4[12687]: [ID 702911 daemon.notice] ANALY
MESSAGE: from RCPU P-3 ErrorCode:0x0000000B pEsf->_errno
:0x00000000


And the Tornado crosswind window points to the line with the address of
the error: i.e. 0x0003d730
But this line is an assembly language statement.

SO MY QUESTION IS:
HOW CAN I TRACE IN WHICH PART OF MY C PROGRAM CODE IS THIS ERROR BEING
TRIGGERED, IN THE MOST STRAIGHTFORWARD WAY AVAILABLE?

Hope there's some guru here who can help me with my question.

Thanks a million in advance.


--
xdeadlockx
posted via http://sysdminforum.com