Closed wfjsw closed 3 years ago
Hej, thanks for your report. I can confirm four of your five test fails, ... unfortunately I cannot reproduce the ctx_lifespan one, which is an actual crash
PID: 33542 (php)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Fri 2020-08-21 21:19:07 CST (6min ago)
Command Line: /usr/local/php/bin/php -n -c /root/phpv8/v8js/tmp-php.ini -d output_handler= -d open_basedir= -d disable_functions= -d output_buffering=Off -d error_reporting=32767 -d display_errors=1 -d display_startup_errors=1 -d log_errors=0 -d html_errors=0 -d track_errors=0 -d report_memleaks=1 -d report_zend_debug=0 -d docref_root= -d docref_ext=.html -d error_prepend_string= -d error_append_string= -d auto_prepend_file= -d auto_append_file= -d ignore_repeated_errors=0 -d precision=14 -d memory_limit=128M -d log_errors_max_len=0 -d opcache.fast_shutdown=0 -d opcache.file_update_protection=0 -d opcache.revalidate_freq=0 -d zend.assertions=1 -d zend.exception_ignore_args=0 -d extension_dir=/root/phpv8/v8js/modules/ -d extension=v8js.so -d session.auto_start=0 -d zlib.output_compression=Off -d mbstring.func_overload=0 -f /root/phpv8/v8js/tests/ctx_lifetime.php
Executable: /usr/local/php/bin/php
Control Group: /user.slice/user-0.slice/session-111174.scope
Unit: session-111174.scope
Slice: user-0.slice
Session: 111174
Owner UID: 0 (root)
Boot ID: ab9c186f8045494ea9a2cf8b47354723
Machine ID: 69fa917cc0ea466fa9f2848d808a7fb3
Hostname: ank
Storage: /var/lib/systemd/coredump/core.php.0.ab9c186f8045494ea9a2cf8b47354723.33542.1598015947000000.lz4
Message: Process 33542 (php) of user 0 dumped core.
Stack trace of thread 33542:
#0 0x0000562c012963f8 zend_gc_delref (php)
#1 0x0000562c01298055 execute_ex (php)
#2 0x0000562c0129f203 zend_execute (php)
#3 0x0000562c0121dad4 zend_execute_scripts (php)
#4 0x0000562c011c0fe0 php_execute_script (php)
#5 0x0000562c012a1276 do_cli (php)
#6 0x0000562c00eb8418 main (php)
#7 0x00007f51a89afe0b __libc_start_main (libc.so.6)
#8 0x0000562c00eb8b5a _start (php)
Stack trace of thread 33545:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33549:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33550:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33544:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33548:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33546:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33547:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33551:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33553:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33555:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33558:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33552:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33543:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33557:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33554:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Stack trace of thread 33556:
#0 0x00007f51a89775e5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f51a7b5dd2b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libv8_libplatform.so)
#2 0x00007f51a7b5d7bf _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libv8_libplatform.so)
#3 0x00007f51a7b487c0 _ZN2v84baseL11ThreadEntryEPv (libv8_libbase.so)
#4 0x00007f51a8970f27 start_thread (libpthread.so.0)
#5 0x00007f51a8a862af __clone (libc.so.6)
Core dump with corresponding binary: core.tar.gz
All tests passed.
Should be fixed with #446 and/or #463 finally merged.
Version:
Configure argument:
./configure --with-v8js=/usr/local/v8 LDFLAGS="-lstdc++" CPPFLAGS="-DV8_COMPRESS_POINTERS"
Test result: