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

Environment becomes Whitespace when running Alien::SDL's Build.PL inside cpan2dist #10209

Closed
p5pRT opened this issue Mar 3, 2010 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 3, 2010

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

Searchable as RT73252$

@p5pRT
Copy link
Author

p5pRT commented Mar 3, 2010

From @shlomif

This is a bug report for perl from shlomif@​iglu.org.il,
generated with the help of perlbug 1.39 running under perl 5.10.1.

1. As root run the following command​:

<<<
cpan2dist --verbose --format=CPANPLUS​::Dist​::Build Alien​::SDL

Wait for the prompt to appear.

2. Run the following command as root in a different console​:

<<<
[root@​telaviv1 ~]# hexdump < /proc/"1
2"/environ
0000000 2020 2020 2020 2020 2020 2020 2020 2020
*
0000ca0 0020
0000ca2

What this command does is dump the /proc//environ of the only child process
of the cpan2dist process (the perl running the Build.PL). As one can see it is
full of whitespace instead of the real values. Running the Alien​::SDL Build.PL
from the command line works fine.

I've tried it on both Mandriva Cooker and inside my Debian Testing VirtualBox
VM and was able to reproduce it in both cases.


Flags​:
  category=core
  severity=high


Site configuration information for perl 5.10.1​:

Configured by Mandriva at Thu Dec 17 05​:38​:07 EST 2009.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration​:
 
  Platform​:
  osname=linux, osvers=2.6.22.12-server-1mdv, archname=i386-linux-thread-multi
  uname='linux n4.mandriva.com 2.6.22.12-server-1mdv #1 smp tue nov 20 09​:35​:09 est 2007 i686 intel(r) xeon(tm) cpu 2.80ghz gnulinux '
  config_args='-des -Dinc_version_list=5.10.0 5.10.0/i386-linux-thread-multi 5.8.8 5.8.7 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0 -Darchname=i386-linux -Dcc=i586-mandriva-linux-gnu-gcc -Doptimize=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -DDEBUGGING=-g -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dsitebin=/usr/local/bin -Dsiteman1dir=/usr/local/share/man/man1 -Dsiteman3dir=/usr/local/share/man/man3 -Dman3ext=3pm -Dcf_by=Mandriva -Dmyhostname=localhost -Dperladmin=root@​localhost -Dcf_email=root@​localhost -Dd_dosuid -Ud_csh -Duseshrplib -Duseithreads -Di_db -Di_ndbm -Di_gdbm'
  hint=recommended, useposix=true, d_sigaction=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='i586-mandriva-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables',
  cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
  ccversion='', gccversion='4.4.2', 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='i586-mandriva-linux-gnu-gcc', ldflags =' -fstack-protector -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib
  libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
  perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
  libc=/lib/libc-2.11.so, so=so, useshrplib=true, libperl=libperl.so
  gnulibc_version='2.11'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.1/i386-linux-thread-multi/CORE'
  cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib'

Locally applied patches​:
  Mandriva Linux patches


@​INC for perl 5.10.1​:
  /home/shlomi/apps/perl/local-lib/lib/perl5/i386-linux-thread-multi
  /home/shlomi/apps/perl/local-lib/lib/perl5
  /home/shlomi/apps/perl/local-lib/lib/perl5/i386-linux-thread-multi
  /home/shlomi/apps/perl/local-lib/lib/perl5/i386-linux-thread-multi
  /home/shlomi/apps/perl/local-lib/lib/perl5
  /home/shlomi/apps/perl/local-lib/lib/perl5/i386-linux-thread-multi
  /home/shlomi/apps/perl/modules/lib/perl5/site_perl/5.10.1/i386-linux-thread-multi
  /home/shlomi/apps/perl/modules/lib/perl5/site_perl/5.10.1
  /home/shlomi/apps/perl/modules/lib/site_perl/5.10.1
  /home/shlomi/apps/perl/modules/lib/perl5/5.10.1/i386-linux-thread-multi
  /home/shlomi/apps/perl/modules/lib/perl5/5.10.1
  /usr/lib/perl5/site_perl/5.10.1/i386-linux-thread-multi
  /usr/lib/perl5/site_perl/5.10.1
  /usr/lib/perl5/vendor_perl/5.10.1/i386-linux-thread-multi
  /usr/lib/perl5/vendor_perl/5.10.1
  /usr/lib/perl5/5.10.1/i386-linux-thread-multi
  /usr/lib/perl5/5.10.1
  /usr/lib/perl5/site_perl/5.10.0
  /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
  /usr/lib/perl5/site_perl/5.8.8
  /usr/lib/perl5/site_perl
  /usr/lib/perl5/vendor_perl/5.10.0
  /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
  /usr/lib/perl5/vendor_perl/5.8.8
  /usr/lib/perl5/vendor_perl
  .


Environment for perl 5.10.1​:
  HOME=/home/shlomi
  LANG=en_GB.UTF-8
  LANGUAGE=en_GB​:en
  LC_ADDRESS=en_US.UTF-8
  LC_COLLATE=en_US.UTF-8
  LC_CTYPE=en_US.UTF-8
  LC_IDENTIFICATION=en_GB.UTF-8
  LC_MEASUREMENT=en_GB.UTF-8
  LC_MESSAGES=en_US.UTF-8
  LC_MONETARY=en_US.UTF-8
  LC_NAME=en_GB.UTF-8
  LC_NUMERIC=en_GB.UTF-8
  LC_PAPER=en_US.UTF-8
  LC_SOURCED=1
  LC_TELEPHONE=en_US.UTF-8
  LC_TIME=en_GB.UTF-8
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/home/shlomi/apps/perl/local-lib/bin​:/home/shlomi/apps/apache-maven/apache-maven-2.1.0//bin​:/home/shlomi/Download/unpack/graphics/fop/fop-0.93​:/home/shlomi/apps/perl/modules/local/bin​:/home/shlomi/apps/perl/modules/bin​:/home/shlomi/apps/latemp/bin​:/home/shlomi/apps/file/gringotts/bin​:/home/shlomi/apps/gimageview/bin​:/home/shlomi/apps/test/quadpres/bin​:/home/shlomi/apps/docbook-builder/local/bin​:/home/shlomi/apps/vim/bin​:/home/shlomi/bin​:/home/shlomi/apps/perl/local-lib/bin​:/home/shlomi/apps/apache-maven/apache-maven-2.1.0//bin​:/home/shlomi/Download/unpack/file/docbook/docbook-xsl-snapshot/tools/bin​:/usr/local/bin​:/bin​:/usr/bin​:/usr/games​:/usr/lib/qt4/bin​:/usr/lib/ssh
  PERL5LIB=/home/shlomi/apps/perl/local-lib/lib/perl5​:/home/shlomi/apps/perl/local-lib/lib/perl5/i386-linux-thread-multi​:/home/shlomi/apps/perl/local-lib/lib/perl5​:/home/shlomi/apps/perl/local-lib/lib/perl5/i386-linux-thread-multi​:/home/shlomi/apps/perl/modules/lib/perl5/site_perl/5.10.1​:/home/shlomi/apps/perl/modules/lib/site_perl/5.10.1​:/home/shlomi/apps/perl/modules/lib/perl5/5.10.1
  PERL_AUTOINSTALL=--alldeps
  PERL_BADLANG (unset)
  PERL_MM_OPT=INSTALL_BASE=/home/shlomi/apps/perl/local-lib
  SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Mar 3, 2010

From @shlomif

Seems like my perlbug shell script's here document messed up the hexdump
command. Here it is​:

<<<
[root@​telaviv1 ~]# hexdump < /proc/"$(pgrep -P "$(pgrep
cpan2dist)")"/environ
0000000 2020 2020 2020 2020 2020 2020 2020 2020
*
0000ca0 0020
0000ca2

@p5pRT
Copy link
Author

p5pRT commented Mar 3, 2010

@shlomif - Status changed from 'new' to 'open'

@jkeenan
Copy link
Contributor

jkeenan commented Feb 22, 2020

cpan2dist is part of the CPANPLUS distribution on CPAN. Way back when, CPANPLUS was distributed with the Perl 5 core distribution, but that is no longer the case. If this issue is still a problem, please file a bug ticket at https://rt.cpan.org/Public/Dist/Display.html?Name=CPANPLUS.

Closing this ticket.

Thank you very much.
Jim Keenan

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