php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76023 php-imagick (3.4.3~rc2-2+b2) SIGABRT
Submitted: 2018-02-27 22:59 UTC Modified: 2018-11-28 03:18 UTC
From: djcanadianjeff at gmail dot com Assigned: danack (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 7.2.2 OS: Kali Linux / Debian
Private report: No CVE-ID: None
 [2018-02-27 22:59 UTC] djcanadianjeff at gmail dot com
Description:
------------
crashes with no output

gdb backtrace included

Test script:
---------------
<?php phpinfo(); ?>

Actual result:
--------------
root@kali:/var/www/html# php -v
PHP 7.2.2-1 (cli) (built: Feb  1 2018 15:19:04) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.2-1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

root@kali:/var/www/html# gdb php
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from php...(no debugging symbols found)...done.
(gdb) run index.php
Starting program: /usr/bin/php index.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
double free or corruption (out)

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff5f4a6a0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff5f4bcf7 in __GI_abort () at abort.c:90
#2  0x00007ffff5f8cf87 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff6092c38 "%s\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff5f9327a in malloc_printerr (str=str@entry=0x7ffff6094888 "double free or corruption (out)") at malloc.c:5354
#4  0x00007ffff5f94fd0 in _int_free (av=0x7ffff62c6c20 <main_arena>, p=0x555555e4c0a0, have_lock=<optimized out>) at malloc.c:4278
#5  0x00007fffe9990f2c in  () at /usr/lib/libGraphicsMagick-Q16.so.3
#6  0x00007fffe9991ddd in UnregisterMagickInfo () at /usr/lib/libGraphicsMagick-Q16.so.3
#7  0x00007fffe9991e5a in RegisterMagickInfo () at /usr/lib/libGraphicsMagick-Q16.so.3
#8  0x00007fffcb2daf8d in RegisterPDFImage () at /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.9/modules-Q16/coders/pdf.so
#9  0x00007fffe7a76161 in  () at /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.5
#10 0x00007fffe7a76de1 in OpenModules () at /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.5
#11 0x00007fffe7a715ff in GetMagickInfo () at /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.5
#12 0x00007fffe7a71d8f in GetMagickList () at /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.5
#13 0x00007fffe7eaf940 in MagickQueryFormats () at /usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so.5
#14 0x00007fffe816dadd in zm_info_imagick () at /usr/lib/php/20170718/imagick.so
#15 0x000055555573f6f3 in  ()
#16 0x0000555555807f3a in zend_hash_apply ()
#17 0x000055555574016a in php_print_info ()
#18 0x0000555555740799 in  ()
#19 0x00007ffff2b59ab5 in xdebug_execute_internal (current_execute_data=0x7ffff301c090, return_value=0x7fffffffaa10)
    at ./build-7.2/xdebug.c:2021
#20 0x0000555555839d34 in  ()
---Type <return> to continue, or q <return> to quit---
#21 0x000055555589e7fa in execute_ex ()
#22 0x00007ffff2b58cbe in xdebug_execute_ex (execute_data=0x7ffff301c030) at ./build-7.2/xdebug.c:1912
#23 0x00005555558a6c87 in zend_execute ()
#24 0x00005555557f5a82 in zend_execute_scripts ()
#25 0x0000555555791980 in php_execute_script ()
#26 0x00005555558a909c in  ()
#27 0x000055555564048b in  ()
#28 0x00007ffff5f36f2a in __libc_start_main (main=
    0x555555640070, argc=2, argv=0x7fffffffe528, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe518) at ../csu/libc-start.c:310
#29 0x000055555564062a in _start ()
(gdb) quit
A debugging session is active.

	Inferior 1 [process 24474] will be killed.

Quit anyway? (y or n) y
root@kali:/var/www/html#

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-18 10:41 UTC] danack@php.net
It appears that you have both GraphicsMagick  and Imagick loaded.

Due to the overlap in the libraries, caused by them being a fork of each other, this isn't supported.

There will be a check for this in the next release if Imagick.
 [2018-11-28 03:18 UTC] danack@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: danack
 [2018-11-28 03:18 UTC] danack@php.net
The check to prevent the incompatible extensions being loaded at once was done in:
https://github.com/mkoppanen/imagick/commit/666a09890fe15f79f26946be8478f0a45cb3dc49
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC