Bug #74382 [Com]: Too many phpunit tests causing segmentation fault

From: Date: Thu, 06 Apr 2017 15:29:47 +0000
Subject: Bug #74382 [Com]: Too many phpunit tests causing segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208367@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74382&edit=1 ID: 74382 Comment by: spam2 at rhsoft dot net Reported by: lewis at lewnelson dot com Summary: Too many phpunit tests causing segmentation fault Status: Feedback Type: Bug Package: PCRE related Operating System: ubuntu 16.04 PHP Version: 7.1.3 Block user comment: N Private report: N New Comment: *-dev packages does *not* contain debug-symbols they are for building extensions and contain headers and so on https://wiki.ubuntu.com/Debug%20Symbol%20Packages Previous Comments: ------------------------------------------------------------------------ [2017-04-06 15:23:35] nikic@php.net After installing the debug symbols, could you please also provide the output of "USE_ZEND_ALLOC=0 valgrind php vendor/bin/phpunit"? (It might take a few minutes to run.) ------------------------------------------------------------------------ [2017-04-06 15:15:28] derick@php.net This happens in pcre_split, which is the pcre extension. Your PHP doesn't have symbols available, but Xdebug does, that's why you see it so often. If you have installed PHP through Ubuntu's packages, also install the php-dev (or php-5dev, or whatever it's called), to provide a useful backtrace. ------------------------------------------------------------------------ [2017-04-06 14:16:32] lewis at lewnelson dot com In case it's required the xdebug extension version is Xdebug v2.5.1 ------------------------------------------------------------------------ [2017-04-06 14:13:46] lewis at lewnelson dot com #0 0x000055555579a0a2 in _emalloc_56 () #1 0x00005555557c4080 in _array_init () #2 0x000055555568177f in php_pcre_split_impl () #3 0x0000555555681d95 in ?? () #4 0x00007ffff304671d in xdebug_execute_internal (current_execute_data=0x7ffff3815c70, return_value=0x7ffff3815c40) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:2147 #5 0x0000555555863f2c in ?? () #6 0x000055555580b79b in execute_ex () #7 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815b90) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #8 0x000055555586446a in ?? () #9 0x000055555580b79b in execute_ex () #10 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815b30) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #11 0x000055555586446a in ?? () #12 0x000055555580b79b in execute_ex () #13 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815aa0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #14 0x0000555555863ffe in ?? () #15 0x000055555580b79b in execute_ex () #16 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815a10) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #17 0x0000555555863ffe in ?? () #18 0x000055555580b79b in execute_ex () #19 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815950) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #20 0x0000555555863ffe in ?? () #21 0x000055555580b79b in execute_ex () #22 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815890) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #23 0x0000555555863ffe in ?? () #24 0x000055555580b79b in execute_ex () #25 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff38153d0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #26 0x000055555586446a in ?? () #27 0x000055555580b79b in execute_ex () #28 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff38152b0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #29 0x000055555586446a in ?? () #30 0x000055555580b79b in execute_ex () #31 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff38151a0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #32 0x0000555555863ffe in ?? () #33 0x000055555580b79b in execute_ex () #34 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815110) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #35 0x0000555555863ffe in ?? () #36 0x000055555580b79b in execute_ex () #37 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3815010) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #38 0x0000555555863ffe in ?? () #39 0x000055555580b79b in execute_ex () #40 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814f70) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #41 0x0000555555863ffe in ?? () #42 0x000055555580b79b in execute_ex () #43 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814ec0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #44 0x0000555555863ffe in ?? () #45 0x000055555580b79b in execute_ex () #46 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814e30) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #47 0x00005555557b1d6b in zend_call_function () #48 0x00005555556a8c84 in ?? () #49 0x00007ffff304671d in xdebug_execute_internal (current_execute_data=0x7ffff3814dc0, return_value=0x7ffff3814da0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:2147 #50 0x0000555555863f2c in ?? () #51 0x000055555580b79b in execute_ex () #52 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814cd0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #53 0x0000555555863ffe in ?? () #54 0x000055555580b79b in execute_ex () #55 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814bc0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #56 0x000055555586446a in ?? () #57 0x000055555580b79b in execute_ex () #58 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff38149c0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #59 0x000055555586446a in ?? () #60 0x000055555580b79b in execute_ex () #61 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff38147e0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #62 0x000055555586446a in ?? () #63 0x000055555580b79b in execute_ex () #64 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff38146b0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #65 0x000055555586446a in ?? () #66 0x000055555580b79b in execute_ex () #67 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814580) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #68 0x000055555586446a in ?? () #69 0x000055555580b79b in execute_ex () #70 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814450) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #71 0x000055555586446a in ?? () #72 0x000055555580b79b in execute_ex () #73 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814290) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #74 0x0000555555863ffe in ?? () #75 0x000055555580b79b in execute_ex () #76 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814140) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #77 0x0000555555863ffe in ?? () #78 0x000055555580b79b in execute_ex () #79 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff38140b0) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #80 0x000055555586446a in ?? () #81 0x000055555580b79b in execute_ex () #82 0x00007ffff3045c06 in xdebug_execute_ex (execute_data=0x7ffff3814030) at /build/xdebug-Zh5NPT/xdebug-2.5.1/build-7.1/xdebug.c:1995 #83 0x00005555558665e0 in zend_execute () #84 0x00005555557c1ff3 in zend_execute_scripts () #85 0x000055555575e530 in php_execute_script () #86 0x0000555555868867 in ?? () #87 0x000055555563a94c in main () Here is the backtrace. I have tried to reproduce outside of the code base where it has occured, but couldn't replicate it. I've changed the package to Xdebug as it looks like this is where the issue is occurring according to the backtrace. I'll try again to see if I can get a script which will reproduce the error. ------------------------------------------------------------------------ [2017-04-06 11:20:55] requinix@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. A small repro script would be nice too. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=74382 -- Edit this bug report at https://bugs.php.net/bug.php?id=74382&edit=1

« previous php.bugs (#208367) next »