-
Notifications
You must be signed in to change notification settings - Fork 57
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
Failing test_thread_safety #105
Comments
Hi,
|
My bad, it's not the mtime itself that changes but the time zone, weird. |
What do you get if you run this? #!/usr/bin/env python3
import threading
import time
def test():
print("From created thread:", time.tzname)
print("From main thread:", time.tzname)
t = threading.Thread(target=test)
t.start()
t.join() Here, both threads show the same:
|
Hi, sorry for late answer. My filesystem is zfs, your test code give me
Fail errors are different for every compile, sometime 5 tests fails some time 3 tests fails, I also get this kind of error:
|
It may be a MediaInfo (not the pymediainfo binding) issue, with a fix available but not yet with a public release. |
@JeromeMartinez I had completely forgotten about that, thanks for your help :) v0.4.38 has been released publicly though, hasn't it? @gspe I'm 99% sure Jérôme is right and I see void is shipping v0.4.37 of libzen, I'll let you update it and close the issue if it works. |
Ok, upgrading libzen to v0.4.38 solve the problem. Thank you guys. |
This version solve thread safety problem sbraz/pymediainfo#105
@JeromeMartinez please see my comments under void-linux/void-packages#27936 (comment) , your fix isn't applied for libraries such as musl (and possibly some BSDs). As you can see in https://man.voidlinux.org/feature_test_macros.7 , feature test macros should be defined by the application and tested by the system headers (yes, the naming is terrible); you shouldn't try to check their values in your own code. I suggested a fix in my comments, and I would suggest not supporting a case where neither |
I'm closing this as it has to do with MediaInfo itself. @JeromeMartinez I'll let you look at @ericonr's comments with regards to non-libc systems. |
This version + patch applied by ericonr solve thread safety problem sbraz/pymediainfo#105 Also by ericonr: - don't use create_wrksrc unnecessarily Closes: #27936 [via git-merge-pr]
This version + patch applied by ericonr solve thread safety problem sbraz/pymediainfo#105 Also by ericonr: - don't use create_wrksrc unnecessarily Closes: void-linux#27936 [via git-merge-pr]
I'm trying to package pymediainfo for void linux distribution but it fails the thread safety test.
This vesrion of software are used in void
These are some sample of the errors:
The text was updated successfully, but these errors were encountered: