I’m trying to accomplish the following using Cloverleaf with IB:
An application sends a reuqest to a webservice, when IB returns an error a TCL-script in the TPS kills the IB-error and uses the OBMSGID to create a new data message to another thread. On the route to the other thread an xlate translates the original request into a response.
But after putting the message on the xlate thread the proces panics.
Any suggestion on how to resolve this?
Below is the logging which is generated (with enable all):
[xlt :rout:INFO/1:ADT_TEST_xlate:02/26/2010 13:27:36] Loading ‘IB-Error’ DATA route details from ‘
{
{ DEST SBVZ_CASS }
{ ELEVATEWARNINGFORPARSE 0 }
{ POSTPROCS {
{ ARGS {} }
{ PROCS {} }
} }
{ PREPROCS {
{ ARGS {} }
{ PROCS {} }
} }
{ READONLY 0 }
{ TYPE xlate }
{ XLATE GetBSNInfo_input-x-ORU_R01.xlt }
}
‘
[diag:leak:DBUG/0:ADT_TEST_xlate:02/26/2010 13:27:36] diag rc alloc 0x014CDD18
[xlt :rout:DBUG/1:ADT_TEST_xlate:02/26/2010 13:27:36] loading route detail ‘
{ DEST SBVZ_CASS }
{ ELEVATEWARNINGFORPARSE 0 }
{ POSTPROCS {
{ ARGS {} }
{ PROCS {} }
} }
{ PREPROCS {
{ ARGS {} }
{ PROCS {} }
} }
{ READONLY 0 }
{ TYPE xlate }
{ XLATE GetBSNInfo_input-x-ORU_R01.xlt }
‘
[diag:leak:DBUG/0:ADT_TEST_xlate:02/26/2010 13:27:36] diag rd alloc 0x020E5868
[pti :sign:WARN/0:ADT_TEST_xlate:02/26/2010 13:27:36] Thread 1 received signal EXCEPTION_ACCESS_VIOLATION:
The thread attempted to read from or write to a virtual address for which it does not have the appropriate access.
[pti :sign:WARN/0:ADT_TEST_xlate:02/26/2010 13:27:36] PC = 0xffffffff
[pti :thre:INFO/0:ADT_TEST_xlate:02/26/2010 13:27:36] Thread 1 was told to shutdown
[diag:leak:DBUG/0:ADT_TEST_xlate:02/26/2010 13:27:36] diag ptm alloc 0x014CD220
[pti :msg :DBUG/1:ADT_TEST_xlate:02/26/2010 13:27:36] Send PTM 0x014CD220 from 1 to 1: data 0x00000000
[pti :sche:DBUG/1:ADT_TEST_xlate:02/26/2010 13:27:36] The PTM_CTRL que smells fishy.
[msi :msi :INFO/0:ADT_TEST_xlate:02/26/2010 13:27:36] Updating shared memory to mark threads as dead.
PANIC: “0”
PANIC: Calling “pti” for thread ADT_TEST_cmd
Thread Events State Priority Runnable PT Msgs
0 0 SCHED_IDLE 0 0 0,0,0
1 0 SCHED_RUNNING 0 0 1,0,0
2 0 SCHED_IDLE 0 0 0,0,0
3 0 SCHED_IDLE 0 0 0,0,0
ti: 0x00CD94B0
tid : 0
HostPthreadId : 0x00000000
EventList : 0x00D91C60
PolledEvents : 0x00D927C8
PthreadEvent : 0x00D92040
ReadyEvents : 0x00D927E0
CtrlMsgs : 0x00D92930
UserCtrlMsgs : 0x00CDBF88
UserDataMsgs : 0x00CDBFA0
StartArgs : 0x00000000
SchedState : SCHED_IDLE
SchedPriority : 0
Killed : 0
el: 0x00D91C60
elCount : 2
elHead: 0x00CDA548
elTail: 0x01439F80
ele: 0x00CDA548
event: 0x00D92040
prev : 0x0
next : 0x1439f80
ev: 0xd92040
evType : PTHREADS
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 0
evState : 0
evPtMsg : 0x0
evUserData : 0x0
evCallBack : 0x0
evCbShutdown : 0x0
evRecurFreq :
ele: 0x01439F80
event: 0x01433040
prev : 0xcda548
next : 0x0
ev: 0x1433040
evType : SOCKET
evStrDesc : Command port listen
evSocket : 1280
evHandle : 0
evMsgQue : 0
evTid : 0
evState : 0
evPtMsg : 0x0
evUserData : 0x1397e18
evCallBack : 0x4057ec
evCbShutdown : 0x405eca
evRecurFreq :
el: 0x00D927C8
elCount : 0
elHead: 0x00000000
elTail: 0x00000000
el: 0x00D927E0
elCount : 0
elHead: 0x00000000
elTail: 0x00000000
pmq: 0x00D92930
Count : 0
Head : 0x00000000
Tail : 0x00000000
pmq: 0x00CDBF88
Count : 0
Head : 0x00000000
Tail : 0x00000000
pmq: 0x00CDBFA0
Count : 0
Head : 0x00000000
Tail : 0x00000000
ti: 0x01410A00
tid : 1
HostPthreadId : 0x000004EC
EventList : 0x01486198
PolledEvents : 0x014C4270
PthreadEvent : 0x014CC880
ReadyEvents : 0x01464FF8
CtrlMsgs : 0x01465248
UserCtrlMsgs : 0x01464FA0
UserDataMsgs : 0x01461560
StartArgs : 0x014836E0
SchedState : SCHED_RUNNING
SchedPriority : 0
Killed : 1
el: 0x01486198
elCount : 4
elHead: 0x0151DB40
elTail: 0x0146F9A0
ele: 0x0151DB40
event: 0x014CE1C0
prev : 0x0
next : 0x151dd40
ev: 0x14ce1c0
evType : SOCKET
evStrDesc :
evSocket : 1188
evHandle : 0
evMsgQue : 0
evTid : 1
evState : 0
evPtMsg : 0x0
evUserData : 0x14c6308
evCallBack : 0x4a02d0
evCbShutdown : 0x4a0568
evRecurFreq :
ele: 0x0151DD40
event: 0x014CC880
prev : 0x151db40
next : 0x1511c40
ev: 0x14cc880
evType : PTHREADS
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 1
evState : 0
evPtMsg : 0x0
evUserData : 0x14c62c0
evCallBack : 0x4a03d1
evCbShutdown : 0x4a0568
evRecurFreq :
ele: 0x01511C40
event: 0x014E0E98
prev : 0x151dd40
next : 0x146f9a0
ev: 0x14e0e98
evType : POLLED
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 1
evState : 2
evPtMsg : 0x0
evUserData : 0x0
evCallBack : 0x4ae760
evCbShutdown : 0x0
evRecurFreq :
ele: 0x0146F9A0
event: 0x015A8E00
prev : 0x1511c40
next : 0x0
ev: 0x15a8e00
evType : NT_EVENT
evStrDesc : New Thread
evSocket : 0
evHandle : 1164
evMsgQue : 0
evTid : 1
evState : 0
evPtMsg : 0x0
evUserData : 0x16be628
evCallBack : 0x4afe01
evCbShutdown : 0x0
evRecurFreq :
el: 0x014C4270
elCount : 1
elHead: 0x0151DAB8
elTail: 0x0151DAB8
ele: 0x0151DAB8 — POLLED event: 0x014E0E98
el: 0x01464FF8
elCount : 0
elHead: 0x00000000
elTail: 0x00000000
pmq: 0x01465248
Count : 1
Head : 0x014CD220
Tail : 0x014CD220
PthreadMsg: 0x014CD220
ptmType : 1
ptmSender : 1
ptmCtrl : 3358
ptmNext : 0x00000000
ptmDataPtr: 0x00000000
ptmDataInt: 0
pmq: 0x01464FA0
Count : 0
Head : 0x00000000
Tail : 0x00000000
pmq: 0x01461560
Count : 0
Head : 0x00000000
Tail : 0x00000000
ti: 0x015C47D0
tid : 2
HostPthreadId : 0x00000484
EventList : 0x01489208
PolledEvents : 0x016B3AF0
PthreadEvent : 0x0183CBC8
ReadyEvents : 0x016B3B20
CtrlMsgs : 0x01489160
UserCtrlMsgs : 0x014D2338
UserDataMsgs : 0x014D2298
StartArgs : 0x0148A030
SchedState : SCHED_IDLE
SchedPriority : 0
Killed : 0
el: 0x01489208
elCount : 4
elHead: 0x0186C5B0
elTail: 0x0185BA98
ele: 0x0186C5B0
event: 0x0183CB50
prev : 0x0
next : 0x186c5c8
ev: 0x183cb50
evType : SOCKET
evStrDesc :
evSocket : 1128
evHandle : 0
evMsgQue : 0
evTid : 2
evState : 0
evPtMsg : 0x0
evUserData : 0x186fe48
evCallBack : 0x4a02d0
evCbShutdown : 0x4a0568
evRecurFreq :
ele: 0x0186C5C8
event: 0x0183CBC8
prev : 0x186c5b0
next : 0x186c628
ev: 0x183cbc8
evType : PTHREADS
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 2
evState : 0
evPtMsg : 0x0
evUserData : 0x186fe68
evCallBack : 0x4a03d1
evCbShutdown : 0x4a0568
evRecurFreq :
ele: 0x0186C628
event: 0x0183CC38
prev : 0x186c5c8
next : 0x185ba98
ev: 0x183cc38
evType : POLLED
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 2
evState : 0
evPtMsg : 0x0
evUserData : 0x0
evCallBack : 0x40d49a
evCbShutdown : 0x0
evRecurFreq :
ele: 0x0185BA98
event: 0x0183C9F0
prev : 0x186c628
next : 0x0
ev: 0x183c9f0
evType : ACTIVE_TIMER
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 2
evState : 0
evPtMsg : 0x0
evUserData : 0x18620d0
evCallBack : 0x545ba3
evCbShutdown : 0x0
evRecurFreq : 5,0000
el: 0x016B3AF0
elCount : 1
elHead: 0x0186C610
elTail: 0x0186C610
ele: 0x0186C610 — POLLED event: 0x0183CC38
el: 0x016B3B20
elCount : 0
elHead: 0x00000000
elTail: 0x00000000
pmq: 0x01489160
Count : 0
Head : 0x00000000
Tail : 0x00000000
pmq: 0x014D2338
Count : 0
Head : 0x00000000
Tail : 0x00000000
pmq: 0x014D2298
Count : 0
Head : 0x00000000
Tail : 0x00000000
ti: 0x0187DBD0
tid : 3
HostPthreadId : 0x0000044C
EventList : 0x015117E8
PolledEvents : 0x0185BF60
PthreadEvent : 0x01DFEED0
ReadyEvents : 0x017D9928
CtrlMsgs : 0x0185BFC0
UserCtrlMsgs : 0x01863578
UserDataMsgs : 0x01863590
StartArgs : 0x0187DBB0
SchedState : SCHED_IDLE
SchedPriority : 0
Killed : 0
el: 0x015117E8
elCount : 6
elHead: 0x01E25120
elTail: 0x01E25258
ele: 0x01E25120
event: 0x01DFF118
prev : 0x0
next : 0x16bc948
ev: 0x1dff118
evType : SOCKET
evStrDesc :
evSocket : 1064
evHandle : 0
evMsgQue : 0
evTid : 3
evState : 0
evPtMsg : 0x0
evUserData : 0x1e2f3a0
evCallBack : 0x4a02d0
evCbShutdown : 0x4a0568
evRecurFreq :
ele: 0x016BC948
event: 0x01DFEED0
prev : 0x1e25120
next : 0x1e25180
ev: 0x1dfeed0
evType : PTHREADS
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 3
evState : 0
evPtMsg : 0x0
evUserData : 0x1e2f3c0
evCallBack : 0x4a03d1
evCbShutdown : 0x4a0568
evRecurFreq :
ele: 0x01E25180
event: 0x01DFEF48
prev : 0x16bc948
next : 0x1e251f8
ev: 0x1dfef48
evType : POLLED
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 3
evState : 0
evPtMsg : 0x0
evUserData : 0x0
evCallBack : 0x40d49a
evCbShutdown : 0x0
evRecurFreq :
ele: 0x01E251F8
event: 0x01DFEFB8
prev : 0x1e25180
next : 0x1e251b0
ev: 0x1dfefb8
evType : ACTIVE_TIMER
evStrDesc :
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 3
evState : 0
evPtMsg : 0x0
evUserData : 0x1e2f090
evCallBack : 0x545ba3
evCbShutdown : 0x0
evRecurFreq : 5,0000
ele: 0x01E251B0
event: 0x01DFEDC0
prev : 0x1e251f8
next : 0x1e25258
ev: 0x1dfedc0
evType : POLLED
evStrDesc : Sub Thread Poll
evSocket : 0
evHandle : 0
evMsgQue : 0
evTid : 3
evState : 0
evPtMsg : 0x0
evUserData : 0x14ce598
evCallBack : 0x43bc82
evCbShutdown : 0x0
evRecurFreq :
ele: 0x01E25258
event: 0x01D42A38
prev : 0x1e251b0
next : 0x0
ev: 0x1d42a38
evType : SOCKET
evStrDesc : TCP Client Read
evSocket : 1032
evHandle : 0
evMsgQue : 0
evTid : 3
evState : 0
evPtMsg : 0x0
evUserData : 0x1d846c8
evCallBack : 0x417b60
evCbShutdown : 0x0
evRecurFreq :
el: 0x0185BF60
elCount : 2
elHead: 0x01E25168
elTail: 0x0151B0E8
ele: 0x01E25168 — POLLED event: 0x01DFEF48
ele: 0x0151B0E8 — POLLED event: 0x01DFEDC0
el: 0x017D9928
elCount : 0
elHead: 0x00000000
elTail: 0x00000000
pmq: 0x0185BFC0
Count : 0
Head : 0x00000000
Tail : 0x00000000
pmq: 0x01863578
Count : 0
Head : 0x00000000
Tail : 0x00000000
pmq: 0x01863590
Count : 0
Head : 0x00000000
Tail : 0x00000000
PANIC: Calling “dbi shutdown” for thread ADT_TEST_cmd
[diag:leak:DBUG/0: ADT_TEST_cmd:02/26/2010 13:27:36] diag dtd free 0x00D92D10
PANIC: Calling “dbi shutdown” for thread ADT_TEST_xlate
[diag:leak:DBUG/0:ADT_TEST_xlate:02/26/2010 13:27:36] diag dtd free 0x01526B88
PANIC: Calling “clean up ODBC” for thread ADT_TEST_cmd
PANIC: Calling “dbi shutdown” for thread ecaris_test_ADT
[diag:leak:DBUG/0:ecaris_test_ADT:02/26/2010 13:27:36] diag dtd free 0x01874008
PANIC: Calling “dbi shutdown” for thread SBVZ_BSN
[diag:leak:DBUG/0: SBVZ_BSN:02/26/2010 13:27:36] diag dtd free 0x01E37008
PANIC: Process panic—engine going down
PANIC: assertion ‘0’ failed at PthreadInterface.cpp/715