GrammaticalFramework / gf-core

Grammatical Framework core: compiler, shell & runtimes
https://www.grammaticalframework.org
Other
129 stars 35 forks source link

pgf/reasoner.c crash on RHEL systems #48

Open zaibacu opened 4 years ago

zaibacu commented 4 years ago

This is VERY niche bug, however encountered two times - one on my laptop (Fedora 30), another on AWS (RedHat 8). I'm guessing it has something to do with RHEL kernel.

Essentialy, it happens when calling PGF_generateAll function. The content of grammar, the language of runtime doesn't make a difference. (Tested on python2.7, python3.6, java)

Tested in both:

Stacktrace from Python:

Program received signal SIGSEGV, Segmentation fault.
0x0000555555992043 in ?? ()
(gdb) backtrace
#0  0x0000555555992043 in ?? ()
#1  0x00007ffff296d4b1 in pgf_generate_all (pgf=<optimized out>, typ=0x555555812ad8, err=err@entry=0x7fffffffbb00, pool=<optimized out>, out_pool=out_pool@entry=0x5555557c15c0) at pgf/reasoner.c:471
#2  0x00007ffff2dbfb7f in PGF_generateAll (self=0x7ffff2feb8d0, args=<optimized out>, keywds=<optimized out>) at pypgf.c:2972
#3  0x00007ffff79ea9b3 in _PyCFunction_FastCallDict () from /lib64/libpython3.6m.so.1.0
#4  0x00007ffff79ead6d in call_function () from /lib64/libpython3.6m.so.1.0
#5  0x00007ffff7a29faa in _PyEval_EvalFrameDefault () from /lib64/libpython3.6m.so.1.0
#6  0x00007ffff79b661a in fast_function () from /lib64/libpython3.6m.so.1.0
#7  0x00007ffff79eae52 in call_function () from /lib64/libpython3.6m.so.1.0
#8  0x00007ffff7a29faa in _PyEval_EvalFrameDefault () from /lib64/libpython3.6m.so.1.0
#9  0x00007ffff797c7db in _PyEval_EvalCodeWithName () from /lib64/libpython3.6m.so.1.0
#10 0x00007ffff79b67d0 in fast_function () from /lib64/libpython3.6m.so.1.0
zaibacu commented 4 years ago

Update: Launched on Ubuntu - works fine. Certainly RHEL issue

krangelov commented 4 years ago

Seems to be something with the JIT compiler but I don't have access to RHEL for testing.

On Fri, 6 Mar 2020 at 15:07, Šarūnas Navickas notifications@github.com wrote:

Update: Launched on Ubuntu - works fine. Certainly RHEL issue

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GrammaticalFramework/gf-core/issues/48?email_source=notifications&email_token=AEYFSZHLETM3E5HB4QAYEA3RGD7TNA5CNFSM4LDANIKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOBO3FQ#issuecomment-595783062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYFSZB34Q6SDF5Z4J2CPLLRGD7TNANCNFSM4LDANIKA .