develooper Front page | perl.perl5.porters | Postings from February 2003

[perl #20731] Can't set $0 with perl-5.8.0 on linux

Thread Previous | Thread Next
From:
perlbug-followup
Date:
February 5, 2003 10:22
Subject:
[perl #20731] Can't set $0 with perl-5.8.0 on linux
Message ID:
rt-20731-50355.7.11953959874293@bugs6.perl.org
# New Ticket Created by  jean-luc@picard.franken.de 
# Please include the string:  [perl #20731]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=20731 >



This is a bug report for perl from jean-luc@picard.franken.de,
generated with the help of perlbug 1.34 running under perl v5.8.0.


-----------------------------------------------------------------
[Please enter your report here]
I can't assign a new value to $0 with perl-5.8.0 on linux:

/tmp> cat test.pl
#!/usr/bin/perl -w

use strict;

sub BAR() {
    $0="FOO [foobar]";
    sleep(100);
}

BAR();

/tmp> /tmp/perl58/bin/perl -w /tmp/test.pl &
/tmp> ps auxww
[...]
jean-luc 27541  0.6  0.3  4376 1164 pts/17   S    18:33   0:00 /tmp/perl58/bin/perl -w /tmp/test.pl
/tmp> /usr/bin/perl -w /tmp/test.pl &
/tmp> ps auxww
[...]
jean-luc 27549  1.0  0.3  4100 1076 pts/17   S    18:34   0:00 FOO [foobar]
/tmp> uname -a
Linux picard 2.4.18 #10 Fre Jan 3 16:48:32 CET 2003 i686 unknown unknown GNU/Linux

Is there any reason why this is the case?
http://dev.perl.org/perl5/news/2002/07/18/580ann/perldelta.html
only states that "Setting $0 now works" for "All BSDs", not that
it's now broken for linux...

Some misplaced "#ifdef" or something?


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

Configured by jean-luc at Wed Feb  5 17:48:12 CET 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.18, archname=i686-linux
    uname='linux picard 2.4.18 #10 fre jan 3 16:48:32 cet 2003 i686 unknown unknown gnulinux '
    config_args='prefix=/tmp/perl58'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldb -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.3.1.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.1'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.0:
    /tmp/perl58/lib/5.8.0/i686-linux
    /tmp/perl58/lib/5.8.0
    /tmp/perl58/lib/site_perl/5.8.0/i686-linux
    /tmp/perl58/lib/site_perl/5.8.0
    /tmp/perl58/lib/site_perl
    .

---
Environment for perl v5.8.0:
    HOME=/home/jean-luc
    LANG=de_DE
    LANGUAGE (unset)
    LC_COLLATE=C
    LC_MESSAGES=en_US
    LD_LIBRARY_PATH=/home/jean-luc/lib:/home/oracle/OraHome1/lib/
    LOGDIR (unset)
    PATH=/usr/lib/compilercache:/home/jean-luc/Software/JDK/j2sdk1.4.1//bin:/home/jean-luc/bin:/usr/local/bin/X11:/usr/local/bin:/bin:/usr/X11R6/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/local/bin:/usr/games:/usr/lib/mutt:/home/oracle/OraHome1/bin:/usr/lib/ICAClient:/home/jean-luc/TO/Software/SAP/610/opt/PlatinGUI/bin/
    PERL_BADLANG (unset)
    SHELL=/usr/bin/zsh


Thread Previous | 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