develooper Front page | perl.perl5.porters | Postings from January 2001

[ID 20010123.041] Modification of Read-Only Value attempted in DB.pm

Thread Next
From:
tony
Date:
January 23, 2001 18:40
Subject:
[ID 20010123.041] Modification of Read-Only Value attempted in DB.pm
Message ID:
200101240238.f0O2cwh19985@mailer.petsmart.com
This is a bug report for perl from tony@petsmart.com,
generated with the help of perlbug 1.28 running under perl v5.6.0.


-----------------------------------------------------------------
[Please enter your report here]

Modification of a read-only value attempted at /usr/local/lib/perl5/5.6.0/DB.pm line 245.
Segmentation Fault (core dumped)


It seems that DB.pm is blindly doing a substitution on values in DB::args, which of course may be read-only.  Seems like the trivial solution would be to just make a copy of the scalar before modifying it.  However, I don't know what performance impacts, if any this would cause.

++t


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.6.0:

Configured by shy2 at Mon Jan 15 20:01:03 PST 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos spot 5.8 generic_108528-04 sun4u sparc sunw,ultra-80 '
    config_args='-Dcc=gcc -Dar=/usr/ccs/bin/ar'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
    cppflags='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.6.0:
    /usr/local/lib/perl5/5.6.0/sun4-solaris
    /usr/local/lib/perl5/5.6.0
    /usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.6.0
    /usr/local/lib/perl5/site_perl/5.005/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.6.0:
    HOME=/export/home/tony
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/opt/oracle/app/oracle/product/8.1.7/lib:/usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib
    LOGDIR (unset)
    PATH=.:/export/home/tony/bin:/usr/java1.3/bin:/opt/oracle/app/oracle/product/8.1.7/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/ucb:/usr/bin/nsr:/bin/nsr:/usr/sbin/nsr:/sbin/nsr
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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