Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.97k stars 560 forks source link

make test errors question #6196

Closed p5pRT closed 12 years ago

p5pRT commented 21 years ago

Migrated from rt.perl.org#19690 (status was 'rejected')

Searchable as RT19690$

p5pRT commented 21 years ago

From warrend@tektronix.com

Created by warrend@tektronix.com

I am building perl 5.8 on solaris 2.5.1 with gcc-3.2.1 with gnu-as and gnu-ld.

Everything bulds file. I then run the make test and get a few errors I don't see when the code is built for solaris 8 with the same version of compiler

These are the tests that fail.

../ext/DB_File/t/db-btree..............dubious
  Test returned status 0 (wstat 11\, 0xb) ../ext/DB_File/t/db-hash...............dubious
  Test returned status 0 (wstat 11\, 0xb) ../ext/DB_File/t/db-recno..............dubious
  Test returned status 0 (wstat 11\, 0xb) _____________________________________________________________________________

../lib/Memoize/t/errors................dubious
  Test returned status 0 (wstat 11\, 0xb) DIED. FAILED tests 4-11   Failed 8/11 tests\, 27.27% okay ../lib/Memoize/t/tie...................dubious
  Test returned status 0 (wstat 11\, 0xb)

_____________________________________________________________________________ This is what a truss gives on the above three DB tests. cd t truss -f ./perl -I../lib .././ext/DB_File/t/db-hash.t

22583​: read(4\, 0x0004380C\, 8192) = 0 22583​: lseek(4\, 0\, SEEK_CUR) = 5122 22583​: close(4) = 0 22583​: stat("../lib/auto/Fcntl/Fcntl.so"\, 0xEF730EA8) = 0 22583​: stat("../lib/auto/Fcntl/Fcntl.bs"\, 0xEF730EA8) = 0 22583​: open("../lib/auto/Fcntl/Fcntl.so"\, O_RDONLY) = 4 22583​: fstat(4\, 0xEFFFE6C4) = 0 22583​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF760000 22583​: mmap(0x00000000\, 81920\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF4C0000 22583​: munmap(0xEF4C4000\, 57344) = 0 22583​: mmap(0xEF4D2000\, 6484\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 4\, 8192) = 0xEF4D2000 22583​: open("/dev/zero"\, O_RDONLY) = 5 22583​: mmap(0x00000000\, 8192\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE\, 5\, 0) = 0xEF4B0000 22583​: close(4) = 0 22583​: mprotect(0xEF4C0000\, 13586\, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 22583​: mprotect(0xEF4C0000\, 13586\, PROT_READ|PROT_EXEC) = 0 22583​: close(5) = 0 22583​: munmap(0xEF760000\, 8192) = 0 22583​: brk(0x000C7800) = 0 22583​: brk(0x000C8000) = 0 22583​: brk(0x000CA000) = 0 22583​: brk(0x000CA800) = 0 22583​: brk(0x000CB000) = 0 22583​: brk(0x000CB800) = 0 22583​: brk(0x000CC000) = 0 22583​: brk(0x000CC800) = 0 22583​: brk(0x000CD000) = 0 22583​: brk(0x000CD800) = 0 22583​: brk(0x000CE000) = 0 22583​: brk(0x000CE800) = 0 22583​: stat("../lib/auto/DB_File/DB_File.so"\, 0xEF730EA8) = 0 22583​: stat("../lib/auto/DB_File/DB_File.bs"\, 0xEF730EA8) = 0 22583​: open("../lib/auto/DB_File/DB_File.so"\, O_RDONLY) = 4 22583​: fstat(4\, 0xEFFFE6C4) = 0 22583​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF760000 22583​: mmap(0x00000000\, 483328\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF380000 22583​: munmap(0xEF3E4000\, 65536) = 0 22583​: mmap(0xEF3F4000\, 3456\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 4\, 409600) = 0xEF3F4000 22583​: close(4) = 0 22583​: Incurred fault #6\, FLTBOUNDS %pc = 0xEF7D7500 22583​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810 22583​: Received signal #11\, SIGSEGV [default] 22583​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810

This is for the Memoize tests

25553​: stat("../Tie/Hash.pmc"\, 0xEFFFECB8) Err#2 ENOENT 25553​: open("../Tie/Hash.pm"\, O_RDONLY) Err#2 ENOENT 25553​: stat("../lib/Tie/Hash.pmc"\, 0xEFFFECB8) Err#2 ENOENT 25553​: open("../lib/Tie/Hash.pm"\, O_RDONLY) = 3 25553​: brk(0x000FD800) = 0 25553​: fstat(3\, 0xEFFFC3D8) = 0 25553​: ioctl(3\, TCGETA\, 0xEFFFC364) Err#25 ENOTTY 25553​: read(3\, " p a c k a g e T i e :"..\, 8192) = 6877 25553​: getcontext(0xEFFFE960) 25553​: getcontext(0xEFFFE7D0) 25553​: getcontext(0xEFFFE960) 25553​: getcontext(0xEFFFE7D0) 25553​: brk(0x000FE000) = 0 25553​: brk(0x000FE800) = 0 25553​: brk(0x000FF000) = 0 25553​: brk(0x000FF800) = 0 25553​: brk(0x00100000) = 0 25553​: brk(0x00100800) = 0 25553​: brk(0x00101000) = 0 25553​: brk(0x00101800) = 0 25553​: brk(0x00102000) = 0 25553​: brk(0x00102800) = 0 25553​: brk(0x00103000) = 0 25553​: brk(0x00103800) = 0 25553​: brk(0x00104000) = 0 25553​: read(3\, 0x0003980C\, 8192) = 0 25553​: lseek(3\, 0\, SEEK_CUR) = 6877 25553​: close(3) = 0 25553​: brk(0x00104800) = 0 25553​: brk(0x00105000) = 0 25553​: brk(0x00105800) = 0 25553​: stat("../lib/auto/DB_File/DB_File.so"\, 0xEF730EA8) = 0 25553​: stat("../lib/auto/DB_File/DB_File.bs"\, 0xEF730EA8) = 0 25553​: open("../lib/auto/DB_File/DB_File.so"\, O_RDONLY) = 3 25553​: fstat(3\, 0xEFFFEB8C) = 0 25553​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 3\, 0) = 0xEF760000 25553​: mmap(0x00000000\, 483328\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 3\, 0) = 0xEF380000 25553​: munmap(0xEF3E4000\, 65536) = 0 25553​: mmap(0xEF3F4000\, 3456\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 3\, 409600) = 0xEF3F4000 25553​: close(3) = 0 25553​: Incurred fault #6\, FLTBOUNDS %pc = 0xEF7D7500 25553​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810 25553​: Received signal #11\, SIGSEGV [default] 25553​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810 25553​: *** process killed ***

_____________________________________________________________________________ Looks like it is in the same area for both.

I looked back at my 5.6 build and the ext/DB tests failed there also. The Memoize tests seem to be new.

Is there any known problem in these areas?

Perl Info ``` Flags: category=install severity=low Site configuration information for perl v5.8.0: Configured by warrend at Thu Jan 2 15:52:17 PST 2003. Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=solaris, osvers=2.5.1, archname=sun4-solaris uname='sunos darwin 5.5.1 generic_103640-36 sun4u sparc ' config_args='' 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=y, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing ', optimize='-O', cppflags='-fno-strict-aliasing' ccversion='', gccversion='3.2.1', gccosandvers='solaris2.5.1' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' ' libpth=/usr/lib /usr/ccs/lib /proj/wdt/sun5.1/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E -R /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE' cccdlflags='-fPIC', lddlflags=' -Wl,-E -G' Locally applied patches: @INC for perl v5.8.0: /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0/sun4-solaris /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0 /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/site_perl/5.8.0/sun4-solaris /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/site_perl/5.8.0 /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/site_perl . Environment for perl v5.8.0: HOME=/login/warrend LANG (unset) LANGUAGE (unset) LD_LIBRARY_PATH=/stdapps/valid/tools/lib:/tools/eda/ldv/bin:/proj/eda/disk4/ldv31baseline/tools/inca/lib:/proj/eda/disk4/ldv31baseline/tools/lib LOGDIR (unset) PATH=/stdapps/lsf/5.5.1/bin:/stdapps/lsf/local/bin:.:/proj/wdt/bin:/proj/wdt/sun5.1/bin:/proj/wdt/X.V11R6/sun5.1/bin:/login/warrend:/login/warrend/bin:/login/warrend/bin/sun5.1:/login/warrend/acroread506/acroread/bin:/usr/ucb:/usr/openwin/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/proj/dpl/harry/bin:/stdapps/valid/local/bin:/stdapps/valid/tools/bin:/stdapps/valid/tektools/bin:/stdapps/valid/tools/pcb/bin:/stdapps/valid/tools/dfII/bin:/stdapps/valid/tools/fet/bin:/tools/eda/ldv/LSF:/tools/eda/ldv/bin:/proj/eda/disk4/ldv31baseline/tools/bin:/proj/eda/disk4/ldv31baseline/tools/inca/bin:/proj/eda/disk4/ldv31baseline/tools/dfII/bin:/proj/eda/annex2/debussy_5.2.14/bin:/proj/eda/disk1/vim61/bin:/stdapps/cms/bin PERL_BADLANG (unset) SHELL=/bin/tcsh ```
p5pRT commented 21 years ago

From warren.dodge@tektronix.com

I re-compiled without shared libraries and all the errors went away.

Date​: 3 Jan 2003 17​:58​:44 -0000 Managed-BY​: RT 2.0.14 (http​://bestpractical.com/rt/) X-Mailer​: Perl5 Mail​::Internet v1.53 Sender​: \rt@​x1\.develooper\.com RT-Ticket​: perl #19690 Precedence​: bulk Reply-To​: perlbug-followup@​perl.org X-RT-Loop-Prevention​: perl From​: perlbug-followup@​perl.org RT-Originator​: warrend@​tektronix.com Content-Length​: 12689

Greetings\,

This message has been automatically generated in response to the creation of a trouble ticket regarding​: "make test errors question".

There is no need to reply to this message right now. Your ticket has been assigned an ID of [perl #19690].

Please include the string​:

\[perl \#19690\]

in the subject line of all future correspondence about this issue. To do so\, you may reply to this message (please delete unnecessary quotes)

Thank you\, perlbug-followup@​perl.org

------------------------------------------------------------------------- Return-Path​: \warrend@​darwin\.cse\.tek\.com Delivered-To​: rt-perl5@​x1.develooper.com Received​: (qmail 1634 invoked by alias); 3 Jan 2003 17​:58​:41 -0000 Delivered-To​: bugs-perl5@​netlabs.develooper.com Received​: (qmail 1625 invoked by uid 424); 3 Jan 2003 17​:58​:40 -0000 Received​: from onion.valueclick.com (HELO onion.perl.org) (64.70.54.95) by x1.develooper.com (qpsmtpd/0.20) with SMTP; 2003-01-03 17​:58​:38Z Received​: (qmail 61133 invoked by uid 1005); 3 Jan 2003 17​:58​:38 -0000 Delivered-To​: perlmail-perlbug@​perl.org Received​: (qmail 61130 invoked by uid 76); 3 Jan 2003 17​:58​:37 -0000 Received​: from fw1-bv.tek.com (HELO fw1-bv.tek.com) (192.65.40.16) by onion.perl.org (qpsmtpd/0.20) with SMTP; 2003-01-03 17​:58​:37Z Received​: from mdhost.cse.tek.com (mdhost.cse.tek.com [128.181.117.166]) by fw1-bv.tek.com with ESMTP id h03Hw9e3012834 for \perlbug@​perl\.org; Fri\, 3 Jan 2003 09​:58​:09 -0800 (PST) Received​: from darwin.cse.tek.com (darwin.cse.tek.com [128.181.116.73]) by mdhost.cse.tek.com (8.12.3/8.12.3) with ESMTP id h03Hw8Dp017974 for \perlbug@​perl\.org; Fri\, 3 Jan 2003 09​:58​:09 -0800 (PST) Received​: by darwin.cse.tek.com (8.12.3/8.12.3) id h03Hw8DR025581; Fri\, 3 Jan 2003 09​:58​:08 -0800 (PST) Date​: Fri\, 3 Jan 2003 09​:58​:08 -0800 (PST) From​: Warren L Dodge \warrend@​mdhost\.cse\.tek\.com To​: perlbug@​perl.org Subject​: make test errors question Reply-To​: warrend@​tektronix.com Message-Id​: \5\.8\.0\_21029\_1041614334@​darwin X-SMTPD​: qpsmtpd/0.20\, http​://develooper.com/code/qpsmtpd/ X-SMTPD​: qpsmtpd/0.20\, http​://develooper.com/code/qpsmtpd/ X-Virus-Checked​: Checked X-Spam-Check-BY​: x1.develooper.com X-Spam-Status​: No\, hits=-2.9 required=7.0 tests=CARRIAGE_RETURNS\,GAPPY_TEXT\,PERLBUG_CONF\,SPAM_PHRASE_00_01\,SUPERLONG_LINE version=2.43

This is a bug report for perl from warrend@​tektronix.com\, generated with the help of perlbug 1.34 running under perl v5.8.0.

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

I am building perl 5.8 on solaris 2.5.1 with gcc-3.2.1 with gnu-as and gnu-ld.

Everything bulds file. I then run the make test and get a few errors I don't see when the code is built for solaris 8 with the same version of compiler

These are the tests that fail.

../ext/DB_File/t/db-btree..............dubious
Test returned status 0 (wstat 11\, 0xb) ../ext/DB_File/t/db-hash...............dubious
Test returned status 0 (wstat 11\, 0xb) ../ext/DB_File/t/db-recno..............dubious
Test returned status 0 (wstat 11\, 0xb) _____________________________________________________________________________

../lib/Memoize/t/errors................dubious
Test returned status 0 (wstat 11\, 0xb) DIED. FAILED tests 4-11 Failed 8/11 tests\, 27.27% okay ../lib/Memoize/t/tie...................dubious
Test returned status 0 (wstat 11\, 0xb)

_____________________________________________________________________________ This is what a truss gives on the above three DB tests. cd t truss -f ./perl -I../lib .././ext/DB_File/t/db-hash.t

22583​: read(4\, 0x0004380C\, 8192) = 0 22583​: lseek(4\, 0\, SEEK_CUR) = 5122 22583​: close(4) = 0 22583​: stat("../lib/auto/Fcntl/Fcntl.so"\, 0xEF730EA8) = 0 22583​: stat("../lib/auto/Fcntl/Fcntl.bs"\, 0xEF730EA8) = 0 22583​: open("../lib/auto/Fcntl/Fcntl.so"\, O_RDONLY) = 4 22583​: fstat(4\, 0xEFFFE6C4) = 0 22583​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF760000 22583​: mmap(0x00000000\, 81920\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF4C0000 22583​: munmap(0xEF4C4000\, 57344) = 0 22583​: mmap(0xEF4D2000\, 6484\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 4\, 8192) = 0xEF4D2000 22583​: open("/dev/zero"\, O_RDONLY) = 5 22583​: mmap(0x00000000\, 8192\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE\, 5\, 0) = 0xEF4B0000 22583​: close(4) = 0 22583​: mprotect(0xEF4C0000\, 13586\, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 22583​: mprotect(0xEF4C0000\, 13586\, PROT_READ|PROT_EXEC) = 0 22583​: close(5) = 0 22583​: munmap(0xEF760000\, 8192) = 0 22583​: brk(0x000C7800) = 0 22583​: brk(0x000C8000) = 0 22583​: brk(0x000CA000) = 0 22583​: brk(0x000CA800) = 0 22583​: brk(0x000CB000) = 0 22583​: brk(0x000CB800) = 0 22583​: brk(0x000CC000) = 0 22583​: brk(0x000CC800) = 0 22583​: brk(0x000CD000) = 0 22583​: brk(0x000CD800) = 0 22583​: brk(0x000CE000) = 0 22583​: brk(0x000CE800) = 0 22583​: stat("../lib/auto/DB_File/DB_File.so"\, 0xEF730EA8) = 0 22583​: stat("../lib/auto/DB_File/DB_File.bs"\, 0xEF730EA8) = 0 22583​: open("../lib/auto/DB_File/DB_File.so"\, O_RDONLY) = 4 22583​: fstat(4\, 0xEFFFE6C4) = 0 22583​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF760000 22583​: mmap(0x00000000\, 483328\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF380000 22583​: munmap(0xEF3E4000\, 65536) = 0 22583​: mmap(0xEF3F4000\, 3456\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 4\, 409600) = 0xEF3F4000 22583​: close(4) = 0 22583​: Incurred fault #6\, FLTBOUNDS %pc = 0xEF7D7500 22583​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810 22583​: Received signal #11\, SIGSEGV [default] 22583​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810

This is for the Memoize tests

25553​: stat("../Tie/Hash.pmc"\, 0xEFFFECB8) Err#2 ENOENT 25553​: open("../Tie/Hash.pm"\, O_RDONLY) Err#2 ENOENT 25553​: stat("../lib/Tie/Hash.pmc"\, 0xEFFFECB8) Err#2 ENOENT 25553​: open("../lib/Tie/Hash.pm"\, O_RDONLY) = 3 25553​: brk(0x000FD800) = 0 25553​: fstat(3\, 0xEFFFC3D8) = 0 25553​: ioctl(3\, TCGETA\, 0xEFFFC364) Err#25 ENOTTY 25553​: read(3\, " p a c k a g e T i e :"..\, 8192) = 6877 25553​: getcontext(0xEFFFE960) 25553​: getcontext(0xEFFFE7D0) 25553​: getcontext(0xEFFFE960) 25553​: getcontext(0xEFFFE7D0) 25553​: brk(0x000FE000) = 0 25553​: brk(0x000FE800) = 0 25553​: brk(0x000FF000) = 0 25553​: brk(0x000FF800) = 0 25553​: brk(0x00100000) = 0 25553​: brk(0x00100800) = 0 25553​: brk(0x00101000) = 0 25553​: brk(0x00101800) = 0 25553​: brk(0x00102000) = 0 25553​: brk(0x00102800) = 0 25553​: brk(0x00103000) = 0 25553​: brk(0x00103800) = 0 25553​: brk(0x00104000) = 0 25553​: read(3\, 0x0003980C\, 8192) = 0 25553​: lseek(3\, 0\, SEEK_CUR) = 6877 25553​: close(3) = 0 25553​: brk(0x00104800) = 0 25553​: brk(0x00105000) = 0 25553​: brk(0x00105800) = 0 25553​: stat("../lib/auto/DB_File/DB_File.so"\, 0xEF730EA8) = 0 25553​: stat("../lib/auto/DB_File/DB_File.bs"\, 0xEF730EA8) = 0 25553​: open("../lib/auto/DB_File/DB_File.so"\, O_RDONLY) = 3 25553​: fstat(3\, 0xEFFFEB8C) = 0 25553​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 3\, 0) = 0xEF760000 25553​: mmap(0x00000000\, 483328\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 3\, 0) = 0xEF380000 25553​: munmap(0xEF3E4000\, 65536) = 0 25553​: mmap(0xEF3F4000\, 3456\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 3\, 409600) = 0xEF3F4000 25553​: close(3) = 0 25553​: Incurred fault #6\, FLTBOUNDS %pc = 0xEF7D7500 25553​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810 25553​: Received signal #11\, SIGSEGV [default] 25553​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF3DF810 25553​: *** process killed ***

_____________________________________________________________________________ Looks like it is in the same area for both.

I looked back at my 5.6 build and the ext/DB tests failed there also. The Memoize tests seem to be new.

Is there any known problem in these areas?

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

Configured by warrend at Thu Jan 2 15​:52​:17 PST 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration​: Platform​: osname=solaris\, osvers=2.5.1\, archname=sun4-solaris uname='sunos darwin 5.5.1 generic_103640-36 sun4u sparc ' config_args='' 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=y\, bincompat5005=undef Compiler​: cc='gcc'\, ccflags ='-fno-strict-aliasing '\, optimize='-O'\, cppflags='-fno-strict-aliasing' ccversion=''\, gccversion='3.2.1'\, gccosandvers='solaris2.5.1' intsize=4\, longsize=4\, ptrsize=4\, doublesize=8\, byteorder=4321 d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=16 ivtype='long'\, ivsize=4\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=4 alignbytes=8\, prototype=define Linker and Libraries​: ld='gcc'\, ldflags =' ' libpth=/usr/lib /usr/ccs/lib /proj/wdt/sun5.1/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so\, so=so\, useshrplib=true\, libperl=libperl.so gnulibc_version='' Dynamic Linking​: dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags=' -Wl\,-E -R /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE' cccdlflags='-fPIC'\, lddlflags=' -Wl\,-E -G'

Locally applied patches​:

--- @​INC for perl v5.8.0​: /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0/sun4-solaris /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0 /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/site_perl/5.8.0/sun4-solaris /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/site_perl/5.8.0 /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/site_perl .

--- Environment for perl v5.8.0​: HOME=/login/warrend LANG (unset) LANGUAGE (unset) LD_LIBRARY_PATH=/stdapps/valid/tools/lib​:/tools/eda/ldv/bin​:/proj/eda/disk4/ldv31baseline/tools/inca/lib​:/proj/eda/disk4/ldv31baseline/tools/lib LOGDIR (unset) PATH=/stdapps/lsf/5.5.1/bin​:/stdapps/lsf/local/bin​:.​:/proj/wdt/bin​:/proj/wdt/sun5.1/bin​:/proj/wdt/X.V11R6/sun5.1/bin​:/login/warrend​:/login/warrend/bin​:/login/warrend/bin/sun5.1​:/login/warrend/acroread506/acroread/bin​:/usr/ucb​:/usr/openwin/bin​:/usr/ccs/bin​:/usr/bin​:/etc​:/usr/sbin​:/proj/dpl/harry/bin​:/stdapps/valid/local/bin​:/stdapps/valid/tools/bin​:/stdapps/valid/tektools/bin​:/stdapps/valid/tools/pcb/bin​:/stdapps/valid/tools/dfII/bin​:/stdapps/valid/tools/fet/bin​:/tools/eda/ldv/LSF​:/tools/eda/ldv/bin​:/proj/eda/disk4/ldv31baseline/tools/bin​:/proj/eda/disk4/ldv31baseline/tools/inca/bin​:/proj/eda/disk4/ldv31baseline/tools/dfII/bin​:/proj/eda/annex2/debussy_5.2.14/bin​:/proj/eda/disk1/vim61/bin​:/stdapps/cms/bin PERL_BADLANG (unset) SHELL=/bin/tcsh

p5pRT commented 21 years ago

From rra@stanford.edu

Warren L Dodge \warrend@​mdhost\.cse\.tek\.com writes​:

I re-compiled without shared libraries and all the errors went away.

Linker and Libraries​: ld='gcc'\, ldflags =' ' libpth=/usr/lib /usr/ccs/lib /proj/wdt/sun5.1/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so\, so=so\, useshrplib=true\, libperl=libperl.so gnulibc_version='' Dynamic Linking​: dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags=' -Wl\,-E -R /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE' cccdlflags='-fPIC'\, lddlflags=' -Wl\,-E -G'

Hm. I notice that /proj/wdt/sun5.1/lib is in the library search path\, but there is no corresponding -R flag for that directory in the ccdlflags setting. If you have shared libraries in that directory\, your compiler will be able to link against them\, but then the resulting binaries won't be able to find them at run-time.

This will cause modules that depend on shared libraries in that directory to fail loading.

-- Russ Allbery (rra@​stanford.edu) \<http​://www.eyrie.org/~eagle/>

p5pRT commented 21 years ago

From warren.dodge@tektronix.com

I added -R /proj/wdt/sun5.1/lib to the ccdlflags and did a new make. No change in behavior

gcc is configured to put a -R switch in the link stages to it's lib dir which has links to all the things in /proj/wdt/sun5.1/lib.

It's perverted but it works.

Date​: 3 Jan 2003 20​:48​:53 -0000 Managed-BY​: RT 2.0.14 (http​://bestpractical.com/rt/) MIME-Version​: 1.0 X-Mailer​: Perl5 Mail​::Internet v1.53 Content-Disposition​: inline Sender​: \rt@&#8203;x1\.develooper\.com RT-Ticket​: perl #19690 Precedence​: bulk Content-Type​: text/plain Reply-To​: perlbug-followup@​perl.org X-RT-Loop-Prevention​: perl From​: Russ Allbery (via RT) \perlbug\-followup@&#8203;perl\.org RT-Originator​: rra@​stanford.edu Content-Length​: 1147

Warren L Dodge \warrend@&#8203;mdhost\.cse\.tek\.com writes​:

I re-compiled without shared libraries and all the errors went away.

Linker and Libraries​: ld='gcc'\, ldflags =' ' libpth=/usr/lib /usr/ccs/lib /proj/wdt/sun5.1/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so\, so=so\, useshrplib=true\, libperl=libperl.so gnulibc_version='' Dynamic Linking​: dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags=' -Wl\,-E -R /proj/wdt/gnu_sun5.1/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE' cccdlflags='-fPIC'\, lddlflags=' -Wl\,-E -G'

Hm. I notice that /proj/wdt/sun5.1/lib is in the library search path\, but there is no corresponding -R flag for that directory in the ccdlflags setting. If you have shared libraries in that directory\, your compiler will be able to link against them\, but then the resulting binaries won't be able to find them at run-time.

This will cause modules that depend on shared libraries in that directory to fail loading.

-- Russ Allbery (rra@​stanford.edu) \<http​://www.eyrie.org/~eagle/>

p5pRT commented 21 years ago

From warren.dodge@tektronix.com

Here is a new set of infor for my problem.

I have tried a number of tests to try and locate this problem. I "think" I have narrowed it down to something in gcc-3.2.1/binutils-2.13.1

Below is a summary of what I have done and some of the messages from debug sessions.

At this point I need some ideas on how to proceed. Again\, this is a solaris 2.5.1 issue. I have the same setup for solaris 8 and everything works fine.

P.S Details are needed. You helping a hardware engineer not a software guru. _____________________________________________________________________________

I build perl with Sun CC and the tests ran fine I build perl with no shared libraries and the tests ran fine

I statically loaded the perl ByteLoader Cwd ... files and the tests passed

I then used a precompiled gcc-2.8.1 to compile it as I had originally configured it and the tests passed. (gcc version 2.9-redhat-980810)

So I then built gcc-3.2.1 again without anything special.

../gcc-3.2.1/configure --prefix=/proj/wdt/gnu_sun5.1/gcc-3.2.1_test --with-local-prefix=/proj/wdt/gnu_sun5.1/gcc-3.2.1_test --with-gnu-ld --with-ld=/proj/wdt/sun5.1/bin/ld --with-gnu-nm --with-nm=/proj/wdt/sun5.1/bin/nm --with-gnu-as --with-as=/proj/wdt/sun5.1/bin/as --enable-threads=posix --enable-shared --disable-nls --enable-languages=objc\,c++ --disable-libgcj

Then reconfigured perl using that gcc and it fails.

I then rebuild gcc using Suns LD and AS \, recompiled perl and the tests run.

__________________________________________________________________________

I noticed these warning as I built perl.

NOTE​: You are using GNU as(1). GNU as(1) might not build Perl. If you have trouble\, you can use /usr/ccs/bin/as by including -B/usr/ccs/bin/ in your /proj/wdt/gnu_sun5.1/gcc-3.2.1_test/bin/gcc command. (Note that the trailing "/" is required.)

./Configure​: Configured​: not found Found GNU ld='Configured'

NOTE​: You are using GNU ld(1). GNU ld(1) might not build Perl. If you have trouble\, you can use /usr/ccs/bin/ld by including -B/usr/ccs/bin/ in your /proj/wdt/gnu_sun5.1/gcc-3.2.1_test/bin/gcc command. (Note that the trailing "/" is required.)

I will try to use GNU ld by passing in the -Wl\,-E flag\, but if that doesn't work\, you should use -B/usr/ccs/bin/ instead.

Does this literally mean build perl or perhaps does it reach into running perl?

_____________________________________________________________________________

Here again is a truss -f of the following test command truss -f ../perl -I../lib ../ext/DB_File/t/db-btree.t

17423​: stat("../lib/auto/Fcntl/Fcntl.so"\, 0x0010D798) = 0 17423​: stat("../lib/auto/Fcntl/Fcntl.bs"\, 0x0010D798) = 0 17423​: open("../lib/auto/Fcntl/Fcntl.so"\, O_RDONLY) = 4 17423​: fstat(4\, 0xEFFFE73C) = 0 17423​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF760000 17423​: mmap(0x00000000\, 81920\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF540000 17423​: munmap(0xEF544000\, 57344) = 0 17423​: mmap(0xEF552000\, 6452\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 4\, 8192) = 0xEF552000 17423​: close(4) = 0 17423​: mprotect(0xEF540000\, 13554\, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 17423​: mprotect(0xEF540000\, 13554\, PROT_READ|PROT_EXEC) = 0 17423​: munmap(0xEF760000\, 8192) = 0 17423​: brk(0x001AFE10) = 0 17423​: brk(0x001B1E10) = 0 17423​: brk(0x001B1E10) = 0 17423​: brk(0x001B3E10) = 0 17423​: brk(0x001B3E10) = 0 17423​: brk(0x001B5E10) = 0 17423​: brk(0x001B5E10) = 0 17423​: brk(0x001B7E10) = 0 17423​: stat("../lib/auto/DB_File/DB_File.so"\, 0x0010D798) = 0 17423​: stat("../lib/auto/DB_File/DB_File.bs"\, 0x0010D798) = 0 17423​: open("../lib/auto/DB_File/DB_File.so"\, O_RDONLY) = 4 17423​: fstat(4\, 0xEFFFE73C) = 0 17423​: mmap(0x00000000\, 8192\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF760000 17423​: mmap(0x00000000\, 483328\, PROT_READ|PROT_EXEC\, MAP_PRIVATE\, 4\, 0) = 0xEF4C0000 17423​: munmap(0xEF524000\, 65536) = 0 17423​: mmap(0xEF534000\, 3456\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE|MAP_FIXED\, 4\, 409600) = 0xEF534000 17423​: open("/dev/zero"\, O_RDONLY) = 5 17423​: mmap(0x00000000\, 8192\, PROT_READ|PROT_WRITE|PROT_EXEC\, MAP_PRIVATE\, 5\, 0) = 0xEF630000 17423​: close(4) = 0 17423​: Incurred fault #6\, FLTBOUNDS %pc = 0xEF7D7500 17423​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF51F810 17423​: Received signal #11\, SIGSEGV [default] 17423​: siginfo​: SIGSEGV SEGV_ACCERR addr=0xEF51F810 17423​: *** process killed ***

_____________________________________________________________________________ Here is a little gdb info

gdb ./perl GNU gdb 5.3 Copyright 2002 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 "sparc-sun-solaris2.5.1"...(no debugging symbols found)... (gdb) run -I./lib ext/DB_File/t/db-btree.t Starting program​: /proj/wdtold/warrend/gnusrc/perl-5.8.0/perl-5.8.0_sun5.1.baregcc/perl -I./lib ext/DB_File/t/db-btree.t (no debugging symbols found)... (no debugging symbols found)... (no debugging symbols found)... (no debugging symbols found)... (no debugging symbols found)... (no debugging symbols found)... (no debugging symbols found)... (no debugging symbols found)... (no debugging symbols found)... Error while mapping shared library sections​: ../lib/auto/Fcntl/Fcntl.so​: No such file or directory. Error while reading shared library symbols​: ../lib/auto/Fcntl/Fcntl.so​: No such file or directory. Error while reading shared library symbols​: ../lib/auto/Fcntl/Fcntl.so​: No such file or directory.

Program received signal SIGSEGV\, Segmentation fault. 0xef7d7500 in ?? () (gdb) bt #0 0xef7d7500 in ?? () #1 0xef7d1940 in ?? () #2 0xef7c3e8c in ?? () #3 0xef7cdc94 in ?? () #4 0xef7cdd98 in ?? () #5 0xef7cde7c in ?? () #6 0x00023194 in XS_DynaLoader_dl_load_file () #7 0x0007c154 in Perl_pp_entersub () #8 0x000745c8 in Perl_runops_standard () #9 0x00027000 in S_call_body () #10 0x00026cf8 in Perl_call_sv () #11 0x0002a3dc in S_call_list_body () #12 0x00029f88 in Perl_call_list () #13 0x0005305c in Perl_newATTRSUB () #14 0x0004ef24 in Perl_utilize () #15 0x00046548 in Perl_yyparse () #16 0x00025f50 in S_parse_body () #17 0x00025168 in perl_parse () #18 0x00022f08 in main ()

p5pRT commented 12 years ago

From @Hugmeir

Since Perl 5.8 is long out of support\, as is Solaris 5\, and seeing how recent Perls work fine on Solaris 10 & 11\, I'm marking this as rejected. OP\, if you are still having issues compiling newer versions of Perl\, please open a new ticket.

--hugmeir

p5pRT commented 12 years ago

@Hugmeir - Status changed from 'open' to 'rejected'