Giter VIP home page Giter VIP logo

Comments (3)

Lichtso avatar Lichtso commented on July 24, 2024 1

Thanks for the detailed bug report!

It was indeed an infinite loop caused by an impossible CFG. Which in turn was caused by a leading unreachable exit instruction at the beginning of the program, shifting all basic blocks of the first function by one.

from rbpf.

vakond avatar vakond commented on July 24, 2024

One can attach a debugger and see the program spends time searching something. Looks like it entered a forever loop.

* thread #1, name = 'rbpf_cli', stop reason = signal SIGSTOP
    frame #0: 0x000055c2b033011c rbpf_cli`alloc::collections::btree::search::_$LT$impl$u20$alloc..collections..btree..node..NodeRef$LT$BorrowType$C$K$C$V$C$Type$GT$$GT$::find_key_index::h6a386a2ad93b0899(self=0x00007ffe74b82f10, key=0x00007ffe74b83308) at search.rs:206:17
   203          let keys = node.keys();
   204          for (i, k) in keys.iter().enumerate() {
   205              match key.cmp(k.borrow()) {
-> 206                  Ordering::Greater => {}
   207                  Ordering::Equal => return IndexResult::KV(i),
   208                  Ordering::Less => return IndexResult::Edge(i),
   209              }

Executable module set to "target/debug/rbpf_cli".
Architecture set to: x86_64-pc-linux-gnu.

from rbpf.

vakond avatar vakond commented on July 24, 2024

rustup show

Default host: x86_64-unknown-linux-gnu

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
bpf

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.52.1 (9bc8c42bb 2021-05-09)

from rbpf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.