[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segmentation fault ?
You must sure that the receiver don't free the pkt from your agent before
processing it and the sender don't free the pkt before sending it by executing
"target_->recv(pkt);" .
In addition check whther the pkt size which sender sended and the pkt size which
receiver received is the same.
Zhu Xiaogang wrote:
> Hi,
> I defined a new type of Agent and compiled pass. When I send a packet from
> the agent( execute the line 'target_->recv(pkt);' ), the system return
> "Segmentation fault". What does it mean?
>
> Who can give me any clues? I have worked for a whole day, but can't solve
> it by myself. Any help will be appreciated!
>
> ZXG