{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/19176","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/19176/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/19176/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/19176/events","html_url":"https://github.com/laravel/framework/issues/19176","id":228409529,"number":19176,"title":"Segmentation fault on db:seed","user":{"login":"mistre83","id":4687004,"avatar_url":"https://avatars0.githubusercontent.com/u/4687004?v=3","gravatar_id":"","url":"https://api.github.com/users/mistre83","html_url":"https://github.com/mistre83","followers_url":"https://api.github.com/users/mistre83/followers","following_url":"https://api.github.com/users/mistre83/following{/other_user}","gists_url":"https://api.github.com/users/mistre83/gists{/gist_id}","starred_url":"https://api.github.com/users/mistre83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistre83/subscriptions","organizations_url":"https://api.github.com/users/mistre83/orgs","repos_url":"https://api.github.com/users/mistre83/repos","events_url":"https://api.github.com/users/mistre83/events{/privacy}","received_events_url":"https://api.github.com/users/mistre83/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-12T21:12:20Z","updated_at":"2017-05-13T18:33:52Z","closed_at":"2017-05-13T18:33:52Z","body":"- Laravel Version: 5.3.31\r\n- PHP Version: 7.1.3-3+deb.sury.org~xenial+1 (cli) (built: Mar 25 2017 14:00:03) ( NTS )\r\n\r\nHi,\r\nsince saturday i was running my seeder many times. This week i did run` composer update` (i dont remember what library has been updated). Now, my seeder have a `Segmentation fault`.\r\n\r\nMy seeder read a csv and then compute some operation and perform some insert.\r\nI did tried to exclude all insert statements (so now, seeder perform only selects - using MyModel::find and so on).\r\n\r\nBecause the seeder take some time, i have a progress bar on it (i tried to disable it, just to see if this was the problem, but isnt...). This is the result:\r\n\r\n**- Seeder with insert and select: Segmentation fault at 23%\r\n- Seeder with just select: Segmentation fault at 50%**\r\n\r\nSo, i think the problem is something about PDO or something similar, but i really cant understand what can be wrong. The seeder dont have recursion, i just read a CSV line and perform a select.\r\n\r\n**I tried to run seeder across different machines, but the result is always the same**:\r\n\r\nMachine 1:\r\nUbuntu, PHP 7.1, Homestead, MySQL\r\n\r\nMachine 2:\r\nMac OSX, PHP 7.1, Valet, MariaDB\r\n\r\nWith many diffucult, i have done a core dump (but.. i think is very incomplete... i dont know how to generate a readable core dump). This is the stack:\r\n\r\n```\r\nGNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1\r\nCopyright (C) 2016 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-linux-gnu\".\r\nType \"show configuration\" for configuration details.\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\nFind the GDB manual and other documentation resources online at:\r\n<http://www.gnu.org/software/gdb/documentation/>.\r\nFor help, type \"help\".\r\nType \"apropos word\" to search for commands related to \"word\"...\r\nReading symbols from php...(no debugging symbols found)...done.\r\n\r\nwarning: core file may not match specified executable file.\r\n[New LWP 2913]\r\n\r\nwarning: Unexpected size of section `.reg-xstate/2913' in core file.\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\nCore was generated by `php artisan db:seed'.\r\nProgram terminated with signal SIGSEGV, Segmentation fault.\r\n\r\nwarning: Unexpected size of section `.reg-xstate/2913' in core file.\r\n#0  0x000055f02902e6c4 in _emalloc ()\r\n(gdb) \r\n\r\n(gdb) bt\r\n#0  0x000055f02902e6c4 in _emalloc ()\r\n#1  0x00007f6a709a3fb1 in ?? () from /usr/lib/php/20160303/mysqlnd.so\r\n#2  0x00007f6a709ab531 in ?? () from /usr/lib/php/20160303/mysqlnd.so\r\n#3  0x00007f6a66259cb8 in ?? () from /usr/lib/php/20160303/pdo_mysql.so\r\n#4  0x00007f6a707751b0 in ?? () from /usr/lib/php/20160303/pdo.so\r\n#5  0x000055f0290f6f2c in ?? ()\r\n#6  0x000055f02909e79b in execute_ex ()\r\n#7  0x000055f0290f746a in ?? ()\r\n#8  0x000055f02909e79b in execute_ex ()\r\n#9  0x000055f0290f6ffe in ?? ()\r\n#10 0x000055f02909e79b in execute_ex ()\r\n#11 0x000055f0290f6ffe in ?? ()\r\n#12 0x000055f02909e79b in execute_ex ()\r\n#13 0x000055f0290f6ffe in ?? ()\r\n#14 0x000055f02909e79b in execute_ex ()\r\n#15 0x000055f0290f6ffe in ?? ()\r\n#16 0x000055f02909e79b in execute_ex ()\r\n#17 0x000055f0290f6ffe in ?? ()\r\n#18 0x000055f02909e79b in execute_ex ()\r\n#19 0x000055f0290f6ffe in ?? ()\r\n#20 0x000055f02909e79b in execute_ex ()\r\n#21 0x000055f0290f6ffe in ?? ()\r\n#22 0x000055f02909e79b in execute_ex ()\r\n#23 0x000055f0290f6ffe in ?? ()\r\n#24 0x000055f02909e79b in execute_ex ()\r\n#25 0x000055f0290f6ffe in ?? ()\r\n#26 0x000055f02909e79b in execute_ex ()\r\n#27 0x000055f0290f6ffe in ?? ()\r\n#28 0x000055f02909e79b in execute_ex ()\r\n#29 0x000055f0290f746a in ?? ()\r\n#30 0x000055f02909e79b in execute_ex ()\r\n#31 0x000055f0290f746a in ?? ()\r\n#32 0x000055f02909e79b in execute_ex ()\r\n#33 0x000055f0290f746a in ?? ()\r\n#34 0x000055f02909e79b in execute_ex ()\r\n#35 0x000055f0290f746a in ?? ()\r\n#36 0x000055f02909e79b in execute_ex ()\r\n#37 0x000055f0290f6ffe in ?? ()\r\n#38 0x000055f02909e79b in execute_ex ()\r\n#39 0x000055f0290f746a in ?? ()\r\n#40 0x000055f02909e79b in execute_ex ()\r\n#41 0x000055f029044d6b in zend_call_function ()\r\n#42 0x000055f028f8be8b in zif_call_user_func_array ()\r\n#43 0x000055f0290f6f2c in ?? ()\r\n#44 0x000055f02909e79b in execute_ex ()\r\n#45 0x000055f0290f6ffe in ?? ()\r\n#46 0x000055f02909e79b in execute_ex ()\r\n#47 0x000055f0290f6ffe in ?? ()\r\n#48 0x000055f02909e79b in execute_ex ()\r\n#49 0x000055f0290f6ffe in ?? ()\r\n#50 0x000055f02909e79b in execute_ex ()\r\n#51 0x000055f0290f6ffe in ?? ()\r\n#52 0x000055f02909e79b in execute_ex ()\r\n#53 0x000055f0290f6ffe in ?? ()\r\n#54 0x000055f02909e79b in execute_ex ()\r\n#55 0x000055f0290f6ffe in ?? ()\r\n#56 0x000055f02909e79b in execute_ex ()\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/301266347","html_url":"https://github.com/laravel/framework/issues/19176#issuecomment-301266347","issue_url":"https://api.github.com/repos/laravel/framework/issues/19176","id":301266347,"user":{"login":"themsaid","id":4332182,"avatar_url":"https://avatars0.githubusercontent.com/u/4332182?v=3","gravatar_id":"","url":"https://api.github.com/users/themsaid","html_url":"https://github.com/themsaid","followers_url":"https://api.github.com/users/themsaid/followers","following_url":"https://api.github.com/users/themsaid/following{/other_user}","gists_url":"https://api.github.com/users/themsaid/gists{/gist_id}","starred_url":"https://api.github.com/users/themsaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themsaid/subscriptions","organizations_url":"https://api.github.com/users/themsaid/orgs","repos_url":"https://api.github.com/users/themsaid/repos","events_url":"https://api.github.com/users/themsaid/events{/privacy}","received_events_url":"https://api.github.com/users/themsaid/received_events","type":"User","site_admin":false},"created_at":"2017-05-13T18:33:52Z","updated_at":"2017-05-13T18:33:52Z","body":"Please ask on the forums "}}
{"actor":{"display_login":"themsaid"}}