From:             
Operating system: Ubuntu 10.10
PHP version:      5.3.6
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Imagick::cropImage segfault

Description:
------------
Calls to Imagick::cropImage fail. I've tried the OS-shipped imagick.so and
I've 

also installed it via pecl (after uninstalling the OS-shipped one).

Test script:
---------------
<?php



$image = new Imagick('mario-1-1.gif');

$image->cropImage(8,8,0,0);

Expected result:
----------------
I expect no segmentation fault.

Actual result:
--------------
david@icecap:~/mario-images$ gdb php

GNU gdb (GDB) 7.2-ubuntu

Copyright (C) 2010 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 "i686-linux-gnu".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>...

Reading symbols from /usr/bin/php...Reading symbols from 

/usr/lib/debug/usr/bin/php5...done.

done.

(gdb) run test.php 

Starting program: /usr/bin/php test.php

[Thread debugging using libthread_db enabled]

[New Thread 0xb7d6eb70 (LWP 3597)]

[Thread 0xb7d6eb70 (LWP 3597) exited]

[New Thread 0xb7d6eb70 (LWP 3598)]

[New Thread 0xb6e32b70 (LWP 3599)]



Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 0xb6e32b70 (LWP 3599)]

0x0144e8da in ?? ()

(gdb)

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54404&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54404&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54404&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54404&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54404&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54404&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54404&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54404&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54404&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54404&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54404&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54404&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54404&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54404&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54404&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54404&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54404&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54404&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54404&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54404&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54404&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54404&r=mysqlcfg

Reply via email to