void ha_process_pkttimer(void *data)
{
ha_packet_t*packet;
ha_packet_ctrl_t*controller;
if (data == NULL)
return;
packet = data; 没有将void *转换为(ha_packet_t *)
controller = packet->controller;
if (controller->check_func(packet) && controller->timeout_func != NULL) {
}
注意红色部分,导致在 if (controller->check_func这句时引起总线错误
参考:
http://www.cnblogs.com/li-hao/archive/2012/01/31/2333952.html