-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Scalene error: received signal SIGSEGV #110
Comments
Now works fine with the latest version of Scalene; please upgrade ( |
I got this error too in simonw/datasette#1219 - steps to reproduce:
That produced the following output for me:
I'm on macOS and the system crash dialog showed up containing the following:
|
My crash report starts on this line: That's this code here: https://github.com/simonw/datasette/blob/aa1fe0692c2abb901216738bfb35f9fcc5090e7d/datasette/utils/__init__.py#L551-L558 def detect_json1(conn=None):
if conn is None:
conn = sqlite3.connect(":memory:")
try:
conn.execute("SELECT json('{}')")
return True
except Exception:
return False Could this be something to do with Scalene attempting to profile |
I just discovered this issue had been closed; the current version of Scalene in the repository works on the above example. Would be great if you could put it through its paces, @simonw !
|
We just found and fixed a bug that specifically affected SQLite on Mac, so this hopefully will be fixed! |
Please verify (if you don't mind), @simonw @shaharkadmiel - thanks! |
I am also experiencing the same error in code which isn't importing sqlite but using PyTorch. macos 11.2.3 using the version directly from master. The SIGSEV error is preceded by a barrage of errors of type |
I wasn't able to reproduce this, @gkaissis - if you can meet on Discord, we can try to see what's going on - https://discord.gg/6Dtaf6HW3m |
@gkaissis if possible could you provide a minimal example of this behavior? |
Replicated with |
I wanted to update on this issue-- it seems like this is actually a problem in PyTorch itself and how it interacts with signals on MacOS. I think it's a good idea to keep this issue open, but I'm also going to open up an issue in PyTorch. |
For reference, this issue has been posted on the PyTorch repo. As it's not a Scalene bug, I'm closing the issue here. |
Note: Scalene works fine with at least one earlier version of PyTorch (1.5.1), which also does not exhibit this bug! |
Documented in |
Getting
Scalene error: received signal SIGSEGV
when trying to profile a python program.I believe one of the imports at the top of my code breaks the profiler.
test.py:
profiling
output:
Scalene error: received signal SIGSEGV
Desktop:
The text was updated successfully, but these errors were encountered: