retitle 609535 psiconv: magick/semaphore.c:526: LockSemaphoreInfo: Assertion 
`semaphore_info->signature == 0xabacadabUL' failed.
tags 609535 - patch
thanks

Thanks for your bugreport! (I'm not maintainer of this package, but I'll comment anyway.)

* Reuben Thomas <r...@sc3d.org>, 2011-01-10, 12:48:
--- psiconv-0.9.8/configure.in  2005-11-15 15:43:19.000000000 +0000
+++ psiconv-0.9.8-rrt/configure.in      2011-01-10 12:35:58.000000000 +0000
@@ -112,6 +112,7 @@
                   #include <time.h>
                 #include <magick/api.h>
                   int main(void) { ExceptionInfo exception;
+                   InitializeMagick(NULL);
                   GetExceptionInfo(&exception);
                   OpenModules(&exception);
                   return (NULL ==  GetMagickInfo(NULL,&exception)); }],

This hunk is OK.

--- psiconv-0.9.8/program/psiconv/magick-aux.c  2005-11-15 15:08:21.000000000 
+0000
+++ psiconv-0.9.8-rrt/program/psiconv/magick-aux.c      2011-01-10 
12:37:09.000000000 +0000
@@ -37,6 +37,7 @@
const MagickInfo * GetMagickFileList(void)
{
  ExceptionInfo exc;
+  InitializeMagick(NULL);
  GetExceptionInfo(&exc);
  OpenModules(&exc);
  return GetMagickInfo(NULL,&exc);

This doesn't look good. GetMagickFileList is called in a loop and
InitializeMagick is supposed to be run only once.

And in fact, after applying your patch, psiconv still crashes for me with the following traceback:

#0  0xf76cf537 in raise () from /lib/libc.so.6
#1  0xf76d2922 in abort () from /lib/libc.so.6
#2  0xf76c8727 in __assert_fail () from /lib/libc.so.6
#3  0xf7d91e32 in LockSemaphoreInfo () from /usr/lib/libGraphicsMagick.so.3
#4  0xf7cca852 in ReferenceBlob () from /usr/lib/libGraphicsMagick.so.3
#5  0xf7d5abf3 in SyncNextImageInList () from /usr/lib/libGraphicsMagick.so.3
#6  0xf7ec5fd3 in ?? () from /usr/lib/libGraphicsMagick.so.3
#7  0xf7d11f96 in WriteImage () from /usr/lib/libGraphicsMagick.so.3
#8  0xf7ccd8f1 in ImageToBlob () from /usr/lib/libGraphicsMagick.so.3
#9  0x0804b152 in image_to_list (list=0x8059590, image=0x80ba6e8, dest=0x804f7d2 
"TIFF") at gen_image.c:98
#10 0x0804b3f8 in gen_image_list (config=0x8059358, list=0x8059590, sections=0x8059938, 
dest=0x804f7d2 "TIFF") at gen_image.c:163
#11 0x0804b567 in gen_clipart (config=0x8059358, list=0x8059590, f=0x80595a8, 
dest=0x804f7d2 "TIFF") at gen_image.c:193
#12 0x0804b643 in gen_image (config=0x8059358, list=0x8059590, file=0x8059580, 
dest=0x804f7d2 "TIFF", encoding_type=ENCODING_UTF8) at gen_image.c:222
#13 0x0804a063 in main (argc=2, argv=0xffffd714) at psiconv.c:298

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to