From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3.iitd.ac.in (smtp3.iitd.ac.in [103.27.11.44]) by dpdk.org (Postfix) with ESMTP id BE8B6A492 for ; Mon, 2 Apr 2018 12:42:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.iitd.ac.in (Postfix) with ESMTP id A3CE440048 for ; Mon, 2 Apr 2018 16:12:49 +0530 (IST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cse.iitd.ac.in; h=content-transfer-encoding:content-language:content-type :content-type:mime-version:user-agent:date:date:message-id :subject:subject:from:from:received:received; s=iitd; t= 1522665766; x=1524480167; bh=zqps5PbO4zGZutLBuGXgzLI+3jE4YHmKAuj f3T0n8mE=; b=mx172Y1fJDNJbDwiHWsaE86zSAO+YgT+bNlJHMT1K8rHO9wHKCb WRq9OhEfHcwGR1LpwsXGBS1MbNVQYQlyiMPP394Nll7kiCbaV4xFRHEfWagOQYP/ 3GuxG5AVZ4r1vkyoLPFQwEEGQvgbllGaWR09Q2J0/rVb0qneC7ucHfu8= X-Virus-Scanned: Debian amavisd-new at smtp2.iitd.ernet.in Received: from smtp3.iitd.ac.in ([127.0.0.1]) by localhost (smtp3.iitd.ac.in [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id TYPiHQWWgVer for ; Mon, 2 Apr 2018 16:12:46 +0530 (IST) Received: from [10.194.189.134] (unknown [10.194.189.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ankitbhr.cstaff) by smtp3.iitd.ac.in (Postfix) with ESMTPSA id EE71B40037 for ; Mon, 2 Apr 2018 16:12:45 +0530 (IST) To: dev@dpdk.org From: Ankit Message-ID: Date: Mon, 2 Apr 2018 16:12:45 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] IPv4 Multicast: Application crashes in case of packet cloning but not in case of reference update X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 10:42:51 -0000 Hi All, I am trying to write code for L2 layer multi-casting and referring=C2=A0 = IPv4=20 Multicast code for packet cloning. The application is working fine when=20 the configuration is such, that "use_clone" is 0, means the application=20 does multi-casting using rte_pktmbuf_refcnt_update() and doesn't clone=20 the packet. But whenever the application does the cloning it crashes after=20 sometime(after exhausting the ring buffer size). The error which I get=20 on the screen is: =C2=A0=C2=A0=C2=A0=C2=A0 PANIC in __rte_mbuf_raw_free(): =C2=A0=C2=A0=C2=A0=C2=A0 line 1178=C2=A0=C2=A0=C2=A0 assert "rte_mbuf_re= fcnt_read(m) =3D=3D 0" failed =C2=A0=C2=A0=C2=A0 9: [/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f= 01f7a263dd]] =C2=A0=C2=A0=C2=A0 8: [/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0= x7f01f7cf06ba]] =C2=A0=C2=A0=C2=A0 7: [./build/ipv4_multicast(eal_thread_loop+0x1db) [0x= 4652eb]] =C2=A0=C2=A0=C2=A0 6: [./build/ipv4_multicast() [0x42e54c]] =C2=A0=C2=A0=C2=A0 5: [./build/ipv4_multicast() [0x42d324]] =C2=A0=C2=A0=C2=A0 4: [./build/ipv4_multicast() [0x42c9fd]] =C2=A0=C2=A0=C2=A0 3: [./build/ipv4_multicast(ixgbe_xmit_pkts+0x4bb) [0x= 54fd7b]] =C2=A0=C2=A0=C2=A0 2: [./build/ipv4_multicast(__rte_panic+0xc9) [0x4277a= b]] =C2=A0=C2=A0=C2=A0 1: [./build/ipv4_multicast(rte_dump_stack+0x2b) [0x46= 96cb]] =C2=A0=C2=A0=C2=A0 Aborted (core dumped) I am not sure what am I missing here, as I have not changed anything in=20 the application. Is there any other reference which can be used for=20 multi-casting application code? Thanks, Ankit