php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64107 Segmentation fault in Imagick::__toString()
Submitted: 2013-01-30 20:49 UTC Modified: 2013-10-15 11:54 UTC
From: lstrojny@php.net Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: 5.4.11 OS: Debian Squeeze
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lstrojny@php.net
New email:
PHP Version: OS:

 

 [2013-01-30 20:49 UTC] lstrojny@php.net
Description:
------------
Using imagick 3.1RC2 with PHP 5.4.11 and apc 3.1.13 I get the following segfault:

(gdb) bt full
#0  0x00007f282ef171b5 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007f282ef19fc0 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00007f282ef4d5bb in ?? () from /lib/libc.so.6
No symbol table info available.
#3  0x00007f282ef56e16 in ?? () from /lib/libc.so.6
No symbol table info available.
#4  0x00007f282ef5c8a3 in ?? () from /lib/libc.so.6
No symbol table info available.
#5  0x00007f282ef5cd40 in realloc () from /lib/libc.so.6
No symbol table info available.
#6  0x00007f282a6e0728 in ResizeMagickMemory (memory=0x2d00110, size=25873) at 
magick/memory.c:873
        block = <value optimized out>
#7  0x00007f282a62005b in SetBlobExtent (image=0x23fbb00, extent=131124) at 
magick/blob.c:3630
        __PRETTY_FUNCTION__ = "SetBlobExtent"
        __func__ = "SetBlobExtent"
#8  0x00007f282a625107 in WriteBlobStream (image=0x23fbb00, string=0x7f280260fc38 
"<?xml version=\"1.0\" encoding=\"US-ASCII\"?>\n") at magick/blob.c:970
No locals.
#9  WriteBlobString (image=0x23fbb00, string=0x7f280260fc38 "<?xml version=\"1.0\" 
encoding=\"US-ASCII\"?>\n") at magick/blob.c:4374
        __PRETTY_FUNCTION__ = "WriteBlobString"
#10 0x00007f280260f310 in WriteHTMLImage (image_info=0x2d00200, image=0x23fbb00) 
at coders/html.c:295
        value = <value optimized out>
        basename = 
"\000\234I+\377\177\000\000\000\341\276\002\000\000\000\000\000\312y*
(\177\000\000\000v\267\002\000\000\000\000\020\344\276\002\000\000\000\000\340\066
\267\002\000\000\000\000\020Q\300\002\000\000\000\000\020\000\300\002\000\000\000\
000\005\000\000\000\000\000\000\000:\333r*
(\177\000\000\200\001\000\000\000\000\000\000\000z\267\002\000\000\000\000\000\002
\321\002\000\000\000\000\000\273?
\002\000\000\000\000\004\000\000\000\000\000\000\000\"\rb*
(\177\000\000\020Q\300\002\000\000\000\000\020\302E\002\000\000\000\000\004\000\00
0\000\000\000\000\000\235\333r*
(\177\000\000@.$/(\177\000\000\000\336\276\002\000\000\000\000@.$/(\177\000\000\00
0v\267\002\000\000\000\000\020Q\300\002\000\000\000\000\340v\267\002\000\000\000\0
00\020\302E\002\000\000\000\000\030|\267\002\000\000\000\000\003\000\000\000\000\0
00\000\000"...
        buffer = 
"\001\000\000\000\000\000\000\000\220\375I+\377\177\000\000\000\233=\002\000\000\0
00\000\032\311m*
(\177\000\000(\000\000\000\060\000\000\000P\215I+\377\177\000\000\220\214I+\377\17
7\000\000\350\004\000\000\000\000\000\000`\236I+\377\177\000\000xw?
\002\000\000\000\000hg?\002\000\000\000\000\365Rr*
(\177\000\000\000\062\300\002\000\000\000\000H3\321\002\000\000\000\000(\000\000\0
00\060\000\000\000\365Rr*(\177\000\000\340\214I+\377\177\000\000.Pr*
(\177\000\000\271\243y*
(\177\000\000\000\000\000\000\000\000\000\000\230.$/(\177\000\000\214\222I+\377\17
7\000\000ȒI+\377\177\000\000\211#y*
(\177\000\000\000\000\000\000\030\000\000\000\000\233\027\002\000\000\000\000\000\
233\027\002\000\000\000\000;Pl*
(\177\000\000\260\346\000\062(\177\000\000\000\235"...
        filename = "\000\311y*
(\177\000\000\330\001\000\000\000\000\000\000htm\000WARDED_FOR108.161.190.101", 
'\000' <repeats 107 times>, "\001\000\000\000\000\000\000\000\301\240w*
(\177\000\000;\276m*(\177", '\000' <repeats 82 times>, "e*y*(\177\000\000\234", 
'\000' <repeats 79 times>, "\001\000\000\000\000\000\000\000\301\240w*
(\177\000\000;\276m*(\177", '\000' <repeats 82 times>"\320, Cy*
(\177\000\000o\001", '\000' <repeats 46 times>, "O\177I+\377\177\000\000H\a?
\002\000\000\000\000\b", '\000' <repeats 15 times>"\240, 
\357I+\377\177\000\000\000\062\300\002\000\000\000\000\032\311m*
(\177\000\000(\000\000\000\060\000\000\000"...
        mapname = 
"\000sI+\377\177\000\000\000\000\000\000\377\377\377g\000tI+\377\177\000\000\000\0
00\000\000\000\000\000\000\370jI+\377\177\000\000\000\000\000\000\000\000\000\000\
360jI+\377\177\000\000\370jI+\377\177\000\000PsI+\377\177\000\000\001\000\000\000\
000\000\000\000\335jI+\377\177\000\000\372\377\377\377", '\000' <repeats 28 
times>"\237, 
\304\000/(\177\000\000\062\063.5.\000\000\000\320jI+\377\177\000\000\030\000\000\0
00\000\000\000\000\340jI+\000\000\000\000\060kI+\377\177\000\000pkI+\377\177\000\0
00\260kI+\377\177\000\000\002\000\000\000\000\000\000\000\001\000\000\000\000\000\
000\000\001\000\000\000f", '\000' <repeats 11 times>, 
"\001\000\000\000f\000\000\000\000\000\000\000\000\000\000\240", '\000' <repeats 
27 times>, "  \215\027", '\000' <repeats 12 times>...
        url = '\000' <repeats 3560 times>, "0kI+\377\177", '\000' <repeats 74 
times>"\360, 
lI+\377\177\000\000\220mI+\377\177\000\000PtI+\377\177\000\000x\377\377\377\377\37
7\377\377\370jI+\377\177\000\000\000\000\000\000\000\000\000\000S\336\362.
(\177\000\000\000\000\000\000\000\000\000\000PsI+\377\177\000\000\062\063.551\000\
000A\335\362.(\177\000\000\062\063.551\000\000A\335\362.
(\177\000\000\000\000\000\000\000\000\000\000\062\000\000\000\063\000\000\000.\000
\000\000\065\000\000\000\065\000\000\000\061\000\000\000.\000\000\000\065\000\000\
000T\343\362.(\177\000\000\240mI+\377\177\000\000T\343\362.
(\177\000\000\000\000\000\000\000\000\000\240", '\000' <repeats 15 times>"\240, ", 
'\000' <repeats 40 times>, "\002\000\000\000\000\000\000\000"...
        next = <value optimized out>
        write_info = 0x2d04400
        status = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        geometry = {width = 37731688, height = 139810566319680, x = 47186432, y = 
47268864}
        p = <value optimized out>
        __PRETTY_FUNCTION__ = "WriteHTMLImage"
        __func__ = "WriteHTMLImage"
#11 0x00007f282a64e4b6 in WriteImage (image_info=<value optimized out>, 
image=0x23fbb00) at magick/constitute.c:1164
        filename = '\000' <repeats 1800 times>, "fU\365.
(\177\000\000\360\312I+\377\177\000\000\340\312I+\377\177\000\000 
\000\000\000\000\000\000\000p\314I+\377\177\000\000\360\312I+\377\177\000\000\031n
\362.
(\177\000\000\000\000\000\000\000\000\000\000\f\000\000\000\000\000\000\000x\375`\
002(\177\000\000x\375`\002(\177", '\000' <repeats 34 times>"\320, 
\311I+\377\177\000\000\000\000\000\000\000\000\000\000H\375`\002(\177", '\000' 
<repeats 18 times>, "
<\312I+\377\177\000\000x\312I+\377\177\000\000X\312I+\377\177", '\000' <repeats 18 
times>"\300, \305I+\377\177", '\000' <repeats 22 times>"\246, 
\311I+0\312I+\377\177\000\000\377\377\377\377\377\377\377\377\000\000\000\000\000\
000\000\000\250\311I+\377\177", '\000' <repeats 22 times>, "8\351\377\377 ", 
'\000' <repeats 27 times>"\250, \311I"...
        option = <value optimized out>
        delegate_info = <value optimized out>
        magick_info = 0x23d9600
        sans_exception = 0x23d9600
        write_info = 0x2d00200
        status = MagickFalse
        temporary = MagickFalse
        thread_support = 0
        __PRETTY_FUNCTION__ = "WriteImage"
        __func__ = "WriteImage"
#12 0x00007f280260f673 in WriteHTMLImage (image_info=<value optimized out>, 
image=0x23fbb00) at coders/html.c:385
        value = <value optimized out>
        basename = "\000\000\000\000\000\000\000\000\235\333r*
(\177\000\000\000\200\255\373\000\000\000\000\000\305E\002\000\000\000\000\265p\31
7\002\000\000\000\000\000v\267\002\000\000\000\000\020\344\276\002\000\000\000\000
@S\226\002\000\000\000\000\020\000\300\002\000\000\000\000\020\376\277\002\000\000
\000\000\004\000\000\000\000\000\000\000\235\333r*(\177", '\000' <repeats 11 
times>"\341, 
\276\002\000\000\000\000\002\000\000\000\377\177\000\000\000v\267\002\000\000\000\
000\030\000\300\002\000\000\000\000\340\361\275\002\000\000\000\000\030\305E\002\0
00\000\000\000\030\234=\002\000\000\000\000\003\000\000\000\000\000\000\000\235\33
3r*(\177", '\000' <repeats 11 times>"\376, 
\277\002\000\000\000\000p\375\375\001\000\000\000\000\000v\267\002\000\000\000\000
\030\305E\002\000\000\000\000\340\361\275\002\000\000\000\000\030\234=\002\000\000
\000\000\000v\267\002\000\000\000\000\002\000\000\000\000\000\000\000\235"...
        buffer = "\" shape=\"rect\" coords=\"0,0,39,44\" alt=\"\" />\n\000=\"Image 
map\" 
/>\n\000\000\000\000\200\330\002\000\000\000\000\020\376I+\377\177\000\000\300 
J+\377\177\000\000\000\377I+\377\177\000\000\061Jy*
(\177\000\000\220\377I+\377\177\000\000\377\017\000\000\000\000\000\000P=\375\061(
\177\000\000\300 J+\377\177\000\000\062\307\364.
(\177\000\000\001\200\255\373\000\000\000\000\300 J+\377\177\000\000\300 
J+\377\177\000\000\300 J+\377\177\000\000\000 J+\377\177\000\000\323 
J+\377\177\000\000\277\060J+\377\177\000\000\300 
J+\377\177\000\000\277\060J+\377\177", '\000' <repeats 42 times>"\320, 
\017J+\000\000\000\000\035&\341\061("...
        filename = "\000\240w*(\177\000\000;\276m*(\177\000\000htm", '\000' 
<repeats 38 times>, "\b\000\000\000\000\000\000@\201y*(\177\000\000;\276m*(\177", 
'\000' <repeats 18 times>"\316, 'y*(\177\000\000\v\006", '\000' <repeats 15 
times>"\217, ?\002\000\000\000\000\000\217?
\002\000\000\000\000\001\000\000\000\000\000\000\000\301\240w*(\177\000\000;\276m*
(\177\000\000\240\201y*(\177\000\000\345\001", '\000' <repeats 14 times>, 
"\001\000\000\000\000\000\000\000\030\027y*
(\177\000\000\001\000\000\000\000\000\000\000\030\027y*(\177\000\000;\276m*(\177", 
'\000' <repeats 11 times>, "\020\000\000\000\000\000\000x\312y*
(\177\000\000\000\004\000\000\000\000\000\000hJy*("...
        mapname = 
"\000\017J+\377\177\000\000\320\377I+\377\177\000\000\000\017J+\377\177\000\000\00
0\000\000\000\000\000\000\000\220\311y*(\177\000\000!\003", '\000' <repeats 22 
times>"\347, \341I+\000\000\000\000\003", '\000' <repeats 11 times>, 
"\n\000\000\000\000\020\000\000\000\000\000\000x\312y*(\177\000\000;\276m*
(\177\000\000'\342I+\377\177\000\000\000\000\000\000\000\000\000\000\030\027y*
(\177\000\000;\276m*
(\177\000\000\377\377\377\377\377\177\000\000(\342I+\377\177\000\000\000\000\000\0
00\000\000\000\000\300\377#/(\177", '\000' <repeats 14 times>, 
"\002\000\000\000\220\311y*(\177\000\000!\003", '\000' <repeats 22 times>, 
"P\311y*(\177\000\000B\003", '\000' <repeats 18 times>, 
"\002\000\000\000\000\020\000\000\000\000\000\000\320"...
        url = "\000v\267\002\000\000\000\000.Pr*
(\177\000\000\000V@\002\000\000\000\000\000Q@\002\000\000\000\000\060\016J+\377\17
7\000\000@.$/(\177\000\000(V@\002\000\000\000\000\060\016J+\377\177\000\000\001\00
0\000\000\000\000\000\000@.$/(\177\000\000H\305>\002\000\000\000\000\060\016J+\377
\177\000\000\001", '\000' <repeats 16 times>"\224, 
>\002\000\000\000\000H\305>\002\000\000\000\000\060\016J+\377\177\000\000\001\000\
000\000\000\000\000\000\060\036J+\377\177\000\000\335;m*(\177\000\000@ 
J+\377\177\000\000\000V@\002\000\000\000\000\000\366@\002\000\000\000\000.Pr*
(\177\000\000(\036\300\002\250\322I+\256\an*
(\177\000\000(\036\300\002\n\000\000\000\001\000\000\000\000\000\000\000\000"...
        next = 0x0
        write_info = 0x2d14400
        status = <value optimized out>
        geometry = {width = 40, height = 45, x = 0, y = 0}
        p = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        __PRETTY_FUNCTION__ = "WriteHTMLImage"
        __func__ = "WriteHTMLImage"
#13 0x00007f282a64e4b6 in WriteImage (image_info=<value optimized out>, 
image=0x23fbb00) at magick/constitute.c:1164
        filename = "\000}\267\002\000\000\000\000\000\245\331\002", '\000' 
<repeats 28 times>"\235, \333r*(\177\000\000\220\016\361-(\177\000\000qQr*
(\177\000\000\301\240w*
(\177\000\000\000}\267\002\000\000\000\000\020\206=\002\000\000\000\000\000\030?
\002\000\000\000\000\000}\267\002", '\000' <repeats 12 times>, 
"\001\000\000\000\000\000\000\000\235\333r*
(\177\000\000\000!\331\002\000\000\000\000\214\273\365.
(\177\000\000\340\305\331\002\000\000\000\000\001\000\000\000\000\000\000\000\301\
240w*(\177\000\000;\276m*(\177", '\000' <repeats 26 times>"\235, \333r*
(\177\000\000\000!\331\002\000\000\000\000qQr*
(\177\000\000\001\000\000\000\000\000\000\000\000}\267\002\000\000\000\000\000,@\0
02\000\000\000\000@.$/(\177\000\000p\353y*(\177\000\000\003\003"...
        option = <value optimized out>
        delegate_info = <value optimized out>
        magick_info = 0x23d9600
        sans_exception = 0x23d9600
        write_info = 0x2d10200
        status = MagickFalse
        temporary = MagickFalse
        thread_support = 0
        __PRETTY_FUNCTION__ = "WriteImage"
        __func__ = "WriteImage"
#14 0x00007f282a6224a2 in ImageToBlob (image_info=0x23f7900, image=0x23fbb00, 
length=0x7fff2b4a4ef8, exception=0x2cf7200) at magick/blob.c:1393
        magick_info = <value optimized out>
        blob_info = 0x23e9400
        status = <value optimized out>
        blob = <value optimized out>
        __PRETTY_FUNCTION__ = "ImageToBlob"
        __func__ = "ImageToBlob"
#15 0x00007f282ad6b7fc in zim_imagick___tostring () from 
/usr/lib/php5/20100525/imagick.so
No symbol table info available.
#16 0x00000000006b78cf in zend_delete_variable (ex=0x7fff2b4a50d0, ht=0x239a560, 
name=0xe2e800 "X9\375\061(\177", name_len=256, hash_value=726290560)
    at /usr/src/php5.4/source/php5-5.4.11/Zend/zend_execute_API.c:1707
        i = 0
#17 0x0000000000000000 in ?? ()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-25 07:53 UTC] mkoppanen@php.net
Got reproducable test case?
 [2013-09-25 07:53 UTC] mkoppanen@php.net
-Status: Open +Status: Feedback
 [2013-09-25 15:35 UTC] lstrojny@php.net
Unfortunately not.
 [2013-10-15 11:54 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC