|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-29 08:58 UTC] krakjoe@php.net
-Status: Open
+Status: Feedback
-Package: Reflection related
+Package: *General Issues
[2017-03-29 08:58 UTC] krakjoe@php.net
[2017-04-09 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 22:00:01 2025 UTC |
Description: ------------ Sorry I can't provide full test application cause it based on Yii 1.17/sqlite But the php-cli error arises in next situation: I have a simple yii1 migration script, that takes CSV-file and insert it in sqlite database via simpe model many times like this. On the random loop with PHP 7.1.3 I always have SEGFAULT. php.ini has no special limits and almost default. (memory_limit=-1) With php 7.0 and php 5.6 everything is OK. coredumpctl info ---------------- PID: 3928 (php) UID: 1000 (igor) GID: 1000 (igor) Signal: 11 (SEGV) Timestamp: Wed 2017-03-29 11:38:14 MSK (2min 15s ago) Command Line: php ./yiic migrate up 1 Executable: /usr/bin/php Control Group: /user.slice/user-1000.slice/session-c1.scope Unit: session-c1.scope Slice: user-1000.slice Session: c1 Owner UID: 1000 (igor) Boot ID: 13db0eaa0e644683ad29c7dab2f3c373 Machine ID: e7a1cd2067794157a662f3ce1b10109c Hostname: machine Storage: /var/lib/systemd/coredump/core.php.1000.13db0eaa0e644683ad29c7dab2f3c373.3928.1490776694000000000000.lz4 Message: Process 3928 (php) of user 1000 dumped core. Stack trace of thread 3928: #0 0x0000000000669962 _emalloc_56 (php) #1 0x0000000000719259 n/a (php) #2 0x00000000006db1ab execute_ex (php) #3 0x0000000000681771 zend_call_function (php) #4 0x00000000005498b9 n/a (php) #5 0x00000000007331b4 n/a (php) #6 0x00000000006db1ab execute_ex (php) #7 0x0000000000735658 zend_execute (php) #8 0x00000000006916b3 zend_execute_scripts (php) #9 0x000000000062e500 php_execute_script (php) #10 0x00000000007378cc n/a (php) #11 0x0000000000433f82 n/a (php) #12 0x00007f719d9da511 __libc_start_main (libc.so.6) #13 0x00000000004340ba _start (php) Test script: --------------- for($i=1;$i<5000000;$i++) { $m = SomeModel::model()->findByAttributes(array('attr'=>'value')); if (!$m) { $model = new SomeModel; $model->attr1 = '...'; $model->attr2 = '...'; $model->attr3 = '...'; $model->save(); } }