Hello all. Please cc: me in replies.
Using Perl 5.8.0 under Win32 with the VC++ compiler, we are running into a
problem where the interpreter crashes when one attempts to "use" any XS
module. Using the independant perl.exe works, but calling perl_parse() from
our code does not. It tries to dereference a null pointer.
The same embedding code works under Unix with XS modules.
I have tried to make our call to perl_parse() look like perlmain.c's, and it
has not helped. I am pretty much out of ideas as to how to fix this. Any
suggestions? Is this a known issue? Thanks in advance.
Here is a partial stacktrace from "use Data::Dumper;". The address and
library name vary for other extensions. Sorry I don't have better debug
information, I can't figure VC++ out well enough. It appears that the
dynamic loader is succeeding since the location where the crash occurs is in
the dumper.dll library.
DUMPER! 01e83659()
PERL58! Perl_pp_entersub + 967 bytes
PERL58! Perl_runops_standard + 59 bytes
PERL58! Perl_call_sv + 930 bytes
PERL58! Perl_call_list + 1040 bytes
PERL58! Perl_call_list + 457 bytes
PERL58! Perl_newATTRSUB + 2858 bytes
PERL58! Perl_utilize + 701 bytes
PERL58! Perl_yyparse + 1823 bytes
PERL58! perl_parse + 2728 bytes
PERL58! perl_parse + 433 bytes
Output from perl -V:
Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-perlio
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT
-DUSE_PERLIO -DPERL_MSVCRT_READFIX',
optimize='-MD -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release
-libpath:"g:\isv\3.0\lib\CORE" -machine:x86'
libpth=d:/fbe/1.0/vs6/VC98\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib
mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"g:\isv\3.0\lib\CORE" -machine:x86'
Characteristics of this binary (from libperl):
Compile-time options:
Built under MSWin32
Compiled at Mar 7 2003 12:25:07
@INC:
d:/cruvolo/invio/adptdev/perllib/1.0/lib
.
Thanks for looking at this.
-Chris
--
Chris Ruvolo
Invio Software
[EMAIL PROTECTED]
Tel: 650-937-0230 x132
Fax: 650-937-0240