-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault on running example application #142
Comments
hey @harry-van-haaren, thank you for reporting the issue. the only difference I can see is the version of DPDK we've tested baremetal setup with was |
Hey Daniel, yeah thanks getting a repro would be good to error-check my setup here. Typically DPDK LTS-es (19.11.x to 19.11.y) are meant to be stable and bugfix backports only, without any regression potential... so I hope its not that! Thanks for the prompt reply, lets see what results a test there give and identify next steps from there. |
I don't have access to a true baremetal linux box, so I did the equivalent (as close as I can get) testing with a VirtualBox VM running Debian. I bumped the version of DPDK from this is my VM
Would you be able to run the Vagrant/VirtualBox setup to validate that the DPDK binding should work? Then maybe we can try dig into why it's not working on your physical box. |
OK - thanks for reporting back - yes I can get a clean setup and see what's going on. Thanks for testing & reporting back! |
yeah no problem. please let us know how we can help or if there's indeed a hard to find bug somewhere. |
Cannot get VirtualBox or Docker based images working on Ubuntu 21.10 platform: Vagrant: didn't manage to install docker appropraitely, so when attempting to run the Docker (native on Linux)
|
I've only ran Vagrant on MacOS. Not sure how well it works on a linux distro or what type of problem you'd run into. Do you have a capture log of the vagrant output? Maybe we can take a look at what's not working. Regarding the Docker on native Linux, are you able to pull down any other images? That seems like a connection timeout to docker hub? |
@harry-van-haaren did you finally get things to work? |
Unfortunatly not no, I did try the vagrant option (as per #142 (comment)) which also did not work: however the networking setup here is not standard, so its not conclusive. I only ran the simple commands, and didn't get to debugging it in detail - and unfortunately won't get to in the next weeks either. |
@harry-van-haaren I'll try this on a bare linux box and see this week. |
Hi Capsule Community,
First time contributer here! Just finished reading the contrib guidelines & code-of-conduct, that's how new I am :)
Describe the bug?
pktdump
example applications segfaults when starting to rx traffic,gdb
indiciates that a DPDKdev->data
structure isNULL
.Steps to reproduce?
Following example instructions for pktdump example here: https://github.com/capsule-rs/capsule/tree/410696acb2e033cabb287750b36810753b54a59e/examples/pktdump
Wget & extract DPDK 19.11.10 (LTS) tarball here; http://fast.dpdk.org/rel/dpdk-19.11.10.tar.xz
Extract, build and install DPDK with
meson
tooling:meson build_gcc && cd build_gcc && meson configure -Dprefix=/usr && ninja install
(Warning; this will install DPDK 19.11 system-wide).cd /examples/pktdump
and then executecargo run -- -f pktdump.toml
just like in the documentation.Expected behavior?
Application runs without segfault
Capsule version?
git master @ 410696a
OS?
Linux (Ubuntu/Debian based)
Docker / VM / Bare?
"Baremetal"
Stack trace or error log output
Somehow, Capsule/DPDK are not initializing the
dev->data
correctly. I'm pretty familiar with DPDK, and was checking some things in GDB. Tested this with a real HW ethernet NIC, as well as withnet_pcap
software NIC, both have same issue, so I'm convinced this is not a DPDK PMD init bug, perhaps somewhere in the Rust/DPDK bindings/config?If somebody can try to validate this same build/config, and report back working/not-working that would be very helpful.
Regards, -Harry
The text was updated successfully, but these errors were encountered: