What are you trying to execute?

--
Nilay

On Sun, 1 Jan 2012, Mahmood Naderan wrote:

Hi,
Consider this statements in cache_impl.hh::handleSnoop()

cpuSidePort->sendTiming(snoopPkt);
if (snoopPkt->memInhibitAsserted()) {
   assert(!alreadyResponded);
   pkt->assertMemInhibit();
} else {
   delete snoopPkt->senderState;
}
if (snoopPkt->sharedAsserted()) {
  pkt->assertShared();
}
delete snoopPkt;

I have noticed that when
delete snoopPkt->senderState;

is executed, and then
delete snoopPkt;

I get this error:

*** glibc detected *** /home/mahmood/gem5/build/X86_SE/m5.debug:
double free or corruption (fasttop): 0x0000000002a8a640 ***

Is it a bug or something else. Can someone verify that?

--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to