-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Objmode crashes sometimes #3378
Comments
I can start looking into it if you can provide the definition of the btw, can you try moving bulk of the logic inside the |
The function is below ( def csv_reader_py(fname):
f_reader = csv_file_chunk_reader(fname, True)
with objmode(A='int64[::1]', B='float64[::1]', C='float64[::1]', D='int64[::1]'):
df = pd.read_csv(f_reader, names=['A', 'B', 'C', 'D'],
parse_dates=[])
A = df.A.values
B = df.B.values
C = df.C.values
D = df.D.values
return (A, B, C, D,) |
Sure, I'll try using a separate function as well. |
The same crash when I move the logic inside another function. |
Looks like it doesn't crash if the function inside objmode has a typer available! For example, calling @infer_global(pd.Series)
class DummyTyper(AbstractTemplate):
def generic(self, args, kws):
return signature(types.none) |
This seems random; doesn't always work. Managed to get an error instead of crash: |
I think I found the issue. The lowerer hard-codes the address to the lifted function in the binary here. However, the reference to the function can be lost, resulting in memory error. Keeping an extra reference around fixes the issue for me. |
Reporting a bug
releasedmaster version of Numba (most recent is visible inthe change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).
A function that has
objmode
inside it crashes sometimes in HPAT. I haven't been able to create a small reproducer yet, but the backtrace from gdb is below. Any ideas?The text was updated successfully, but these errors were encountered: