This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

perl_construct segfaults under cygwin



I'm seeing the call to perl_construct() segfault under cygwin. The same code works fine on linux.


Here's the code:

#include <EXTERN.h>
#include <perl.h>
static PerlInterpreter *my_perl;

int main() {
        my_perl = perl_alloc();
        perl_construct(my_perl);
        printf("Hooray\n");
}

The last 10 lines of the backtrace give:
#0 0x10072547 in cygperl5_8_2!Perl_sv_add_arena ()
from /usr/bin/cygperl5_8_2.dll
#1 0x1007dc8b in cygperl5_8_2!Perl_newSVpvn () from /usr/bin/cygperl5_8_2.dll
#2 0x10058488 in cygperl5_8_2!Perl_savesharedpv ()
from /usr/bin/cygperl5_8_2.dll
#3 0x100586b7 in cygperl5_8_2!Perl_vmess () from /usr/bin/cygperl5_8_2.dll
#4 0x10059171 in cygperl5_8_2!Perl_vcroak () from /usr/bin/cygperl5_8_2.dll
#5 0x1005963f in cygperl5_8_2!Perl_croak_nocontext ()
from /usr/bin/cygperl5_8_2.dll
#6 0x1000ae1b in cygperl5_8_2!Perl_malloc () from /usr/bin/cygperl5_8_2.dll
#7 0x1007254c in cygperl5_8_2!Perl_sv_add_arena ()
from /usr/bin/cygperl5_8_2.dll
#8 0x1007dc8b in cygperl5_8_2!Perl_newSVpvn () from /usr/bin/cygperl5_8_2.dll
#9 0x10058488 in cygperl5_8_2!Perl_savesharedpv ()
from /usr/bin/cygperl5_8_2.dll
(More stack frames follow...)



The last few lines of the backtrace appear to be:


#35002 0x10058488 in cygperl5_8_2!Perl_savesharedpv ()
   from /usr/bin/cygperl5_8_2.dll
#35003 0x100586b7 in cygperl5_8_2!Perl_vmess () from /usr/bin/cygperl5_8
#35004 0x10059171 in cygperl5_8_2!Perl_vcroak ()
   from /usr/bin/cygperl5_8_2.dll
#35005 0x1005963f in cygperl5_8_2!Perl_croak_nocontext ()
   from /usr/bin/cygperl5_8_2.dll
#35006 0x1000ae1b in cygperl5_8_2!Perl_malloc ()
   from /usr/bin/cygperl5_8_2.dll
#35007 0x1007254c in cygperl5_8_2!Perl_sv_add_arena ()
   from /usr/bin/cygperl5_8_2.dll
#35008 0x10079a0e in cygperl5_8_2!Perl_newSV () from /usr/bin/cygperl5_8
#35009 0x100014ac in perl_construct () from /usr/bin/cygperl5_8_2.dll
#35010 0x0040108d in cygcrypt-0!crypt ()
#35011 0x6101c868 in dlerror () from /usr/bin/cygwin1.dll

I've seen a suggestion elsewhere that this is new in 5.8.2, although I can't verify this myself, since I haven't worked out how to downgrade to anything newer than cygwin perl 5.6.

Thanks in advance
Luke Diamand


******************Legal Disclaimer************************** "This email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message in error, please advise the sender by reply email help@conexant.com, and delete the message. Thank you." ************************************************************

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Mar 15 11:46:28 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:	C:\cygwin\usr\X11R6\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	c:\WINNT\system32
	c:\WINNT
	c:\WINNT\System32\Wbem
	c:\Enabler\Runtime

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 400(lgd) GID: 401(mkpasswd)
401(mkpasswd)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 400(lgd) GID: 401(mkpasswd)
544(Administrators)  545(Users)           
401(mkpasswd)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

HOME = `c:\build'
MAKE_MODE = `unix'
PWD = `/cygdrive/c/build/isos_tools/source/gsv/aconfig'
USER = `lgd'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  FAT32  14309Mb  30% CP    UN           BOOT
d:  cd           N/A    N/A                    

C:\cygwin                          /                         system  binmode
C:\cygwin/bin                      /usr/bin                  system  binmode
C:\cygwin/lib                      /usr/lib                  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.                                  /cygdrive                 system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   56k 2004/03/11 C:\cygwin\usr\X11R6\bin\cygXft-1.dll
  237k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygdps-1.dll
  121k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygdpstk-1.dll
  373k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygGL-1.dll
  439k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll
   74k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygICE-6.dll
    9k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll
   20k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygpsres-1.dll
   30k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygSM-6.dll
  864k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygX11-6.dll
  253k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXaw-6.dll
  355k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXaw-7.dll
   36k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll
   49k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXext-6.dll
   27k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXi-6.dll
   76k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXmu-6.dll
   11k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll
   26k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXp-6.dll
   51k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll
   14k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll
   26k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll
  282k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXt-6.dll
   27k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll
   17k 2004/03/14 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll
   63k 2004/03/12 C:\cygwin\usr\X11R6\bin\cygXft-2.dll
  645k 2003/04/11 C:\cygwin\bin\cygcrypto.dll
  165k 2003/04/11 C:\cygwin\bin\cygssl.dll
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll
   22k 2004/02/10 C:\cygwin\bin\cygcygipc-2.dll
  155k 2004/01/07 C:\cygwin\bin\cygexpat-0.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll
  831k 2003/09/20 C:\cygwin\bin\cygdb-4.1.dll
 1080k 2003/09/20 C:\cygwin\bin\cygdb_cxx-4.1.dll
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll
   12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll
   69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll
  134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll
  958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll
   62k 2003/12/11 C:\cygwin\bin\cygpcre-0.dll
    9k 2003/12/11 C:\cygwin\bin\cygpcreposix-0.dll
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll
  842k 2003/09/30 C:\cygwin\bin\cygcrypto-0.9.7.dll
  171k 2003/09/30 C:\cygwin\bin\cygssl-0.9.7.dll
  380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll
  487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   61k 2003/12/04 C:\cygwin\bin\cygz.dll
  129k 2004/03/11 C:\cygwin\bin\cygfontconfig-1.dll
  361k 2003/10/25 C:\cygwin\bin\cygfreetype-6.dll
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll
 1172k 2004/01/10 C:\cygwin\bin\cygxml2-2.dll
 1049k 2003/11/07 C:\cygwin\bin\cygperl5_8_2.dll
 1083k 2004/01/31 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.5.7
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 109
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Fri Jan 30 19:32:04 EST 2004
        CVS tag: cr-0x9e
        Shared id: cygwin1S3


Cygwin Package Information
Package                 Version            
_update-info-dir        00227-1            
ash                     20040127-1         
base-files              2.6-1              
base-passwd             1.1-1              
bash                    2.05b-16           
binutils                20040312-1         
bison                   20030307-1         
byacc                   1.9-1              
bzip2                   1.0.2-5            
cron                    3.0.1-11           
crypt                   1.1-1              
ctags                   5.5-4              
cvs                     1.11.6-3           
cygipc                  2.03-2             
cygrunsrv               0.98-1             
cygwin                  1.5.7-1            
diff                    1.0-1              
diffutils               2.8.4-1            
dpkg                    1.10.4-2           
editrights              1.01-1             
expat                   1.95.7-1           
fileutils               4.1-2              
findutils               4.1.7-4            
flex                    2.5.4a-3           
fontconfig              2.2.2-1            
freetype2               2.1.5-1            
gawk                    3.1.3-4            
gcc                     3.3.1-3            
gcc-g++                 3.3.1-3            
gcc-mingw               20030911-4         
gcc-mingw-core          20031020-1         
gcc-mingw-g++           20031020-1         
gdb                     20030919-1         
gdbm                    1.8.3-7            
gettext                 0.12.1-3           
grep                    2.5-1              
groff                   1.18.1-2           
gzip                    1.3.5-1            
less                    381-1              
libbz2_1                1.0.2-5            
libdb3.1                3.1.17-2           
libdb4.1                4.1.25-1           
libfontconfig1          2.2.2-1            
libfreetype26           2.1.5-1            
libgdbm                 1.8.0-5            
libgdbm-devel           1.8.3-7            
libgdbm3                1.8.3-3            
libgdbm4                1.8.3-7            
libgettextpo0           0.12.1-3           
libiconv2               1.9.1-3            
libintl                 0.10.38-3          
libintl1                0.10.40-1          
libintl2                0.12.1-3           
libncurses5             5.2-1              
libncurses6             5.2-8              
libncurses7             5.3-4              
libpcre                 4.1-1              
libpcre0                4.5-1              
libpopt0                1.6.4-4            
libreadline4            4.1-2              
libreadline5            4.3-5              
libXft                  2.1.5-1            
libXft1                 1.0.0-1            
libXft2                 2.1.5-1            
libxml2                 2.6.4-1            
login                   1.9-7              
m4                      1.4-1              
make                    3.80-1             
man                     1.5k-2             
mingw-runtime           3.2-1              
mktemp                  1.5-3              
ncurses                 5.3-4              
openssl                 0.9.7c-1           
openssl096              0.9.6j-1           
pcre                    4.5-1              
pcre-doc                4.5-1              
perl                    5.8.2-1            
perl-libwin32           0.191-1            
python                  2.3.3-1            
readline                4.3-5              
rxvt                    2.7.10-4           
sed                     4.0.8-1            
sh-utils                2.0.15-4           
swig                    1.3.19-1           
tar                     1.13.25-5          
tcltk                   20030901-1         
termcap                 20021106-2         
terminfo                5.3_20030726-1     
texinfo                 4.2-4              
textutils               2.0.21-1           
unzip                   5.50-5             
vim                     6.2.098-1          
w32api                  2.5-1              
wget                    1.9.1-1            
which                   1.5-2              
X-startup-scripts       1.0.1-1            
XFree86-base            4.3.0-4            
XFree86-bin             4.3.0-15           
XFree86-etc             4.3.0-9            
XFree86-fenc            4.3.0-1            
XFree86-fnts            4.3.0-1            
XFree86-lib             4.3.0-2            
XFree86-startup-scripts 4.3.0-1            
XFree86-xserv           4.3.0-55           
zip                     2.3-6              
zlib                    1.2.1-1            
zsh                     4.1.1-3            
Use -h to see help about each section
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 1106

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]