-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Assertion '!empty()' failed. #233
Comments
I think this is related to a bug in the libelfin dependency: |
I applied the patch in the pull request, I am still getting the same error :| |
Odd, I am unable to reproduce the issue. Could you include more details? Also, I would double check that the patch applied and is being used. |
Same issue here. I am not well versed in c++ toolchains, so I had some friction patching the fix. I am on Arch linux kernel version 6.10.3-arch1-1 which meant downloading from the AUR. I changed Still getting the same error message: Will do some digging in coz to see if I can fix it. |
Came here to say that I too am also experiencing this issue:
Currently on Arch Linux, |
Ditto, same error. I'm on Manjaro 24.0.8 and I'm trying to run a Rust binary, although that doesn't seem relevant. |
Funnily enough, I also tried using coz with Rust, but I doubt that's the problem. |
Thanks for the bug reports! Could you provide information about the following?
This would be super helpful with debugging because I'm not getting an assert failure with either github HEAD (b855f59) or the latest apt package (coz 0.2.2-2). |
I was using whatever version was on AUR which seems to have not been updated for some time. I went ahead and cloned from GitHub. Using a version built from that source following the instructions on the repo, I ran The full output of the program is
|
Thanks for adding some more info. I'm still unable to reproduce this, which makes me wonder if it could be a problem specific to arch or to newer versions of the kernel. I'm on Ubuntu 22.04.1 (kernel 6.5.0-44-generic). Will do some more digging. |
Is this happening for anyone on Ubuntu 22? I can't upgrade right now, so I'm not able to check if it's an Ubuntu vs Arch issue, a kernel version issue, or something else entirely. |
I can also reproduce it using the toy.rs example.
Installed via aur coz-git commit 62534a4.
|
I have the same issue with the following setup:
|
I just setup an arch vm to try to reproduce this, and I still can't. I ran coz on a simple hello-world C file, a simple hello-world Rust crate, and the toy-rs benchmark. All of them worked fine.
coz installed from source (62534a4) |
When installing from git, are you following the instructions here? Obviously they need to be adapted to work on arch linux, but when I did, it worked fine. I also had to |
Could you go into lldb/gdb and print a backtrace of the assert failure (lldb preferred because usually gives better backtraces)? This is a bit complicated because Basically (the $ lldb ./path/to/benchmark/executable
(lldb) env LD_PRELOAD=/usr/local/lib/libcoz.so
(lldb) env COZ_BINARY_SCOPE=MAIN
(lldb) run
... assert failure printed here ...
(lldb) bt EDIT: You can also try installing another project from this lab into lldb, which may help with the debugging: https://github.com/plasma-umass/ChatDBG |
Does this seem to be the output you would expect?
Just let me know if I need to run it differently. |
I got the following with one of my small projects:
|
Thank you so much! This indicates a bug in the libelfin dependency (that's what libdwarf++ is). Essentially, it calls |
Thanks! |
Ok, can you try applying this PR's patch to your local libelfin clone? plasma-umass/libelfin#2 Make sure to re- |
Mabe its something on my side, but i get this error when compiling:
|
Chatgpt suggested changing the line to |
Whoops, sorry about that. It's actually probably simplest to just guard the original @jullanggit can you try this updated version of the PR? plasma-umass/libelfin#2 |
I tried it and, as far as I can tell, it works! Thanks! |
Awesome! Thanks for your help with the debugging. |
For now, this gives us more control over fixing bugs like plasma-umass#233.
Hello,
Currently, I am trying to use coz, however whenever I run it with ANY application with no flags I get the following error
How do fix?
The text was updated successfully, but these errors were encountered: