Philippe LE GAL - 2014-10-17

Hi,

I've to comment the line 89 (88 without the comment) in

pkg_comm_protocol/c_cpp/com_coronis_sdk_protocol_waveportprotocol/src/protocol.c

from the last trunk version.

to avoid a segfault

my target : arm

Any idea ?

Thanks

Philippe

77 int protocol_destroy( const void protocol ) {
78 ProtocolInfo
protocolInfo = get_protocol( protocol );
79 LOG_DEBUG( g_Logger, "WAVEPORT protocol_destroy: BEGIN - %p", protocolInfo);
80 if ( protocolInfo ) {
81 // SerialDriver Instance is set and
82 // has been loaded inside waveport instance serialDriverHandle = (void)-1
83 // --> unset it before destroy protocol
84 if (protocolInfo->serialDriverHandler.serialDriverHandle && (protocolInfo->serialDriverHandler.serialDriverHandle !=(void
)-1)) {
85 LOG_DEBUG( g_Logger, "WAVEPORT protocol_destroy: call serialDriverHandler.destroy", 0);
86 protocolInfo->serialDriverHandler.destroy( protocolInfo->serialDriver );
87 }
88 // 17/10/14 comment following line because of segfault
89 //free_serial_driver( &protocolInfo->serialDriverHandler );
90 LOG_DEBUG( g_Logger, "WAVEPORT protocol_destroy: protocol %p destroyed", protocolInfo);
91 memset( protocolInfo, 0, sizeof(ProtocolInfo) );
92 return OK_PROTOCOL_SUCCESS;
93 }
94 return KO_PROTOCOL_NO_VALID_PARAMETER;
95 }