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

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Perl CGI script error
by davorg (Chancellor) on Nov 21, 2006 at 08:33 UTC
    The module used here is Mozilla::LDAP::API qw(:constant :api :ssl). Now I don't know much about this module. Please can I get some information regarding this module.

    As with most Perl modules, the documentation is on CPAN.

    Secondly, I am getting a "segmentation fault(coredump)" error when I am trying to run the script. Is this because the module is not properly installed.

    It's impossible to tell. Is anything being written to the web server error log?

    If needed I can also provide the script

    What would be helpful would be a cut-down version of the program (maybe 20-30 lines) that exhibits this problem. If you post the whole thing then people might not be interested enough to read it all.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Perl CGI script error
by syphilis (Archbishop) on Nov 21, 2006 at 08:40 UTC
    What has changed ? If the script was previously running ok, something must have been done to break it. What could that be ?

    You could also try to isolate the problem - ie what's the smallest script you can come up with that produces the segfault ? Does a script that contains only "use Mozilla::LDAP::API qw(:constant :api :ssl);" segfault ? If not, it must be a function call that's doing it ... knowing which specific function call might be useful.

    Cheers,
    Rob
    A reply falls below the community's threshold of quality. You may see it by logging in.