develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134172] commit 027471cf breaks t/op/sprintf2.t on FreeBSD-11

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
June 4, 2019 02:23
Subject:
[perl #134172] commit 027471cf breaks t/op/sprintf2.t on FreeBSD-11
Message ID:
rt-4.0.24-25227-1559614976-1020.134172-15-0@perl.org
On Tue, 04 Jun 2019 01:15:35 GMT, hv wrote:
> On Mon, 03 Jun 2019 17:14:02 -0700, jkeenan@pobox.com wrote:
> > The following smoke test indicates that a recent change to blead is
> > causing failures in t/op/sprintf2.t on FreeBSD-11.
> [...]
> > op/sprintf2.t (Wstat: 2304 Tests: 1699 Failed: 0)
> >    Non-zero exit status: 9
> 
> It's this non-zero exit status that's making it a fail. That's
> reporting that it terminated with a SEGV. It's a bit strange that a
> change is causing a segv only after that test has run successfully,
> but definitely a good reason for calling it failure.
> 
> I can't yet reproduce it here, but you should be getting a core dump.
> If you can generate one (ideally on a debugging perl) and get a stack
> trace out of gdb it should be possible to diagnose the problem.
> 
> Hugo

I haven't used gdb in years, so I'm fumbling around.

Does this help?

#####
[t] $ gdb ./perl perl.core
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...
Core was generated by `./perl -I.. -MTestInit op/sprintf2.t'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libthr.so.3...Reading symbols from /usr/lib/debug//lib/libthr.so.3.debug...done.
done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/lib/libdl.so.1...Reading symbols from /usr/lib/debug//usr/lib/libdl.so.1.debug...done.
done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /lib/libm.so.5...Reading symbols from /usr/lib/debug//lib/libm.so.5.debug...done.
done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libcrypt.so.5...Reading symbols from /usr/lib/debug//lib/libcrypt.so.5.debug...done.
done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /lib/libutil.so.9...Reading symbols from /usr/lib/debug//lib/libutil.so.9.debug...done.
done.
Loaded symbols for /lib/libutil.so.9
Reading symbols from /lib/libc.so.7...Reading symbols from /usr/lib/debug//lib/libc.so.7.debug...done.
done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...Reading symbols from /usr/lib/debug//libexec/ld-elf.so.1.debug...done.
done.
Loaded symbols for /libexec/ld-elf.so.1
#0  S_my_exit_jump (my_perl=0x801e22000) at perl.c:5261
5261	    if (cxstack_ix >= 0) {
(gdb) bt
#0  S_my_exit_jump (my_perl=0x801e22000) at perl.c:5261
#1  0x0000000000458107 in Perl_my_failure_exit (my_perl=0x801e22000) at perl.c:5249
#2  0x00000000005987e2 in Perl_die_unwind (my_perl=0x801e22000, msv=0x801f56838) at pp_ctl.c:1797
#3  0x00000000004f4788 in Perl_vcroak (my_perl=0x801e22000, pat=0x801f56838 "\030 �\001\b", args=0x7fffffffe2a0)
    at util.c:1711
#4  0x00000000004f1b27 in Perl_croak_nocontext (pat=<value optimized out>) at util.c:1745
#5  0x00000000006128bb in PerlIOUnix_refcnt_inc (fd=0) at perlio.c:2309
#6  0x0000000000613298 in PerlIOUnix_open (my_perl=0x801e22000, self=0x81dd30, layers=0x801e1b8d8, n=0, 
    mode=0x81e4c0 "r", fd=0, imode=0, perm=0, f=0x801eac038, narg=0, args=0x0) at perlio.c:2607
#7  0x000000000061519c in PerlIOBuf_open (my_perl=0x801e22000, self=0x81da90, layers=0x801e1b8d8, n=1, 
    mode=<value optimized out>, fd=1, imode=0, perm=0, f=0x0, narg=0, args=0x0) at perlio.c:3897
#8  0x0000000000611238 in PerlIO_openn (my_perl=0x801e22000, layers=<value optimized out>, 
    mode=<value optimized out>, fd=0, imode=<value optimized out>, perm=<value optimized out>, f=0x0, narg=0, 
    args=0x0) at perlio.c:1550
#9  0x000000000061010e in PerlIO_stdstreams (my_perl=0x801e22000) at perlio.c:4928
#10 0x0000000000616ecd in Perl_PerlIO_stderr (my_perl=0x801e22000) at perlio.c:4884
#11 0x00000000004f4463 in Perl_write_to_stderr (my_perl=0x801e22000, msv=0x801f56838) at util.c:1516
#12 0x00000000005987da in Perl_die_unwind (my_perl=0x801e22000, msv=0x801f56838) at pp_ctl.c:1796
#13 0x00000000004f4788 in Perl_vcroak (my_perl=0x801e22000, pat=0x801f56838 "\030 �\001\b", args=0x7fffffffe680)
    at util.c:1711
#14 0x00000000004f1b27 in Perl_croak_nocontext (pat=<value optimized out>) at util.c:1745
#15 0x000000000044c57e in Perl_sys_term () at perl.c:146
#16 0x0000000000421472 in main (argc=<value optimized out>, argv=<value optimized out>, env=0x7fffffffe770)
---Type <return> to continue, or q <return> to quit--- 
    at perlmain.c:155
#####
-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=134172

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