Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Hello Monks, I am trying to switch from ActivePerl 5.10.1 build 1008 to strawberry perl 5.10.1 portable edition. I am running a perl script using the module FCGI, trying to access an Oracle database via DBD::ODBC and get the following error message:
ERROR: 'Can't load 'C:/Perl/perl/site/lib/auto/FCGI/FCGI.dll' for modu +le FCGI: load_file: Invalid access to memory location at C:/Perl/perl +/lib/DynaLoader.pm line 200.

The error does not show up when I use DBD::Oracle or when I use ActivePerl (no matter whether I use DBD::ODBC or DBD::Oracle). I analysed the script with Dependency Walker (profiling the perl process) to see where the FCGI.DLL gets loaded in memory (0x62EC0000 for DBD::Oracle, 0x06370000 for DBD::ODBC). The ImageBase of FCGI.DLL is 0x62EC0000, so obviously strawberry-perl has a problem if a dll is not loaded where the dll wants to be loaded (which may happen if another dll comes first at that special address). This seems to be a bug of the used mingw-toolchain (see bug 3322937 of mingw-bugtracker at sourceforge). I tried also with strawberry-perl 5.12 (newer version of mingw), same problem.

Now my questions are:

  • as strawberry-perl itself and all of the modules are compiled with mingw, is it safe to use strawberry-perl at all? I fear that this problem could happen again with any other dll?
  • how can I fix FCGI.DLL? I know that for a similar cygwin problem, there is /bin/rebaseall, is there something similar for mingw?

thanks for any advice

In reply to strawberry perl yields a "Invalid access to memory location" by wannabeperlguru

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (16)
    As of 2014-08-27 18:29 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (248 votes), past polls