Thanks to Nicholas's fix for me yesterday with my coredumps in 
Tie::RefHash, I fixed my own coredump seen in ext/B/t/xref.t 
that I've seen since upgrading to OpenBSD 3.7.  It has been 
lightly tested with ext/B/t/xref.t, but stops the coredump 
caused by the test.

On a side note, this code appears to be old and recent changes
don't seem to be the cause since I get this same coredump on 
5.8.7 as well as the current bleadperls.

Steve Peters
[EMAIL PROTECTED]
--- ext/B/B.xs.old      Thu Jun  2 04:13:18 2005
+++ ext/B/B.xs  Tue Jun 14 08:06:21 2005
@@ -1215,7 +1215,7 @@
     CODE:
         ST(0) = sv_newmortal();
         if( SvPOK(sv) ) { 
-            sv_setpvn(ST(0), SvPVX_const(sv), SvCUR(sv));
+            sv_setpv(ST(0), SvPV_nolen_const(sv));
             SvFLAGS(ST(0)) |= SvUTF8(sv);
         }
         else {

Reply via email to