sorry what? while debuging I see these statemnets are executed:

cpuSidePort->sendTiming(snoopPkt);
delete snoopPkt->senderState;
delete snoopPkt;

The second "delete" says  double free or corruption

On 1/1/12, Nilay Vaish <[email protected]> wrote:
> 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
>


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

Reply via email to