hpunixguy2 has asked for the wisdom of the Perl Monks concerning the following question:

Hello I am a very novice perl coder and having severe issues trying to get the authors test code to work under HPUX. I am core dumping. :). I know my Net::FTP module works, I dont have to have the inline file, I would rather be encrypting to a secured file, but if any of you could give suggestions to get the test code working I would Really appreciate it. I am trying to establish the module is working and understand the basics of how it works. Unfortunatly I think it has problems under HPUX :). Many Many thanks all.

2005-09-09 Retitled by Arunbear, as per Monastery guidelines
Original title: 'Data-Encrypted-0.07'

  • Comment on Data-Encrypted-0.07 is coredumping under HPUX

Replies are listed 'Best First'.
Re: Data-Encrypted-0.07 is coredumping under HPUX
by gellyfish (Monsignor) on Sep 08, 2005 at 11:24 UTC

    In the first instance, under normal conditions, neither Perl nor an extension should coredump at all whatever you have in your own code; if it does then there is some basic problem with the build of Perl or the extension in question. That said it would appear that Data::Encrypted doesn't have any XS part: it hands off the actual encryption to some Crypt:: module which will almost certainly have some XS component (or use something that does like Math::Pari,) so this is where you are going to have to start looking for the cause of the coredump.

    The easiest way to determine the point at which the coredump occurred is to point your debugger at it; for instance if you were using gdb you might have something like:

    gdb --core ./core
    of course you may have to determine what the actual command line is if you have a different debugger on your system.

    A possible cause of a coredump could also be that some XS extension has been built with a different C compiler than that which was used to build the Perl: you can determine the compiler used (and the architecture the perl was built for) from the output of perl -V. If you have a prebuilt Perl that came with the OS it is often the case that this would be built with the vendors own compiler rather than, say, gcc (I don't know if this is the case with HP/UX) but it might be possible to get the packages you want prebuilt also.

    /J\

Re: Data-Encrypted-0.07 is coredumping under HPUX
by bilfurd (Hermit) on Sep 08, 2005 at 00:37 UTC
    Can you post the code for us to review? It is hard to see the problem without seeing the code...