#24080: Sqlite segmentation fault regression when running tests (since 1.7.2)
-----------------------------------+------------------------------------
     Reporter:  stevejalim         |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:  sqlite             |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by stebunovd):

 We're running into the same issue with our project tests suite. 100%
 reproducible. Debian Jessie + Python 2.7.10, using Docker.

 I tried:
 - using latest pysqlite2 version 2.6.3 instead of sqlite3 version 2.6.0
 from Python standard library;
 - doubling RAM size for the virtual machine which is running tests;
 - upgrading sqlite3 version from 3.8.7.1 to 3.8.11.1.

 None of above worked for me. Finally, I tried running it from gdb and it
 shows Segmentation fault in sqlite3.c, but I have no idea what can I do
 with it:


 {{{
 (gdb) run manage.py test api.tests.test_member --settings api.settings
 Starting program: /usr/local/bin/python manage.py test
 api.tests.test_member --settings api.settings
 [Thread debugging using libthread_db enabled]
 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
 Traceback (most recent call last):
   File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-
 gnu/libstdc++.so.6.0.20-gdb.py", line 59, in <module>
     from libstdcxx.v6.printers import register_libstdcxx_printers
   File "/usr/lib/x86_64-linux-
 gnu/../../share/gcc-4.9/python/libstdcxx/v6/printers.py", line 19, in
 <module>
     import itertools
 ImportError: No module named itertools
 Creating test database for alias 'default'...
 /usr/local/lib/python2.7/site-packages/redis_cache/utils.py:4:
 RemovedInDjango19Warning: django.utils.importlib will be removed in Django
 1.9.
   from django.utils.importlib import import_module

 ..
 Program received signal SIGSEGV, Segmentation fault.
 memjrnlRead (pJfd=0x158a058, zBuf=<optimized out>, iAmt=4, iOfst=98552)
     at sqlite3.c:82326
 82326       memcpy(zOut, &pChunk->zChunk[iChunkOffset], nCopy);

 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24080#comment:30>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.9fe133e0d80d8e055e0bd3717bab3c97%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to