Em 15/11/2017 13:38, Silamael escreveu:

Hi,

You could try to set LD_DEBUG=yes before running the test.
With this you should see, what's really missing.

-- Matthias


Thanks Matthias!

I tried that with a perl compiled with debugging symbols (-DDEBUGGING):

dlopen: /home/vagrant/.cpan/build/PerlIO-eol-0.16-6/blib/arch/auto/PerlIO/eol/eol.so: done (success). dlsym: boot_PerlIO__eol in /home/vagrant/.cpan/build/PerlIO-eol-0.16-6/blib/arch/auto/PerlIO/eol/eol.so: 0x174e88dd9670
ok 1 - use PerlIO::eol;
ok 2
ok 3
ok 4
ok 5
ok 6 - open for read
Failed 17/23 subtests

Test Summary Report
-------------------
t/1-basic.t (Wstat: 134 Tests: 6 Failed: 0)
  Non-zero wait status: 134
  Parse errors: Bad plan.  You planned 23 tests but ran 6.
Files=1, Tests=6, 0 wallclock secs ( 0.04 usr 0.03 sys + 0.07 cusr 0.10 csys = 0.24 CPU)
Result: FAIL
doing dtors obj 0x8d5475cc800 @0x8d5ecb88340: [/home/vagrant/perl5/perlbrew/perls/5.26.1d/lib/5.26.1/OpenBSD.amd64-openbsd/auto/POSIX/POSIX.so] doing dtors obj 0x8d5d4886400 @0x8d574e2f9f0: [/home/vagrant/perl5/perlbrew/perls/5.26.1d/lib/5.26.1/OpenBSD.amd64-openbsd/auto/Fcntl/Fcntl.so] doing dtors obj 0x8d5701df000 @0x8d5cb1e5020: [/home/vagrant/perl5/perlbrew/perls/5.26.1d/lib/5.26.1/OpenBSD.amd64-openbsd/auto/IO/IO.so] doing dtors obj 0x8d5701df800 @0x8d61d3e14b0: [/home/vagrant/perl5/perlbrew/perls/5.26.1d/lib/5.26.1/OpenBSD.amd64-openbsd/auto/File/Glob/Glob.so] doing dtors obj 0x8d5a090cc00 @0x8d549b11b30: [/home/vagrant/perl5/perlbrew/perls/5.26.1d/lib/5.26.1/OpenBSD.amd64-openbsd/auto/Time/HiRes/HiRes.so] doing dtors obj 0x8d5a090c800 @0x8d5593df660: [/home/vagrant/perl5/perlbrew/perls/5.26.1d/lib/5.26.1/OpenBSD.amd64-openbsd/auto/List/Util/Util.so] doing dtors obj 0x8d5d4886000 @0x8d5c06651d0: [/home/vagrant/perl5/perlbrew/perls/5.26.1d/lib/5.26.1/OpenBSD.amd64-openbsd/auto/Cwd/Cwd.so]
doing dtors

The program dies right after the test number 6 and generates a core dump. Unfortunately, gdb doesn't give me anything useful (or I'm doing something wrong):

bash-4.4$ gdb -c perl.core
GNU gdb 6.3
Copyright 2004 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 "amd64-unknown-openbsd6.1".
Core was generated by `perl'.
Program terminated with signal 6, Aborted.
#0  0x0000174ec0f6dfea in ?? ()
(gdb) bt full
#0  0x0000174ec0f6dfea in ?? ()
No symbol table info available.
#1  0x0000174ec0f6e0b9 in ?? ()
No symbol table info available.
#2  0x0000174e06f4a480 in ?? ()
No symbol table info available.
#3  0x000000000000000a in ?? ()
No symbol table info available.
#4  0xffffffdf0000000a in ?? ()
No symbol table info available.
#5  0x35cbadd363eaf932 in ?? ()
No symbol table info available.
#6  0x0000000000000003 in ?? ()
No symbol table info available.
#7  0x0000174ec0f8e718 in ?? ()
No symbol table info available.
#8  0x0000174e00000000 in ?? ()
No symbol table info available.
#9  0x0000174e36b0d020 in ?? ()
No symbol table info available.
#10 0x000000ff00000008 in ?? ()
No symbol table info available.
#11 0x35cbadd363eaf932 in ?? ()
No symbol table info available.
#12 0x0000174e55684880 in ?? ()
No symbol table info available.
#13 0x0000174e88dda0d6 in ?? ()
No symbol table info available.
#14 0x0000000060bbe59c in ?? ()
No symbol table info available.
#15 0x0000174df018bc98 in ?? ()
No symbol table info available.
#16 0x0000000000000004 in ?? ()
No symbol table info available.
#17 0x0000174ed6c21980 in ?? ()
No symbol table info available.
#18 0x0000000000001000 in ?? ()
No symbol table info available.
#19 0x0000000000001000 in ?? ()
No symbol table info available.
#20 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)

Reply via email to