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

perldoc segfaulting in XS_UNIVERSAL_VERSION

Thread Next
From:
Michael G Schwern
Date:
July 12, 2005 20:14
Subject:
perldoc segfaulting in XS_UNIVERSAL_VERSION
Message ID:
20050713031404.GA20481@windhund.schwern.org
$ /usr/local/perl/bleadperl/bin/perldoc5.9.3 -m Fcntl.pm
Bus error

++ungood

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 ()
(gdb) 


$ bleadperl -V
Summary of my perl5 (revision 5 version 9 subversion 3 patch 25129) configuration:
  Platform:
    osname=darwin, osvers=7.9.0, archname=darwin-thread-multi-2level
    uname='darwin windhund.schwern.org 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 -Dperladmin=schwern@pobox.com -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
  Compiler:
    cc='cc', ccflags ='-I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include',
    optimize='-Os',
    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
    gnulibc_version=''
  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): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
                        PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        DEVEL24148
  Built under darwin
  Compiled at Jul 12 2005 19:21:18
  %ENV:
    PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
  @INC:
    /sw/lib/perl5
    /sw/lib/perl5/darwin
    /usr/local/perl/bleadperl/lib/5.9.3/darwin-thread-multi-2level
    /usr/local/perl/bleadperl/lib/5.9.3
    /usr/local/perl/bleadperl/lib/site_perl/5.9.3/darwin-thread-multi-2level
    /usr/local/perl/bleadperl/lib/site_perl/5.9.3
    /usr/local/perl/bleadperl/lib/site_perl
    .


-- 
Michael G Schwern     schwern@pobox.com     http://www.pobox.com/~schwern
Don't try the paranormal until you know what's normal.
	-- "Lords and Ladies" by Terry Prachett

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About