plasma-umass / coz

Coz: Causal Profiling
Other
4.03k stars 160 forks source link

Assertion '!empty()' failed. #233

Open Jark5455 opened 2 months ago

Jark5455 commented 2 months ago

Hello,

Currently, I am trying to use coz, however whenever I run it with ANY application with no flags I get the following error

/usr/include/c++/14.1.1/bits/basic_string.h:1328: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::front() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&]: Assertion '!empty()' failed.

How do fix?

Lanzaa commented 1 month ago

I think this is related to a bug in the libelfin dependency:

https://github.com/aclements/libelfin/pull/63

Jark5455 commented 1 month ago

I applied the patch in the pull request, I am still getting the same error :|

Lanzaa commented 1 month ago

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.

nicholasdejong commented 2 weeks ago

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 cursor.cc, ran make install and copied all the libraries and archives produced by make into the tar from aur. Ran makepkg and installed with pacman. Pretty sure I did something wrong, but I wasn't sure what to actually do.

Still getting the same error message: /usr/include/c++/14.2.1/bits/basic_string.h:1328: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::front() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&]: Assertion '!empty()' failed.

Will do some digging in coz to see if I can fix it.