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
'memalign' is unimplemented! panic #70
Comments
Fixed on |
I am seeing the same error: I am using the prebuilt binary, tag 0.9. Is the fix not implemented in that version? I did try building from source with following the instructions, however, I get the following error: I assumed there would be a git pull, and building from inside the downloaded folder, but I never saw that in the instructions. Thank you. |
The fix's not yet in any released versions; you need to compile it yourself for now.
Yes. That's what you're supposed to do. |
Thank you, doing a git clone and following the instructions seemed like it has worked. I have another question now.... Essentially, I have a python script that builds a GNURADIO flowgraph and runs it. All of the blocks are custom c++ code that is ran. Some of the c++ code is creating a memory leak and I am attempting to use bytehound to track down the culprit. Is bytehound the proper tool to use? I have to use it as shown below: LD_PRELOAD=./libbytehound.so python3 top_block.py I ran like you see above, but now an getting a crazy amount of errors, with the backtrace error below. thread '' panicked at 'index out of bounds: the len is 512 but the index is 18446744073709551615', /root/.cargo/git/checkouts/not-perf-af1a46759dd83df9/18bd8d3/nwind/src/local_unwinding.rs:455:26 |
That should not happen. My guess is that it's probably some You can try setting
If the leak's on the C++ side then yes. |
Thank you for the quick response. Yes, the leak is absolutely in the c++ code and bytehound seems like it would help tremendously, with the leak being so small. I tried the above suggestion, and got the following output. Sorry about the format below.
|
That should not happen. The unwinding might be triggering before the options are initialized. Can you try applying the following one-line patch, recompile and try again? (That will permanently hardcode the environment variable that I've told you to set.)
|
So, I updated the the file, reran the cargo commands and when trying to run my python script I got the same output. I did not officially remove bytehound then build again...I simply ran the cargo build commands. update |
Are you sure you're using the right binary? After applying this patch it should be impossible to get the error you're getting. (Unless you're setting Anyway, I've pushed a few changes to |
The following problem occurred today, it didn't exist before:
thread '' panicked at 'not implemented: 'memalign' is unimplemented!', preload/src/api.rs:831:5
The text was updated successfully, but these errors were encountered: