DEV Community

Yuki Kimoto
Yuki Kimoto

Posted on

2

Perl: load_file:Invalid access to memory location on Windows Server 2020/2022

I got this error on Windows Server 2020/2022 to load DLLs that is generated by ExtUtils::CBuilder.

Can't load dynamic_lib file "D:\a\SPVM\SPVM\SPVM-0.9665\blib\lib/SPVM/Format__precompile.xs.dll": load_file:Invalid access to memory location at D:\a\SPVM\SPVM\SPVM-0.9665\blib\lib/SPVM/Builder.pm line 262.
Enter fullscreen mode Exit fullscreen mode

This is fixed in the latest ExtUtils::CBuilder.

Changes

Revision history for Perl extension ExtUtils::CBuilder.

0.280236 - 2021-02-12

  Fix:

  - Remove image-base generation on Win32/gcc and instead use GCC's built-in
    `--enable-auto-image-base` linker option.
Enter fullscreen mode Exit fullscreen mode

For Programming Beginners

ExtUtils::CBuilder is a Perl module to generate shared libraries on Linux/Mac or Dynamic link libraries on Windows.

This is a wrapper of C or C or C.

They are compilers and linkers to compile C/C++ source codes and link them to output an executable file or a shared library.

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (1)

Collapse
 
techengagepro profile image
Ayesha Javed

Amazing Article. Error message "load_file: Invalid access to memory server location" typically occurs in Perl when there's an issue with loading a file, often due to file permissions, file path issues, or memory problems. Here are some steps you can take to troubleshoot and potentially resolve this issue.

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →