<?xml version="1.0" encoding="windows-1252"?>
<node id="1007568" title="Re^11: if Digest::SHA1 loaded Can't load LibXML/LibXML.dll Invalid access to memory location" created="2012-12-06 08:39:33" updated="2012-12-06 08:39:33">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;p&gt; Same messsage :)
&lt;c&gt;
$ perl badcrabs.txt
ret=1849688064 glr=2

$ perl -MDigest::SHA1 badcrabs.txt
ret=0 glr=193

&lt;/c&gt;
&lt;p&gt; In depends.exe its now &lt;pre&gt;LDR: LdrRelocateImageWithBias() failed 0xc000007b
LDR: OldBase     : 6E400000
LDR: NewBase     : &lt;b&gt;00A9&lt;/b&gt;0000
LDR: Diff        : 0xffffffff&lt;b&gt;9269&lt;/b&gt;0000
LDR: NextOffset  : &lt;b&gt;00CC9F90&lt;/b&gt;
LDR: *NextOffset : 0x302e
LDR: SizeOfBlock : 0x5c
&lt;/pre&gt;
&lt;p&gt;Compared to -MDigest::SHA1 -MXML::LibXML  &lt;pre&gt;LDR: LdrRelocateImageWithBias() failed 0xc000007b
LDR: OldBase     : 6E400000
LDR: NewBase     : &lt;b&gt;010A&lt;/b&gt;0000
LDR: Diff        : 0xffffffff&lt;b&gt;92ca&lt;/b&gt;0000
LDR: NextOffset  : &lt;b&gt;012D9F90&lt;/b&gt;
LDR: *NextOffset : 0x302e
LDR: SizeOfBlock : 0x5c&lt;/pre&gt;
&lt;p&gt; Apparently LdrRelocate... errors happen ( [href://http://sourceforge.net/mailarchive/message.php?msg_id=15222703|Weird problem loading a dll with win32 LoadLibrary() function] ) commonly with cygwin , and they recommend using some "rebaseall" shell script, and I saw they do [href://http://code.activestate.com/lists/perl5-porters/147382/|some rebase-ing for MakeMaker/cygwin]
&lt;p&gt; So I look through my dlls &lt;c&gt;$ perl -lne " chomp; print; print qx{objdump -x $_ |grep ImageBase }; " dlls.txt &lt;/C&gt;
and both  Digest/SHA1/SHA1.dll and auto/XML/LibXML/LibXML.dll share ImageBase               6e400000
&lt;p&gt; Not sure if this is a problem but [href://http://www.sourceware.org/ml/cygwin-apps/2011-07/msg00002.html] / [href://http://www.sourceware.org/ml/cygwin/2010-07/msg00258.html]  / [href://http://perldoc.perl.org/perl5140delta.html#Cygwin|perl5140delta] suggests  this collision is the problem , so I'll need to rebase, so I try that with the default [href://http://www.tishler.net/jason/software/rebase/rebase-2.4.2.README|rebase-2.4.2] address
&lt;p&gt; &lt;c&gt; perl -pi.orig -e " s{^(LDDLFLAGS = )}{$1 -Wl,--image-base=0x70000000 }; " Makefile &lt;/c&gt;
&lt;p&gt; and it worked!!!!!
&lt;p&gt; *whew*
&lt;p&gt; So from time to time I'll have to rebase a few dlls if I stick with this old OS
</field>
<field name="root_node">
1003763</field>
<field name="parent_node">
1007371</field>
<field name="reputation">
2</field>
</data>
</node>
