On Saturday, May 25, 2002, at 08:43 AM, Steve Spicklemire wrote:
> > I've somehow broken my perl. It always crashes with a memory exception in > S_regmatch(). I don't know what library supplies this function, or even > if it's a problem with the library, or a problem with some other perl > component. Any ideas? Is there a "perl-only" isntaller that would allow > me to fix this without having to reinstall the who shebang? Can I just > rebuild from source? > > thanks, > -steve > > [vh10-33:~] steve% gdb perl > GNU gdb 5.0-20001113 (Apple version gdb-203) (Wed Nov 7 16:28:57 GMT > 2001) (UI_OUT) > Copyright 2000 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-macos10". > Reading symbols for shared libraries ... done > (gdb) set args -V > (gdb) run > Starting program: /usr/bin/perl -V > [Switching to thread 1 (process 5295 thread 0x1603)] > > Program received signal EXC_BAD_ACCESS, Could not access memory. > 0x719df5d8 in S_regmatch () > (gdb) bt > #0 0x719df5d8 in S_regmatch () > #1 0x719ddb24 in S_regtry () > #2 0x719dce98 in Perl_regexec_flags () > #3 0x71995a6c in Perl_pp_subst () > #4 0x71990694 in Perl_runops_standard () > #5 0x7194411c in S_call_body () > #6 0x71943dc8 in perl_call_sv () > #7 0x719477f8 in S_call_list_body () > #8 0x7194737c in Perl_call_list () > #9 0x7196e60c in Perl_newATTRSUB () > #10 0x7196ac78 in Perl_utilize () > #11 0x71962ce8 in Perl_yyparse () > #12 0x71942df8 in S_parse_body () > #13 0x7194215c in perl_parse () > #14 0x00002664 in ?? () > #15 0x00002528 in ?? () > #16 0x00002358 in ?? () just for reference, this is what i get when i run: (gdb) run Starting program: /usr/bin/perl -V [Switching to thread 1 (process 327 thread 0x1603)] Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=darwin, osvers=5.3, archname=darwin-thread-multi uname='darwin localhost 5.3 darwin kernel version 5.3: thu jan 24 22:06:02 pst 2002; root:xnuxnu-201.19.obj~1release_ppc power macintosh powerpc ' config_args='-des -Dfirstmakefile=GNUmakefile -Dldflags=-flat_namespace -Dusethreads' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cc', ccflags ='-pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/usr/local/include', optimize='-O3', cppflags='-pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='Apple devkit-based CPP 6.02', 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, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags ='-flat_namespace -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-lm -lc perllibs=-lm -lc libc=/System/Library/Frameworks/System.framework/System, so=dylib, useshrplib=true, libperl=libperl.dylib Dynamic Linking: dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-flat_namespace -bundle -undefined suppress -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under darwin Compiled at 03/15/02 15:50:31 @INC: /System/Library/Perl/darwin-thread-multi /System/Library/Perl /Library/Perl/darwin-thread-multi /Library/Perl /Library/Perl /Network/Library/Perl/darwin-thread-multi /Network/Library/Perl /Network/Library/Perl . Program exited normally. (gdb) maybe you get a hint of some issue there. i have let CPAN upgrade me to perl 5.6.1 osx 10.1.4