Skip to content

Commit

Permalink
perldelta: note the address space conflict on cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Mar 28, 2024
1 parent 92f23e2 commit f57fa1c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,31 @@ platform specific bugs also go here.

=item *

XXX
fork() failures on cygwin with C<-DDEBUGGING> builds.

Perl uses the C<--enable-auto-image-base> option to set the base
images for DLLs for C<cygperl5_39_10.dll> and the DLLs needed for
dynamically loaded modules on cygwin.

With 5.39.10 if perl is built with C<-DDEBUGGING> or possibly other
options that increase the address space used by F<cygperl5_39_10.dll>,
the address space for F<cygperl5_39_10.dll> overlaps with the address
space allocated for F<mro.dll>.

The C<mro> module will still load, but if perl attempts to fork you
will likely see an error like:

0 [main] perl 34054 child_info_fork::abort: address space needed by \
'mro.dll' (0x400000) is already occupied

You can workaround this by building without the C<-DDEBUGGING> option,
or by making C<mro> a static extension:

./Configure ... -Astatic_ext=mro

We expect the name change of the F<cygperl5_39_10.dll> to
F<cygperl5_39_11.dll> in 5.39.11 will fix this problem for the next
release. [github #22104]

=back

Expand Down

0 comments on commit f57fa1c

Please sign in to comment.