develooper Front page | perl.perl5.porters | Postings from July 2005

perldoc segfaulting in XS_UNIVERSAL_VERSION

Thread Next
Michael G Schwern
July 12, 2005 20:14
perldoc segfaulting in XS_UNIVERSAL_VERSION
Message ID:
$ /usr/local/perl/bleadperl/bin/perldoc5.9.3 -m
Bus error


0 /usr/local/perl/bleadperl/bin$ gdb ./perl5.9.3
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries .. done
(gdb) set args perldoc5.9.3 Fcntl
(gdb) run
Starting program: /usr/local/perl/bleadperl/bin/perl5.9.3 perldoc5.9.3 Fcntl
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x00041548 in XS_UNIVERSAL_VERSION ()
(gdb) bt
#0  0x00041548 in XS_UNIVERSAL_VERSION ()
#1  0x00057e58 in Perl_pp_entersub ()
#2  0x000d1e5c in Perl_runops_standard ()
#3  0x0001e394 in S_run_body ()
#4  0x0001dff4 in perl_run ()
#5  0x00002d60 in main ()
#6  0x00002780 in _start (argc=3, argv=0x0, envp=0xec09c) at /SourceCache/Csu/Csu-47/crt.c:267
#7  0x8fe1a278 in __dyld__dyld_start ()

$ bleadperl -V
Summary of my perl5 (revision 5 version 9 subversion 3 patch 25129) configuration:
    osname=darwin, osvers=7.9.0, archname=darwin-thread-multi-2level
    uname='darwin 7.9.0 darwin kernel version 7.9.0: wed mar 30 20:11:17 pst 2005; root:xnuxnu-517.12.7.obj~1release_ppc power macintosh powerpc '
    config_args='-des -Dprefix=/usr/local/perl/bleadperl -Dccflags=-I/sw/include -Dldflags=-L/sw/lib -Uinstallusrbinperl -Dusedevel -Duseithreads'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='cc', ccflags ='-I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include',
    cppflags='-no-cpp-precomp -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1671)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/sw/lib -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-L/sw/lib -bundle -undefined dynamic_lookup -L/usr/local/lib'

Characteristics of this binary (from libperl): 
  Locally applied patches:
  Built under darwin
  Compiled at Jul 12 2005 19:21:18

Michael G Schwern
Don't try the paranormal until you know what's normal.
	-- "Lords and Ladies" by Terry Prachett

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About