{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/dd-trace-php/issues/507","repository_url":"https://api.github.com/repos/DataDog/dd-trace-php","labels_url":"https://api.github.com/repos/DataDog/dd-trace-php/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-php/issues/507/comments","events_url":"https://api.github.com/repos/DataDog/dd-trace-php/issues/507/events","html_url":"https://github.com/DataDog/dd-trace-php/issues/507","id":471848282,"node_id":"MDU6SXNzdWU0NzE4NDgyODI=","number":507,"title":"PHP CLI segmentation faults with datadog-php-tracer 0.29.0","user":{"login":"ctrlrsf","id":6004738,"node_id":"MDQ6VXNlcjYwMDQ3Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/6004738?v=4","gravatar_id":"","url":"https://api.github.com/users/ctrlrsf","html_url":"https://github.com/ctrlrsf","followers_url":"https://api.github.com/users/ctrlrsf/followers","following_url":"https://api.github.com/users/ctrlrsf/following{/other_user}","gists_url":"https://api.github.com/users/ctrlrsf/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrlrsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrlrsf/subscriptions","organizations_url":"https://api.github.com/users/ctrlrsf/orgs","repos_url":"https://api.github.com/users/ctrlrsf/repos","events_url":"https://api.github.com/users/ctrlrsf/events{/privacy}","received_events_url":"https://api.github.com/users/ctrlrsf/received_events","type":"User","site_admin":false},"labels":[{"id":824958542,"node_id":"MDU6TGFiZWw4MjQ5NTg1NDI=","url":"https://api.github.com/repos/DataDog/dd-trace-php/labels/%F0%9F%90%9B%20bug","name":"🐛 bug","color":"d73a4a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/DataDog/dd-trace-php/milestones/54","html_url":"https://github.com/DataDog/dd-trace-php/milestone/54","labels_url":"https://api.github.com/repos/DataDog/dd-trace-php/milestones/54/labels","id":4459176,"node_id":"MDk6TWlsZXN0b25lNDQ1OTE3Ng==","number":54,"title":"0.30.0","description":"","creator":{"login":"SammyK","id":578780,"node_id":"MDQ6VXNlcjU3ODc4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/578780?v=4","gravatar_id":"","url":"https://api.github.com/users/SammyK","html_url":"https://github.com/SammyK","followers_url":"https://api.github.com/users/SammyK/followers","following_url":"https://api.github.com/users/SammyK/following{/other_user}","gists_url":"https://api.github.com/users/SammyK/gists{/gist_id}","starred_url":"https://api.github.com/users/SammyK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SammyK/subscriptions","organizations_url":"https://api.github.com/users/SammyK/orgs","repos_url":"https://api.github.com/users/SammyK/repos","events_url":"https://api.github.com/users/SammyK/events{/privacy}","received_events_url":"https://api.github.com/users/SammyK/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":15,"state":"closed","created_at":"2019-07-02T16:20:59Z","updated_at":"2019-08-09T13:16:26Z","due_on":null,"closed_at":"2019-08-09T12:10:10Z"},"comments":3,"created_at":"2019-07-23T18:13:39Z","updated_at":"2019-08-12T08:38:48Z","closed_at":null,"author_association":"NONE","body":"We recently noticed intermittent PHP seg faults for CLI scripts. Although we've seen it with all PHP versions we've tested (7.0 from Ubuntu 16.04, 7.2, and 7.3), below is simplest way we've found to reproduce it.\r\n\r\n```\r\n# Seg faults while just starting php and calling sleep(.001)\r\n$ while true; do php -r 'sleep(.001);'; /bin/echo -ne '.';  done\r\n..................................Segmentation fault (core dumped)\r\n................................................................................................Segmentation fault (core dumped)\r\n.............................................................................................................................................................Segmentation fault (core dumped)\r\n.....................................................................................................................................................................................................Segmentation fault (core dumped)\r\n.....Segmentation fault (core dumped)\r\n.......Segmentation fault (core dumped)\r\n..................Segmentation fault (core dumped)\r\n................Segmentation fault (core dumped)\r\n.....Segmentation fault (core dumped)\r\n...........................Segmentation fault (core dumped)\r\n............Segmentation fault (core dumped)\r\n............^CSegmentation fault (core dumped)\r\n.............^C\r\n\r\n# Uninstall datadog-php-tracer\r\n$ dpkg --purge datadog-php-tracer\r\n(Reading database ... 59348 files and directories currently installed.)\r\nRemoving datadog-php-tracer (0.29.0) ...\r\nPurging configuration files for datadog-php-tracer (0.29.0) ...\r\ndpkg: warning: while removing datadog-php-tracer, directory '/opt/datadog-php/etc' not empty so not removed\r\n$ find /etc/php -name '*ddtrace*' -delete -print\r\n/etc/php/7.0/cli/conf.d/99-ddtrace-custom.ini\r\n/etc/php/7.0/cli/conf.d/98-ddtrace.ini\r\n\r\n# No more seg faults\r\n$ while true; do php -r 'sleep(.001);'; /bin/echo -ne '.';  done\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n..........................................................................................................................\r\n......................^C\r\n```\r\n\r\nVersions:\r\n```\r\n$ php -v\r\nPHP 7.0.33-0ubuntu0.16.04.5 (cli) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies\r\n    with Zend OPcache v7.0.33-0ubuntu0.16.04.5, Copyright (c) 1999-2017, by Zend Technologies\r\n\r\n$ uname -a\r\nLinux xyz 4.4.0-154-generic #181-Ubuntu SMP Tue Jun 25 05:29:03 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 16.04.6 LTS\r\nRelease:\t16.04\r\nCodename:\txenial\r\n\r\n$ dpkg -l | grep datadog-php\r\nii  datadog-php-tracer               0.29.0                                                   amd64        no description given\r\n```\r\n\r\nHere's a history of the seg faults while testing:\r\n```\r\n[ 7125.066568] php[12457]: segfault at 7fe17be130fd ip 00007fe17be130fd sp 00007fe176f83f18 error 14 in libbsd.so.0.8.2[7fe17cc57000+13000]\r\n[ 7160.110386] php[13862]: segfault at 7f2e6b6130fd ip 00007f2e6b6130fd sp 00007f2e66783f18 error 14 in librt-2.23.so[7f2e6e46e000+7000]\r\n[ 7190.349904] php[15916]: segfault at 7fe6ce4130fd ip 00007fe6ce4130fd sp 00007fe6c9583f18 error 14 in tokenizer.so[7fe6ce62c000+4000]\r\n[ 7190.453141] php[15921]: segfault at 7f72aec130fd ip 00007f72aec130fd sp 00007f72a9d83f18 error 14 in tokenizer.so[7f72aee2c000+4000]\r\n[ 7191.644470] php[16060]: segfault at 7f05ec6130fd ip 00007f05ec6130fd sp 00007f05e7783f18 error 14 in librt-2.23.so[7f05ef46e000+7000]\r\n[ 7191.868619] php[16069]: segfault at 7efd896130fd ip 00007efd896130fd sp 00007efd84783f18 error 14 in librt-2.23.so[7efd8c46e000+7000]\r\n[ 7192.966512] php[16159]: segfault at 7f5a24a130fd ip 00007f5a24a130fd sp 00007f5a1fb83f18 error 14 in librt-2.23.so[7f5a2786e000+7000]\r\n[ 7193.344117] php[16179]: segfault at 7f84ac6130fd ip 00007f84ac6130fd sp 00007f84a7783f18 error 14 in ftp.so[7f84ae73d000+c000]\r\n[ 7194.357279] php[16207]: segfault at 7f1c77c130fd ip 00007f1c77c130fd sp 00007f1c72d83f18 error 14 in librt-2.23.so[7f1c7aa6e000+7000]\r\n[ 7195.106510] php[16283]: segfault at 7fc6f1a130fd ip 00007fc6f1a130fd sp 00007fc6ecb83f18 error 14 in librt-2.23.so[7fc6f486e000+7000]\r\n[ 7195.351185] php[16292]: segfault at 7f27b6e130fd ip 00007f27b6e130fd sp 00007f27b1f83f18 error 14 in librt-2.23.so[7f27b9c6e000+7000]\r\n[ 7196.207782] php[16300]: segfault at 7f5bb46130fd ip 00007f5bb46130fd sp 00007f5baf783f18 error 14 in tokenizer.so[7f5bb482c000+4000]\r\n[ 7196.442759] php[16309]: segfault at 7f523cc130fd ip 00007f523cc130fd sp 00007f5237d83f18 error 14 in libbsd.so.0.8.2[7f523da57000+13000]\r\n[ 7197.448663] php[16336]: segfault at 7f9cf76130fd ip 00007f9cf76130fd sp 00007f9cf2783f18 error 14 in tokenizer.so[7f9cf782c000+4000]\r\n[ 7198.119549] php[16363]: segfault at 7f54bb0130fd ip 00007f54bb0130fd sp 00007f54b6183f18 error 14 in tokenizer.so[7f54bb22c000+4000]\r\n[ 7198.508779] php[16371]: segfault at 7f56362130fd ip 00007f56362130fd sp 00007f5631383f18 error 14 in tokenizer.so[7f563642c000+4000]\r\n[ 7199.346005] php[16379]: segfault at 7fdfc3a130fd ip 00007fdfc3a130fd sp 00007fdfbeb83f18 error 14 in libbsd.so.0.8.2[7fdfc4857000+13000]\r\n[ 7200.741057] php[16431]: segfault at 7fb6d16130fd ip 00007fb6d16130fd sp 00007fb6cc783f18 error 14 in tokenizer.so[7fb6d182c000+4000]\r\n[ 7203.704685] php[16736]: segfault at 7f5edd4130fd ip 00007f5edd4130fd sp 00007f5ed8583f18 error 14 in tokenizer.so[7f5edd62c000+4000]\r\n[ 7211.745471] php[17829]: segfault at 7f7215a130fd ip 00007f7215a130fd sp 00007f7210b83f18 error 14 in librt-2.23.so[7f721886e000+7000]\r\n[ 7221.579679] php[19206]: segfault at 7fd674e130fd ip 00007fd674e130fd sp 00007fd66ff83f18 error 14 in tokenizer.so[7fd67502c000+4000]\r\n[ 7222.094001] php[19268]: segfault at 7f11a86130fd ip 00007f11a86130fd sp 00007f11a3783f18 error 14 in librt-2.23.so[7f11ab46e000+7000]\r\n[ 7224.004829] php[19618]: segfault at 7f762f4130fd ip 00007f762f4130fd sp 00007f762a583f18 error 14 in librt-2.23.so[7f763226e000+7000]\r\n[ 7224.673932] php[19710]: segfault at 7ff6d4e130fd ip 00007ff6d4e130fd sp 00007ff6cff83f18 error 14 in librt-2.23.so[7ff6d7c6e000+7000]\r\n[ 7225.062878] php[19812]: segfault at 7fa9044130fd ip 00007fa9044130fd sp 00007fa8ff583f18 error 14 in librt-2.23.so[7fa90726e000+7000]\r\n[ 7225.783884] php[19908]: segfault at 7f19ea6130fd ip 00007f19ea6130fd sp 00007f19e5783f18 error 14 in librt-2.23.so[7f19ed46e000+7000]\r\n[ 7226.166872] php[19948]: segfault at 7f7fca2130fd ip 00007f7fca2130fd sp 00007f7fc5383f18 error 14 in librt-2.23.so[7f7fcd06e000+7000]\r\n[ 7226.473335] php[19977]: segfault at 7fd7e86130fd ip 00007fd7e86130fd sp 00007fd7e3783f18 error 14 in librt-2.23.so[7fd7eb46e000+7000]\r\n[ 7228.906859] php[20344]: segfault at 7fa2fb0130fd ip 00007fa2fb0130fd sp 00007fa2f6183f18 error 14 in tokenizer.so[7fa2fb22c000+4000]\r\n[ 7230.304162] php[20541]: segfault at 7f0e4c8130fd ip 00007f0e4c8130fd sp 00007f0e47983f18 error 14 in librt-2.23.so[7f0e4f66e000+7000]\r\n[ 7231.026733] php[20637]: segfault at 7fa82aa130fd ip 00007fa82aa130fd sp 00007fa825b83f18 error 14 in librt-2.23.so[7fa82d86e000+7000]\r\n[ 7231.394058] php[20674]: segfault at 7fda584130fd ip 00007fda584130fd sp 00007fda53583f18 error 14 in librt-2.23.so[7fda5b26e000+7000]\r\n[ 7231.927138] php[20737]: segfault at 7f604ce130fd ip 00007f604ce130fd sp 00007f6047f83f18 error 14 in librt-2.23.so[7f604fc6e000+7000]\r\n[ 7232.364040] php[20785]: segfault at 7f3fa98130fd ip 00007f3fa98130fd sp 00007f3fa4983f18 error 14 in librt-2.23.so[7f3fac66e000+7000]\r\n[ 7232.996243] php[20866]: segfault at 7efd908130fd ip 00007efd908130fd sp 00007efd8b983f18 error 14 in librt-2.23.so[7efd9366e000+7000]\r\n[ 7233.068116] php[20874]: segfault at 7fe45da130fd ip 00007fe45da130fd sp 00007fe458b83f18 error 14 in librt-2.23.so[7fe46086e000+7000]\r\n[ 7234.374241] php[21002]: segfault at 7f47ff2130fd ip 00007f47ff2130fd sp 00007f47fa383f18 error 14 in librt-2.23.so[7f480206e000+7000]\r\n```"},"comment":{"url":"https://api.github.com/repos/DataDog/dd-trace-php/issues/comments/520341220","html_url":"https://github.com/DataDog/dd-trace-php/issues/507#issuecomment-520341220","issue_url":"https://api.github.com/repos/DataDog/dd-trace-php/issues/507","id":520341220,"node_id":"MDEyOklzc3VlQ29tbWVudDUyMDM0MTIyMA==","user":{"login":"labbati","id":2952352,"node_id":"MDQ6VXNlcjI5NTIzNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/2952352?v=4","gravatar_id":"","url":"https://api.github.com/users/labbati","html_url":"https://github.com/labbati","followers_url":"https://api.github.com/users/labbati/followers","following_url":"https://api.github.com/users/labbati/following{/other_user}","gists_url":"https://api.github.com/users/labbati/gists{/gist_id}","starred_url":"https://api.github.com/users/labbati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labbati/subscriptions","organizations_url":"https://api.github.com/users/labbati/orgs","repos_url":"https://api.github.com/users/labbati/repos","events_url":"https://api.github.com/users/labbati/events{/privacy}","received_events_url":"https://api.github.com/users/labbati/received_events","type":"User","site_admin":false},"created_at":"2019-08-12T08:38:48Z","updated_at":"2019-08-12T08:38:48Z","author_association":"MEMBER","body":"Hi @ctrlrsf and thanks for your patience. Did you have a change to test the [0.30.0](https://github.com/DataDog/dd-trace-php/releases/tag/0.30.0) release to confirm that resolved your issue?"}}
{"actor":{"display_login":"labbati"}}