in reply to Image::Magick "Features" question

(...Just wondering why you didn't install the package compiled for your ubuntu version).

The former code works for me after adding "use diagnostics;" either if I use $image1->Features(1) or $image1->Features()

If I comment the line "use diagnostics" I got a segfault error

Replies are listed 'Best First'.
Re^2: Image::Magick "Features" question
by delilama (Initiate) on Oct 12, 2011 at 03:58 UTC
    (...Just wondering why you didn't install the package compiled for your ubuntu version).

    My Ubuntu's version of PerlMagick doesn't have this method.

    I'll try the "use diagnostics;" hack.

    Is there any easy way to debug (via GDB) problems with binary modules in Perl?

      Is there any easy way to debug (via GDB) problems with binary modules in Perl?

      Sure, compile debug version of perl, debug version of imagemagick and all its prerequisites ... fireup gdb and do something gdb-ish with the expert c-knowledge of perl internals :)

      panic: pp_iter

      (P) The foreach iterator got called in a non-loop context frame.

      If it were me, i'd report the bug upstream to all parties concerned :)