DPDK patches and discussions
 help / color / mirror / Atom feed
From: Meir Tseitlin <mirots@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] Still rte_pktmbuf_alloc problems
Date: Sun, 6 Apr 2014 19:23:12 +0300	[thread overview]
Message-ID: <CA+Typ9nncWPHHjNAkD-8Q0pzDEzUXE08Vxp9ZoZhO=SYmy_Z4A@mail.gmail.com> (raw)

I am modifying l2fwd example to inject additional packets.

I am successfully allocating mbufs with rte_pktmbuf_alloc, but weird
problems started to occur (feels likes concurrency  problems).

I enabled DEBUGs in config file and now my application started crashing on:
PANIC in rte_mbuf_sanity_check:

bad ref cnt
11: [/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7fdea828d3fd]]
10: [/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7fdea8560e9a]]
9: [./recorder(eal_thread_loop+0x175) [0x48c3a5]]
8: [./recorder() [0x411349]]
7: [./recorder() [0x4111ba]]
6: [./recorder(l2fwd_send_burst+0x55) [0x4131a5]]
5: [./recorder() [0x495f39]]
4: [./recorder() [0x4952e0]]
3: [./recorder(rte_mbuf_sanity_check+0xa7) [0x47ef07]]
2: [./recorder(__rte_panic+0xc9) [0x4104ca]]
1: [./recorder(rte_dump_stack+0x23) [0x48e703]]
Aborted (core dumped)


Maybe I am allocating mbufs from incorrect core?

But which core should I use? (Other packets are allocated automatically by
PMD)

Thanks

                 reply	other threads:[~2014-04-06 16:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+Typ9nncWPHHjNAkD-8Q0pzDEzUXE08Vxp9ZoZhO=SYmy_Z4A@mail.gmail.com' \
    --to=mirots@gmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).