Skip to content
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

When testing django-pyscss I get crash in _scanner.so #378

Open
mcepl opened this issue Jan 18, 2019 · 2 comments
Open

When testing django-pyscss I get crash in _scanner.so #378

mcepl opened this issue Jan 18, 2019 · 2 comments

Comments

@mcepl
Copy link

mcepl commented Jan 18, 2019

While building python-django-pyscss (see build log) I get a crash which I was able to catch in _scanner.so:

#0  0x00007ffff75ed08b in raise () from /lib64/libc.so.6
#1  0x00007ffff75d64e9 in abort () from /lib64/libc.so.6
#2  0x00007ffff762f9a7 in __libc_message () from /lib64/libc.so.6
#3  0x00007ffff7635e9c in malloc_printerr () from /lib64/libc.so.6
#4  0x00007ffff7639c5e in free_check.part () from /lib64/libc.so.6
#5  0x00007ffff3bdbbb4 in Hashtable_del ()
   from /usr/lib64/python2.7/site-packages/scss/grammar/_scanner.so
#6  0x00007ffff3bdb2a5 in Scanner_del ()
   from /usr/lib64/python2.7/site-packages/scss/grammar/_scanner.so
#7  0x00007ffff3bda1c2 in ?? ()
   from /usr/lib64/python2.7/site-packages/scss/grammar/_scanner.so

The error I see on the outside is free(): invalid pointer. Not sure where it comes from.

@mcepl
Copy link
Author

mcepl commented Jan 18, 2019

OK, there is a better backtrace here:

Thread 1 (Thread 0x7ffff7ff14c0 (LWP 22655)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff75d64e9 in __GI_abort () at abort.c:79
#2  0x00007ffff762f9a7 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff77394c2 "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7635e9c in malloc_printerr (str=str@entry=0x7ffff77376d3 "free(): invalid pointer") at malloc.c:5350
#4  0x00007ffff7639c5e in free_check (mem=<optimized out>, caller=<optimized out>) at hooks.c:274
#5  0x00007ffff3bdbbb4 in Hashtable_del (hashtable=0x5555596d79a0) at scss/src/hashtable.c:125
#6  0x00007ffff3bdb2a5 in Scanner_del (self=0x555559464f00) at scss/src/scanner.c:277
#7  0x00007ffff3bda1c2 in scss_Scanner_dealloc (self=0x7ffff3743410) at scss/src/_speedups.c:434
#8  0x00007ffff7c734d3 in ?? () from /usr/lib64/libpython2.7.so.1.0
#9  0x00007ffff7c56c3c in ?? () from /usr/lib64/libpython2.7.so.1.0
#10 0x00007ffff7c734b0 in ?? () from /usr/lib64/libpython2.7.so.1.0
#11 0x00007ffff7c41097 in ?? () from /usr/lib64/libpython2.7.so.1.0
#12 0x00007ffff7c93949 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0

Full gdb session

@dirkmueller
Copy link

The same crash happens in Python 3.6.x. so this is not python 2.x specific as indicated before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants