php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59050 Troubles using module on x64 system
Submitted: 2010-01-27 13:53 UTC Modified: 2010-02-10 17:49 UTC
From: spinn909 at gmail dot com Assigned: vito (profile)
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.0 OS: Debian 5.0.3 amd64
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: spinn909 at gmail dot com
New email:
PHP Version: OS:

 

 [2010-01-27 13:53 UTC] spinn909 at gmail dot com
Description:
------------
Maybe I'm doing something wrong, but I can't get the module working on a Debian Lenny amd64 system. When compiling the module I get the following warnings:

/tmp/gmagick/gmagick-1.0.3b3/gmagick_methods.c: In function "zim_gmagick_readimage":
/tmp/gmagick/gmagick-1.0.3b3/gmagick_methods.c:68: warning: cast to pointer from integer of different size
/tmp/gmagick/gmagick-1.0.3b3/gmagick_methods.c:68: warning: cast to pointer from integer of different size
/tmp/gmagick/gmagick-1.0.3b3/gmagick_methods.c: In function "zim_gmagick___construct":
/tmp/gmagick/gmagick-1.0.3b3/gmagick_methods.c:99: warning: cast to pointer from integer of different size
/tmp/gmagick/gmagick-1.0.3b3/gmagick_methods.c:99: warning: cast to pointer from integer of different size

I am actually able to compile, install and load the module, but when I try to use it, it doesn't work, and I get the following error in Apache's error.log:

apache2: magick/semaphore.c:525: LockSemaphoreInfo: Assertion `semaphore_info != (SemaphoreInfo *) ((void *)0)' failed.
[Wed Jan 27 19:38:08 2010] [notice] child pid 18961 exit signal Aborted (6)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-27 13:58 UTC] spinn909 at gmail dot com
Forgot to mention that the "cast to
pointer from integer of different size
" warning repeats a bunch of times for a lot of different functions.
 [2010-01-27 14:37 UTC] mkoppanen@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Hi,

this was an issue with some versions of ImageMagick. Try upgrading ImageMagick and retry.
 [2010-01-27 14:39 UTC] mkoppanen@php.net
Hi, the backtrace is not needed. I selected the wrong resolution for the bug.
 [2010-01-27 15:10 UTC] spinn909 at gmail dot com
Hi,

I'm guessing you meant 
GraphicsMagick, or do I also have 
to have ImageMagick installed? As 
for GraphicsMagick, I have the 
latest stable version, 1.3.8. 
Should I try with another, older 
version?
 [2010-01-27 15:19 UTC] mkoppanen@php.net
Hi,

sorry I meant GraphicsMagick. Getting confused while fixing bugs on both. I'll assign this to vitoc for further analysis
 [2010-01-28 09:24 UTC] vito@php.net
Hello,

How does your build config look like? Optional features?

http://www.graphicsmagick.org/INSTALL-unix.html#optional-features

Can you paste your PHP code?
 [2010-01-28 10:02 UTC] spinn909 at gmail dot com
Hi,

my GraphicsMagick build config is very basic, beforehand I installed a couple of libraries (JPEG, PNG, TIFF and FreeType) and built GraphicsMagick with --without-perl --enable-shared. Haven't used any of the other optional features. GM works normally and I am able to convert images from the command line.

My PHP code is also very simple, this is all it takes for the error to appear in my apache error.log:

$gm = new Gmagick('image.jpg');

Let me know if there's any other info you might need, or if there's something other I should try (install an additional library, try a different build config).
 [2010-01-30 23:03 UTC] spinn909 at gmail dot com
I managed to compile the extension in the end, using an older GraphicsMagick version (1.2.10).
 [2010-01-31 08:53 UTC] spinn909 at gmail dot com
By "compile" I actually meant "get it working and be able to convert images", sorry.
 [2010-02-10 17:49 UTC] mkoppanen@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 07:01:28 2024 UTC