hi Luca,
after some study on engine.c, I think I found the cause of the segment fault.
That is in walkHashList(),
/* 2 - Max Duration */
if(readWriteGlobals->expireFlowListHead[thread_id] ==
readWriteGlobals->expireFlowListTail[thread_id]) {
/* The list has only one element: me */
if(readWriteGlobals->expireFlowListHead[thread_id] != myBucket) {
traceEvent(TRACE_WARNING, "Internal error: [Head: %p][Tail: %p][myBucket:
%p][num_runs: %u][thread_id: %u]",
readWriteGlobals->expireFlowListHead[thread_id],
readWriteGlobals->expireFlowListTail[thread_id],
myBucket, num_runs, thread_id);
}
readWriteGlobals->expireFlowListHead[thread_id] =
readWriteGlobals->expireFlowListTail[thread_id] = NULL;
} else if(readWriteGlobals->expireFlowListHead[thread_id] == myBucket) {
/* 1st Element of the list and more than one element on the list */
readWriteGlobals->expireFlowListHead[thread_id] =
myBucket->core.max_duration.next;
readWriteGlobals->expireFlowListHead[thread_id]->core.max_duration.prev =
NULL;
} else if(readWriteGlobals->expireFlowListTail[thread_id] == myBucket) {
/* Last element of the list */
readWriteGlobals->expireFlowListTail[thread_id] =
myBucket->core.max_duration.prev;
readWriteGlobals->expireFlowListTail[thread_id]->core.max_duration.next =
NULL;
------------------------------------------------------------------------myBucket->core.max_duration.prev
is NULL, so segment fault raised in this line.
if everything goes right, core.max_duration.next will never be null if this
bucket is the last element of the list. so, there must be someting wrong with
this list.
} else {
-----原始邮件-----
发件人: "Luca Deri" <[email protected]>
发送时间: 2015年8月23日 星期日
收件人: "[email protected]" <[email protected]>
抄送:
主题: Re: [Ntop-misc] is there any possible to run nprobe7.1 on pfring5.5.2
No sorry you need to upgrade pfring
Luca
Sent from my iPad
On 23 Aug 2015, at 03:30, 王勇 <[email protected]> wrote:
Hi there,
I am trying to run nprobe 7.1 svn4666 on pf_ring 5.5.2. The nprobe process
started successfully even it said pf_ring 6 is required. but after several
minutes, signal 11 raised after a warning message:
Internal error: NULL head for index 0 [num_runs: 1][thread_id: xxx]
is this because the version of pf_ring too low or something else?
Thanks,
Alan
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc