nickva commented on issue #551: [Jenkins] couchjs segfaults
URL: https://github.com/apache/couchdb/issues/551#issuecomment-310684280
 
 
   Found a deterministic instance of a segfault.
   
   Apparently this bit
   ```
   ["reset",{"reduce_limit":true,"timeout":5000}]
   ["add_fun","function(doc) }{"]
   ```
   Segfaults in `ubuntu12erlang183` docker image when running on Ubuntu 17.04 
host. 
   
   Haven't tried others. The same input is expected to generate an exception 
about an invalid function, and it does so for example in the `centos7erlang18` 
docker image running on the same host.
   
   It obviously doesn't always segfault because it runs as part of a test suite 
and it doesn't always crash in `ubuntu12erlang183`, sometimes it passes.  It 
could be just my specific host / docker running combination triggered it.
   
   ```
   (gdb) run
   Starting program: /usr/src/couchdb/apache-couchdb-2.1.0-2f539e0/bin/couchjs 
/usr/src/couchdb/apache-couchdb-2.1.0-2f539e0/share/server/main.js < bad.in
   warning: no loadable sections found in added symbol-file system-supplied DSO 
at 0x7ffff7ffa000
   [Thread debugging using libthread_db enabled]
   Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
   [New Thread 0x7ffff1af3700 (LWP 20)]
   true
   Program received signal SIGSEGV, Segmentation fault.
   0x00007ffff79508a4 in ?? () from /usr/lib/libmozjs185.so.1.0
   (gdb) bt
   #0  0x00007ffff79508a4 in ?? () from /usr/lib/libmozjs185.so.1.0
   #1  0x00007ffff78c1603 in JS_TypeOfValue () from /usr/lib/libmozjs185.so.1.0
   #2  0x00007ffff793baf5 in ?? () from /usr/lib/libmozjs185.so.1.0
   #3  0x00007ffff794e285 in ?? () from /usr/lib/libmozjs185.so.1.0
   #4  0x00007ffff794e722 in ?? () from /usr/lib/libmozjs185.so.1.0
   #5  0x00007ffff7920791 in ?? () from /usr/lib/libmozjs185.so.1.0
   #6  0x00007ffff7944b46 in ?? () from /usr/lib/libmozjs185.so.1.0
   #7  0x00007ffff794e285 in ?? () from /usr/lib/libmozjs185.so.1.0
   #8  0x00007ffff794fdc5 in ?? () from /usr/lib/libmozjs185.so.1.0
   #9  0x00007ffff78c73aa in JS_ExecuteScript () from 
/usr/lib/libmozjs185.so.1.0
   #10 0x0000000000404e71 in main (argc=2, argv=0x7fffffffe728) at 
priv/couch_js/main.c:470
   
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to