[PHP-BUG] Bug #74330 [NEW]: yii class/object related
[email protected] ("sun-doctor at 7masterov dot ru")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: sun-doctor at 7masterov dot ru
Operating system: Arch Linux
PHP version: 7.1.3
Package: Reflection related
Bug Type: Bug
Bug description:yii class/object related
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();
}
}
--
Edit bug report at https://bugs.php.net/bug.php?id=74330&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74330&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74330&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74330&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74330&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74330&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74330&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74330&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74330&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74330&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74330&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74330&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74330&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74330&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74330&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74330&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74330&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74330&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74330&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74330&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74330&r=mysqlcfg