Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bangline of /path/perl -w -CSD crashes writing DBM file #7772

Open
p5pRT opened this issue Jan 28, 2005 · 3 comments
Open

Bangline of /path/perl -w -CSD crashes writing DBM file #7772

p5pRT opened this issue Jan 28, 2005 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 28, 2005

Migrated from rt.perl.org#33965 (status was 'open')

Searchable as RT33965$

@p5pRT
Copy link
Author

p5pRT commented Jan 28, 2005

From groleau+wes@freeshell.org

Created by groleau+news@freeshell.org

I wrote a program to split up a long text file and store pieces
in a DBM hash. ONE of the pieces crashed the program with
sometimes bus error, sometimes fault.

I could prevent/restore the crash by adding and removing lines
from the file, but neither the content of the lines, nor the
number of lines, nor the total size seemed to be the factor.

Finally, I moved the whole mess to a Net-BSD/Alpha machine and
instead of a crash got a message showing that perl on that
machine thought I was trying to use an unavailable debugger.

Then, another version of the program did not crash, and 'diff'
showed that the one that _worked_ had an extra space in the bang line​:

#/path/perl -w -CSD works but
#/path/perl -w -CSD does not.

This was reproducible on both systems. A tarball containing the
program,
the input file, and some notes, including 'uname -a' and 'perl -v'
from the other system is at http​://groleau.freeshell.org/perl-bug.tar.gz

Perl Info

Flags:
     category=library
     severity=low

Site configuration information for perl v5.8.1:

Configured by root at Fri Sep 12 19:46:46 PDT 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1 RC3)  
configuration:
   Platform:
     osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level
     uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25  
16:58:41 pdt 2003;  
root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh  
powerpc '
     config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe   
-Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef 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 ='-g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
     optimize='-Os',
     cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
     ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build  
1495)', 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='MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-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=true,  
libperl=libperl.dylib
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup  
-L/usr/local/lib'

Locally applied patches:
     RC3


@INC for perl v5.8.1:
     /System/Library/Perl/5.8.1/darwin-thread-multi-2level
     /System/Library/Perl/5.8.1
     /Library/Perl/5.8.1/darwin-thread-multi-2level
     /Library/Perl/5.8.1
     /Library/Perl
     /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
     /Network/Library/Perl/5.8.1
     /Network/Library/Perl
     .


Environment for perl v5.8.1:
     DYLD_LIBRARY_PATH (unset)
     HOME=/Volumes/Parents/wgroleau
     LANG (unset)
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
      
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/ 
local/bin:/usr/X11R6/bin:/Volumes/Parents/wgroleau/bin
     PERL_BADLANG (unset)
     SHELL=/bin/bash

-- 
Wes Groleau
Can we afford to be relevant?
http://www.cetesol.org/stevick.html


@p5pRT
Copy link
Author

p5pRT commented Feb 25, 2006

From guest@guest.guest.xxxxxxxx

Although bug 33965 is labeled OS Darwin, note that the description confirms that
it has been verified as also a problem in a BSD system.

@p5pRT
Copy link
Author

p5pRT commented Feb 25, 2006

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants