-
Notifications
You must be signed in to change notification settings - Fork 330
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
faketime cargo fails #402
Comments
I'm having a hard time reproducing this (cargo 1.42.1, rustc 1.41.1). Any chance you could try with a more recent version of libfaketime? v0.9.8 is from 2019 and eventually there were relevant changes already. If it still crashes, it'd be good to have some more debugging information on which system call it happened on. |
Thank you for looking into this issue! faketime v0.9.8 is what I got installed using apt install faketime on Ubuntu 22.04. After manully building and installing faketime from sources, the above command hangs. Interestingly, it does not hang when invoking cargo with faketime again after having actually built the sources without faketime:
and I could successfully run this faketime also on this simple example
|
Thanks for trying this out. That's already progress. :-) Could you please tell me whether libfaketime's Usually hard-working maintainers per distro choose the correct compile-time parameters. I don't know why Ubuntu is still stuck to v0.9.8. Let's find out how to get it to work there, and eventually we can trigger some update process for Ubuntu then. |
I could successfully execute |
Is anybody working on this issue? |
Might be related to this: #130 |
I can confirm that this issue is due to |
Thanks for tracing it down to jemalloc. I recommend to find a solution that either works without libfaketime or without jemalloc. jemalloc & libfaketime is a really long-standing issue and there are no known satisfying workarounds. If you want to dig deeper, you might want to try adding some basic error handling in the places where jemalloc calls time-related system functions. I still think the problem could be solved on jemalloc's side. |
Is the issue reported with jemalloc? Anyway, for now I'll use rustc compiled without jemalloc. |
closing this as duplicate of #130 , which is still open for discussion and suggestions. |
faketime
cannot be used withcargo
(the Rust package manager):I'm running faketime 0.9.8 on a 64-bit Ubuntu:
The text was updated successfully, but these errors were encountered: