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

[perl #133271] Blead Breaks CPAN: BRUMMETT/Devel-hdb-0.23.tar.gz

Thread Previous | Thread Next
From:
slaven@rezic.de
Date:
June 9, 2018 12:56
Subject:
[perl #133271] Blead Breaks CPAN: BRUMMETT/Devel-hdb-0.23.tar.gz
Message ID:
rt-4.0.24-3584-1528548959-161.133271-75-0@perl.org
# New Ticket Created by  slaven@rezic.de 
# Please include the string:  [perl #133271]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133271 >


This is a bug report for perl from slaven@rezic.de,
generated with the help of perlbug 1.41 running under perl 5.28.0.


-----------------------------------------------------------------
On FreeBSD systems (10 .. 12) the test
t/04-get-all-breakpoints.t is instable with newer perls:
http://matrix.cpantesters.org/?dist=Devel-hdb%200.23

Test failure looks like this:

Can't get breakpoint: Can't connect to 127.0.0.1:44242 (Connection refused)# Looks like your test exited with 61 just after 6.
t/04-get-all-breakpoints.t ........ 
Dubious, test returned 61 (wstat 15616, 0x3d00)
Failed 7/13 subtests 


Looking with truss into the test process one can see that
a segmentation fault happens (in a fork of the original
process):

49835: 2.000253424 0.000032407 setitimer(0,{ 0.000000, 300.000000 },{ 0.000000, 0.000000 }) = 0 (0x0)
49835: 2.000384725 0.000041625 write(3,"{"inactive":0,"line":"3","code":1,"filename":"t/TestNothing.pm","href":"/breakpoints/277381443ba5747d15dbc99b7c74d88a"}",119) = 119 (0x77)
49835: 2.000504573 0.000032965 setitimer(0,{ 0.000000, 0.000000 },{ 0.000000, 299.999749 }) = 0 (0x0)
49835: 2.000588383 0.000022350 sigprocmask(SIG_BLOCK,{ SIGALRM },{ }) = 0 (0x0)
49835: 2.000674148 0.000022629 sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ SIGALRM }) = 0 (0x0)
49835: 2.000749856 0.000022350 sigaction(SIGALRM,{ SIG_DFL 0x0 ss_t },{ 0x80084a590 SA_SIGINFO ss_t }) = 0 (0x0)
49835: 2.000824726 0.000021791 sigprocmask(SIG_SETMASK,{ SIGALRM },0x0) = 0 (0x0)
49835: 2.000899595 0.000022069 sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
49835: 2.001040954 0.000043581 close(3) 	 = 0 (0x0)
49835: 2.001116103 0.000118730 SIGNAL 11 (SIGSEGV) code=SEGV_MAPERR trapno=12 addr=0x800000
49835: 4.232705079 2.231707706 process killed, signal = 11 (core dumped)


The backtrace:

#0  0x00000000004c4f57 in Perl_hfree_next_entry ()
#1  0x00000000004def61 in Perl_sv_clear ()
#2  0x00000000004df584 in Perl_sv_free2 ()
#3  0x00000000004ff079 in Perl_leave_scope ()
#4  0x000000000050706a in Perl_pp_leave ()
#5  0x00000000004c9183 in Perl_runops_standard ()
#6  0x0000000000446906 in S_run_body ()
#7  0x000000000044670c in perl_run ()
#8  0x0000000000423e7d in main ()


I found also a CPAN Testers report from a linux system with
some memory corruption (here it's 5.27.2):

http://www.cpantesters.org/cpan/report/84842889


The problem seems also to happen with the latest devel version
of Devel-hdb:
http://matrix.cpantesters.org/?dist=Devel-hdb%200.23_14

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.28.0:

Configured by eserte at Wed Jun  6 23:52:33 CEST 2018.

Summary of my perl5 (revision 5 version 28 subversion 0) configuration:
   
  Platform:
    osname=freebsd
    osvers=10.3-release-p24
    archname=amd64-freebsd
    uname='freebsd cvrsnica-freebsd-101.herceg.de 10.3-release-p24 freebsd 10.3-release-p24 #0: wed nov 15 04:57:40 utc 2017 root@amd64-builder.daemonology.net:usrobjusrsrcsysgeneric amd64 '
    config_args='-ds -e -Dprefix=/usr/perl5.28.0-RC2p -Dcf_email=srezic@cpan.org -Doptimize=-O2 -pipe'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2'
    optimize='-O2 -pipe'
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion=''
    gccversion='4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags ='-pthread -Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib /usr/include/clang/3.4.1 /usr/lib
    libs=-lpthread -lgdbm -lm -lcrypt -lutil -lc -lelf
    perllibs=-lpthread -lm -lcrypt -lutil -lc -lelf
    libc=
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags='-DPIC -fPIC'
    lddlflags='-shared	-L/usr/local/lib -fstack-protector'

Locally applied patches:
    RC2

---
@INC for perl 5.28.0:
    /usr/perl5.28.0-RC2p/lib/site_perl/5.28.0/amd64-freebsd
    /usr/perl5.28.0-RC2p/lib/site_perl/5.28.0
    /usr/perl5.28.0-RC2p/lib/5.28.0/amd64-freebsd
    /usr/perl5.28.0-RC2p/lib/5.28.0

---
Environment for perl 5.28.0:
    HOME=/home/eserte
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/eserte/bin/freebsd10.3:/home/eserte/bin/sh:/home/eserte/bin:/home/eserte/bin/pistachio-perl/bin:/usr/games:/home/eserte/devel
    PERLDOC=-MPod::Perldoc::ToTextOverstrike
    PERL_BADLANG (unset)
    SHELL=/usr/local/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