Bug 93185 - graphics/pecl-imagick port causes SIGABRT on amd64
Summary: graphics/pecl-imagick port causes SIGABRT on amd64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-11 15:30 UTC by Larry Rosenman
Modified: 2006-08-31 07:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rosenman freebsd_committer freebsd_triage 2006-02-11 15:30:04 UTC
if the graphics/pecl-imagick port is in the system, phpinfo() returns
a SIGABRT.  It appears that there is a free() that has a problem.

I can offer a shell account to whoever to help narrow it down.

I've CC'd the maintainer as well

Fix: 

unknown.  I uninstalled the port :(
How-To-Repeat: install graphics/pecl-imagick (PHP5/apache22) on amd64.
run <?php phpinfo(); ?>, note the incomplete output and 
notices in the /var/log/messages file.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-02-11 15:32:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 Sergey Mokryshev 2006-03-08 21:33:43 UTC
The same happens on i386 FreeBSD-5.5 prerelease (sources from 2006/03/01) 
with
php4-4.4.2_1, pecl-imagick-0.9.11_4, ImageMagick-6.2.5.5_2, 
ghostscript-gnu-7.07_14

somehow it is dependent on contents of
/usr/local/lib/ImageMagick/config/type.xml

Test file
-------------------------------
# cat i.php
<?php
phpinfo();
?>
-------------------------------
started as
# php i.php 2>&1 |tail
-------------------------------

with default type.xml results in signal 6 and this output
-------------------------------
.......
ctype

ctype functions => enabled

ftp
php in free(): error: junk pointer, too high to make sense
-----------------------------

and with modified type.xml
--- type.xml.bak        Thu Mar  9 00:20:33 2006
+++ type.xml    Thu Mar  9 00:29:42 2006
@@ -16,6 +16,3 @@
   <!ATTLIST type version CDATA #IMPLIED>
   <!ATTLIST include file CDATA #REQUIRED>
 ]>
-<typemap>
-   <include file="type-ghostscript.xml" />
-</typemap>
----------------
it results in successful completion of program, but got Signal 11 on php 
exit
----------------
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
Segmentation fault
----------------

Works perfect without imagick.so in /usr/local/etc/php/extensions.ini.


Sergey Mokryshev.
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2006-05-23 07:29:38 UTC
State Changed
From-To: open->feedback

Can you try the magicwand backend?
Comment 4 Larry Rosenman freebsd_committer freebsd_triage 2006-05-23 07:45:17 UTC
Alex Dupre wrote:
> Synopsis: graphics/pecl-imagick port causes SIGABRT on amd64
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: ale
> State-Changed-When: Tue May 23 06:29:38 UTC 2006
> State-Changed-Why:
> Can you try the magicwand backend?
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=93185

Did you mean "GraphicsMagick" backend?



-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3683 US
Comment 5 Larry Rosenman freebsd_committer freebsd_triage 2006-05-23 07:56:58 UTC
Alex Dupre wrote:
> Synopsis: graphics/pecl-imagick port causes SIGABRT on amd64
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: ale
> State-Changed-When: Tue May 23 06:29:38 UTC 2006
> State-Changed-Why:
> Can you try the magicwand backend?
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=93185

And with the "GraphicsMagick" backend, it still dies:
May 23 01:55:28 thebighonker kernel: pid 26313 (httpd), uid 80: exited on
signal 10

LER


-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3683 US
Comment 6 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-06-04 17:42:01 UTC
State Changed
From-To: feedback->open

Some feedback received.
Comment 7 Alex Dupre freebsd_committer freebsd_triage 2006-08-31 07:39:08 UTC
State Changed
From-To: open->closed

The port will be removed from the tree soon, 
try php-magickwand if you need similar functionalities.