trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owens, Steve" <Steve.Ow...@disney.com>
Subject Traffic server segfaults under valgrind but not on it's own.
Date Thu, 20 Jun 2013 17:30:48 GMT
I was running some valgrind tests on trafficserver to test my plugin for memory leaks.

At any rate code that runs perfectly fine with just traffic server running ends up segfaulting
when trafficserver is running behind valgrind.

Here is the tail output of the valgrind log showing the segfault.

[Jun 20 10:28:01.181] Server {0x79d4940} DIAG: (ApiMgmtPlugin::JsonPTransformationHandler::callbackHandler)
Current state = STATE_EXIT: output_vio.nbytes = 33314; output_vio.ndone= 33314.
[Jun 20 10:28:01.183] Server {0x79d4940} DIAG: (ApiMgmtPlugin::JsonPTransformationHandler::callbackHandler)
Checking integrity of input_vio to see if it is OK to TSContCall(TSVIOContGet(input_vio),
TS_EVENT_VCONN_WRITE_COMPLETE, input_vio);
[Jun 20 10:28:01.188] Server {0x79d4940} DIAG: (ApiMgmtPlugin::JsonPTransformationHandler::callbackHandler)
TSAssert(input_vio) succeeds; calling TSContCall(TSVIOContGet(input_vio), TS_EVENT_VCONN_WRITE_COMPLETE,
input_vio)
NOTE: Traffic Server received Sig 11: Segmentation fault
/usr/local/bin/traffic_server - STACK TRACE:
/lib64/libpthread.so.0[0x337140ebe0]
/usr/local/bin/traffic_server(_ZN10HttpTunnel16consumer_handlerEiP18HttpTunnelConsumer+0xb0)[0x573340]
/usr/local/bin/traffic_server(_ZN10HttpTunnel12main_handlerEiPv+0x82)[0x573552]
/usr/local/lib/trafficserver/plugins/libJsonPTransformationHandlerPlugin.so(_ZN11apim_plugin26JsonPTransformationHandler15callbackHandlerEP10tsapi_cont7TSEventPv+0x295)[0x10e58389]
/usr/local/bin/traffic_server(_ZN17TransformTerminus12handle_eventEiPv+0xd22)[0x4eabf2]
/usr/local/bin/traffic_server(_ZN7EThread13process_eventEP5Eventi+0x22f)[0x6b9b7f]
/usr/local/bin/traffic_server(_ZN7EThread7executeEv+0x1aa)[0x6ba07a]
/usr/local/bin/traffic_server[0x6b8fce]
/lib64/libpthread.so.0[0x337140677d]
/lib64/libc.so.6(clone+0x6d)[0x3370cd3c1d]
Killed

The segfault occurs on the call to TSContCall(TSVIOContGet(input_vio), TS_EVENT_VCONN_WRITE_COMPLETE,
input_vio).
Yet immediately prior to this a call ws made to TSAssert(input_vio) and no assertion was thrown.



Mime
View raw message