{"action":"created","issue":{"url":"https://api.github.com/repos/mkoppanen/imagick/issues/184","repository_url":"https://api.github.com/repos/mkoppanen/imagick","labels_url":"https://api.github.com/repos/mkoppanen/imagick/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/mkoppanen/imagick/issues/184/comments","events_url":"https://api.github.com/repos/mkoppanen/imagick/issues/184/events","html_url":"https://github.com/mkoppanen/imagick/issues/184","id":191431956,"number":184,"title":"Segmentation fault in DeleteMagickThreadKey()","user":{"login":"mariancerny","id":1448896,"avatar_url":"https://avatars.githubusercontent.com/u/1448896?v=3","gravatar_id":"","url":"https://api.github.com/users/mariancerny","html_url":"https://github.com/mariancerny","followers_url":"https://api.github.com/users/mariancerny/followers","following_url":"https://api.github.com/users/mariancerny/following{/other_user}","gists_url":"https://api.github.com/users/mariancerny/gists{/gist_id}","starred_url":"https://api.github.com/users/mariancerny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariancerny/subscriptions","organizations_url":"https://api.github.com/users/mariancerny/orgs","repos_url":"https://api.github.com/users/mariancerny/repos","events_url":"https://api.github.com/users/mariancerny/events{/privacy}","received_events_url":"https://api.github.com/users/mariancerny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-24T04:36:25Z","updated_at":"2016-11-30T22:15:52Z","closed_at":null,"body":"We started using ImageMagick on one project and there are some segmentation faults I see from time to time, like this (request from apache):\r\n\r\n```\r\n(gdb) bt\r\n#0  0x000000080ad18555 in DeleteMagickThreadKey () from /usr/local/lib/libMagickCore-6.so.2\r\n#1  0x00000008235797d3 in UnregisterTIFFImage () from /usr/local/lib/ImageMagick-6.9.5/modules-Q16/coders/tiff.so\r\n#2  0x000000080ac961f8 in LoadMimeLists () from /usr/local/lib/libMagickCore-6.so.2\r\n#3  0x000000080ad07a88 in DestroySplayTree () from /usr/local/lib/libMagickCore-6.so.2\r\n#4  0x000000080ac96e11 in DestroyModuleList () from /usr/local/lib/libMagickCore-6.so.2\r\n#5  0x000000080ac96e43 in ModuleComponentTerminus () from /usr/local/lib/libMagickCore-6.so.2\r\n#6  0x000000080ac91a5a in MagickCoreTerminus () from /usr/local/lib/libMagickCore-6.so.2\r\n#7  0x000000080a677ce8 in zm_shutdown_imagick () from /usr/local/lib/php/20131226/imagick.so\r\n#8  0x00000008056a9013 in module_destructor (module=0x802019b00) at /tmp/portbuild/usr/ports/www/mod_php56/work/php-5.6.27/Zend/zend_API.c:2421\r\n#9  0x00000008056b1832 in zend_hash_bucket_delete (ht=0x805b11780, p=0x807014240) at /tmp/portbuild/usr/ports/www/mod_php56/work/php-5.6.27/Zend/zend_hash.c:182\r\n#10 0x00000008056b1af8 in zend_hash_graceful_reverse_destroy (ht=0x805b11780) at /tmp/portbuild/usr/ports/www/mod_php56/work/php-5.6.27/Zend/zend_hash.c:613\r\n#11 0x00000008056a49d2 in zend_shutdown () at /tmp/portbuild/usr/ports/www/mod_php56/work/php-5.6.27/Zend/zend.c:836\r\n#12 0x000000080563ef55 in php_module_shutdown () at /tmp/portbuild/usr/ports/www/mod_php56/work/php-5.6.27/main/main.c:2477\r\n#13 0x000000080563f009 in php_module_shutdown_wrapper (sapi_globals=<value optimized out>) at /tmp/portbuild/usr/ports/www/mod_php56/work/php-5.6.27/main/main.c:2445\r\n#14 0x0000000805747161 in php_apache_child_shutdown (tmp=<value optimized out>) at /tmp/portbuild/usr/ports/www/mod_php56/work/php-5.6.27/sapi/apache2handler/sapi_apache2.c:398\r\n#15 0x000000080161e30d in apr_pool_cleanup_run () from /usr/local/lib/libapr-1.so.0\r\n#16 0x000000080161e979 in apr_pool_destroy () from /usr/local/lib/libapr-1.so.0\r\n#17 0x000000000046f1ce in ap_set_etag ()\r\n#18 0x000000000046f6c8 in ap_set_etag ()\r\n#19 0x000000000046f9f0 in ap_set_etag ()\r\n#20 0x000000000047030f in ap_set_etag ()\r\n#21 0x0000000000437b92 in ap_run_mpm ()\r\n#22 0x00000000004316e3 in main ()\r\n```\r\n\r\nOr this (php from command line):\r\n\r\n```\r\n(gdb) bt\r\n#0  0x0000000806996555 in DeleteMagickThreadKey () from /usr/local/lib/libMagickCore-6.so.2\r\n#1  0x000000081a9ab7d3 in UnregisterTIFFImage () from /usr/local/lib/ImageMagick-6.9.5/modules-Q16/coders/tiff.so\r\n#2  0x00000008069141f8 in LoadMimeLists () from /usr/local/lib/libMagickCore-6.so.2\r\n#3  0x0000000806985a88 in DestroySplayTree () from /usr/local/lib/libMagickCore-6.so.2\r\n#4  0x0000000806914e11 in DestroyModuleList () from /usr/local/lib/libMagickCore-6.so.2\r\n#5  0x0000000806914e43 in ModuleComponentTerminus () from /usr/local/lib/libMagickCore-6.so.2\r\n#6  0x000000080690fa5a in MagickCoreTerminus () from /usr/local/lib/libMagickCore-6.so.2\r\n#7  0x00000008062f5ce8 in zm_shutdown_imagick () from /usr/local/lib/php/20131226/imagick.so\r\n#8  0x000000000057fbb5 in module_destructor (module=0x802588200) at /tmp/portbuild/usr/ports/lang/php56/work/php-5.6.27/Zend/zend_API.c:2421\r\n#9  0x000000000058779f in zend_hash_bucket_delete (ht=0x9f5e00, p=0x80264b8d0) at /tmp/portbuild/usr/ports/lang/php56/work/php-5.6.27/Zend/zend_hash.c:182\r\n#10 0x0000000000587a68 in zend_hash_graceful_reverse_destroy (ht=0x9f5e00) at /tmp/portbuild/usr/ports/lang/php56/work/php-5.6.27/Zend/zend_hash.c:613\r\n#11 0x000000000057ae65 in zend_shutdown () at /tmp/portbuild/usr/ports/lang/php56/work/php-5.6.27/Zend/zend.c:836\r\n#12 0x000000000051834a in php_module_shutdown () at /tmp/portbuild/usr/ports/lang/php56/work/php-5.6.27/main/main.c:2477\r\n#13 0x000000000061b26c in main (argc=3, argv=0x7fffffffecd8) at /tmp/portbuild/usr/ports/lang/php56/work/php-5.6.27/sapi/cli/php_cli.c:1397\r\n```\r\n\r\nWe are using the following environment:\r\n\r\n```\r\nFreeBSD 9.3-RELEASE-p42\r\namd64\r\nphp56-5.6.27\r\napache24-2.4.23_1\r\nImageMagick-nox11-6.9.5.10_1,1\r\npecl-imagick-3.4.1_1\r\ntiff-4.0.6_2\r\n```"},"comment":{"url":"https://api.github.com/repos/mkoppanen/imagick/issues/comments/264013759","html_url":"https://github.com/mkoppanen/imagick/issues/184#issuecomment-264013759","issue_url":"https://api.github.com/repos/mkoppanen/imagick/issues/184","id":264013759,"user":{"login":"Danack","id":1505719,"avatar_url":"https://avatars.githubusercontent.com/u/1505719?v=3","gravatar_id":"","url":"https://api.github.com/users/Danack","html_url":"https://github.com/Danack","followers_url":"https://api.github.com/users/Danack/followers","following_url":"https://api.github.com/users/Danack/following{/other_user}","gists_url":"https://api.github.com/users/Danack/gists{/gist_id}","starred_url":"https://api.github.com/users/Danack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danack/subscriptions","organizations_url":"https://api.github.com/users/Danack/orgs","repos_url":"https://api.github.com/users/Danack/repos","events_url":"https://api.github.com/users/Danack/events{/privacy}","received_events_url":"https://api.github.com/users/Danack/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T22:15:52Z","updated_at":"2016-11-30T22:15:52Z","body":"Hmm. Seeing that from the command line is unusual.\r\n\r\nAre you able to reproduce this reliably with a particular image and set of operations on that image, or is this a random thing?\r\n\r\n\r\n"}}
{"actor":{"display_login":"Danack"}}