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

Blead Breaks CPAN: GUIDO/libintl-perl-1.29.tar.gz #16450

Closed
p5pRT opened this issue Mar 2, 2018 · 11 comments
Closed

Blead Breaks CPAN: GUIDO/libintl-perl-1.29.tar.gz #16450

p5pRT opened this issue Mar 2, 2018 · 11 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented Mar 2, 2018

Migrated from rt.perl.org#132931 (status was 'resolved')

Searchable as RT132931$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 2, 2018

From @eserte

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


The test tests/03gettext_dumb.t in libintl-perl-1.29 fails with
memory corruption with threaded perl 5.27.9. I don't see this
failure with unthreaded perls or with a threaded 5.27.8.

*** Error in `/opt/perl-5.27.9t/bin/perl5.27.9'​: double free or corruption (fasttop)​: 0x000055cc6d073b10 ***
======= Backtrace​: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7f1c2b866bcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x7f1c2b86cf96]
/lib/x86_64-linux-gnu/libc.so.6(+0x777de)[0x7f1c2b86d7de]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_sv_clear+0x70d)[0x55cc6abc03ed]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_sv_free2+0x64)[0x55cc6abc06f4]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_free_tmps+0x57)[0x55cc6abf0637]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_pp_leavetry+0x18a)[0x55cc6ac01aea]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_runops_standard+0x16)[0x55cc6abb0eb6]
/opt/perl-5.27.9t/bin/perl5.27.9(perl_run+0x329)[0x55cc6ab2fff9]
/opt/perl-5.27.9t/bin/perl5.27.9(main+0x13d)[0x55cc6ab05f5d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f1c2b8162b1]
/opt/perl-5.27.9t/bin/perl5.27.9(_start+0x2a)[0x55cc6ab05f9a]



Flags​:
  category=core
  severity=low


Site configuration information for perl 5.27.9​:

Configured by eserte at Fri Mar 2 16​:25​:37 UTC 2018.

Summary of my perl5 (revision 5 version 27 subversion 9) configuration​:
 
  Platform​:
  osname=linux
  osvers=4.9.0-3-amd64
  archname=x86_64-linux-thread-multi
  uname='linux debian9 4.9.0-3-amd64 #1 smp debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 gnulinux '
  config_args='-ds -e -Dprefix=/opt/perl-5.27.9t -Dusedevel -Dusemallocwrap=no -Dusethreads -Dcf_email=srezic@​cpan.org'
  hint=recommended
  useposix=true
  d_sigaction=define
  useithreads=define
  usemultiplicity=define
  use64bitint=define
  use64bitall=define
  uselongdouble=undef
  usemymalloc=n
  default_inc_excludes_dot=define
  bincompat5005=undef
  Compiler​:
  cc='cc'
  ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
  optimize='-O2'
  cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
  ccversion=''
  gccversion='6.3.0 20170516'
  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 =' -fstack-protector-strong -L/usr/local/lib'
  libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
  libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
  perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
  libc=libc-2.24.so
  so=so
  useshrplib=false
  libperl=libperl.a
  gnulibc_version='2.24'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs
  dlext=so
  d_dlsymun=undef
  ccdlflags='-Wl,-E'
  cccdlflags='-fPIC'
  lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


@​INC for perl 5.27.9​:
  /opt/perl-5.27.9t/lib/site_perl/5.27.9/x86_64-linux-thread-multi
  /opt/perl-5.27.9t/lib/site_perl/5.27.9
  /opt/perl-5.27.9t/lib/5.27.9/x86_64-linux-thread-multi
  /opt/perl-5.27.9t/lib/5.27.9


Environment for perl 5.27.9​:
  HOME=/home/eserte
  LANG=C
  LANGUAGE (unset)
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/usr/local/bin​:/usr/bin​:/bin​:/usr/local/sbin​:/usr/sbin​:/sbin​:/home/eserte/bin/linux-gnu​:/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=/bin/zsh

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 2, 2018

From @jkeenan

On Fri, 02 Mar 2018 17​:22​:21 GMT, slaven@​rezic.de wrote​:

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

-----------------------------------------------------------------
The test tests/03gettext_dumb.t in libintl-perl-1.29 fails with
memory corruption with threaded perl 5.27.9. I don't see this
failure with unthreaded perls or with a threaded 5.27.8.

*** Error in `/opt/perl-5.27.9t/bin/perl5.27.9'​: double free or
corruption (fasttop)​: 0x000055cc6d073b10 ***
======= Backtrace​: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7f1c2b866bcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x7f1c2b86cf96]
/lib/x86_64-linux-gnu/libc.so.6(+0x777de)[0x7f1c2b86d7de]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_sv_clear+0x70d)[0x55cc6abc03ed]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_sv_free2+0x64)[0x55cc6abc06f4]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_free_tmps+0x57)[0x55cc6abf0637]
/opt/perl-
5.27.9t/bin/perl5.27.9(Perl_pp_leavetry+0x18a)[0x55cc6ac01aea]
/opt/perl-
5.27.9t/bin/perl5.27.9(Perl_runops_standard+0x16)[0x55cc6abb0eb6]
/opt/perl-5.27.9t/bin/perl5.27.9(perl_run+0x329)[0x55cc6ab2fff9]
/opt/perl-5.27.9t/bin/perl5.27.9(main+0x13d)[0x55cc6ab05f5d]
/lib/x86_64-linux-
gnu/libc.so.6(__libc_start_main+0xf1)[0x7f1c2b8162b1]
/opt/perl-5.27.9t/bin/perl5.27.9(_start+0x2a)[0x55cc6ab05f9a]

Confirmed; see attachment. Great fun​: output implicates multiple modules we've recently touched​: Storable, Encode, I18N​::Langinfo, ... :-(

Thank you very much.
Jim Keenan

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 2, 2018

From @jkeenan

$ ./bin/perl -v | head -2 |tail -1
This is perl 5, version 27, subversion 9 (v5.27.9 (v5.27.8-433-g8c53dad)) built for x86_64-linux-thread-multi

$ ./bin/cpanm Locale​::Recode
--> Working on Locale​::Recode
Fetching http​://www.cpan.org/authors/id/G/GU/GUIDO/libintl-perl-1.29.tar.gz ... OK
Configuring libintl-perl-1.29 ... OK
Building and testing libintl-perl-1.29 ... *** Error in `/threaded_blead/bin/perl'​: malloc()​: memory corruption (fast)​: 0x00000000008a006c ***
======= Backtrace​: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ff7487447e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x82651)[0x7ff74874f651]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7ff748751184]
/threaded_blead/bin/perl(Perl_safesysmalloc+0x12)[0x4a59b2]
/threaded_blead/bin/perl(Perl_sv_grow+0xc0)[0x4dca40]
/threaded_blead/bin/perl(Perl_sv_setpvn+0x75)[0x4e4295]
/threaded_blead/bin/perl(Perl_newSVpvn+0x4d)[0x4e4d6d]
/threaded_blead/bin/perl(Perl_pp_caller+0x5a6)[0x510ff6]
/threaded_blead/bin/perl(Perl_runops_standard+0x16)[0x4c46f6]
/threaded_blead/bin/perl(perl_run+0x329)[0x4472e9]
/threaded_blead/bin/perl(main+0x12b)[0x41dccb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7ff7486ed830]
/threaded_blead/bin/perl(_start+0x29)[0x41dd09]
======= Memory map​: ========
00400000-005ff000 r-xp 00000000 08​:02 42992030 /threaded_blead/bin/perl
007fe000-007ff000 r--p 001fe000 08​:02 42992030 /threaded_blead/bin/perl
007ff000-00802000 rw-p 001ff000 08​:02 42992030 /threaded_blead/bin/perl
00802000-00808000 rw-p 00000000 00​:00 0
00856000-00e4d000 rw-p 00000000 00​:00 0 [heap]
7ff740000000-7ff740021000 rw-p 00000000 00​:00 0
7ff740021000-7ff744000000 ---p 00000000 00​:00 0
7ff746fb5000-7ff746fcb000 r-xp 00000000 08​:02 10495350 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff746fcb000-7ff7471ca000 ---p 00016000 08​:02 10495350 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff7471ca000-7ff7471cb000 r--p 00015000 08​:02 10495350 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff7471cb000-7ff7471cc000 rw-p 00016000 08​:02 10495350 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff7471cc000-7ff7471ce000 r-xp 00000000 08​:02 43009810 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/I18N/Langinfo/Langinfo.so
7ff7471ce000-7ff7473cd000 ---p 00002000 08​:02 43009810 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/I18N/Langinfo/Langinfo.so
7ff7473cd000-7ff7473ce000 r--p 00001000 08​:02 43009810 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/I18N/Langinfo/Langinfo.so
7ff7473ce000-7ff7473cf000 rw-p 00002000 08​:02 43009810 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/I18N/Langinfo/Langinfo.so
7ff7473cf000-7ff7473e5000 r-xp 00000000 08​:02 43009628 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/POSIX/POSIX.so
7ff7473e5000-7ff7475e5000 ---p 00016000 08​:02 43009628 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/POSIX/POSIX.so
7ff7475e5000-7ff7475e8000 r--p 00016000 08​:02 43009628 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/POSIX/POSIX.so
7ff7475e8000-7ff7475e9000 rw-p 00019000 08​:02 43009628 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/POSIX/POSIX.so
7ff7475e9000-7ff7475ed000 r-xp 00000000 08​:02 43009667 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/IO/IO.so
7ff7475ed000-7ff7477ec000 ---p 00004000 08​:02 43009667 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/IO/IO.so
7ff7477ec000-7ff7477ed000 r--p 00003000 08​:02 43009667 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/IO/IO.so
7ff7477ed000-7ff7477ee000 rw-p 00004000 08​:02 43009667 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/IO/IO.so
7ff7477ee000-7ff7477f3000 r-xp 00000000 08​:02 43014621 /.cpanm/work/1520013728.7815/libintl-perl-1.29/blib/arch/auto/Locale/gettext_xs/gettext_xs.so
7ff7477f3000-7ff7479f2000 ---p 00005000 08​:02 43014621 /.cpanm/work/1520013728.7815/libintl-perl-1.29/blib/arch/auto/Locale/gettext_xs/gettext_xs.so
7ff7479f2000-7ff7479f3000 r--p 00004000 08​:02 43014621 /.cpanm/work/1520013728.7815/libintl-perl-1.29/blib/arch/auto/Locale/gettext_xs/gettext_xs.so
7ff7479f3000-7ff7479f4000 rw-p 00005000 08​:02 43014621 /.cpanm/work/1520013728.7815/libintl-perl-1.29/blib/arch/auto/Locale/gettext_xs/gettext_xs.so
7ff7479f4000-7ff747a0d000 r-xp 00000000 08​:02 43009601 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Storable/Storable.so
7ff747a0d000-7ff747c0d000 ---p 00019000 08​:02 43009601 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Storable/Storable.so
7ff747c0d000-7ff747c0e000 r--p 00019000 08​:02 43009601 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Storable/Storable.so
7ff747c0e000-7ff747c0f000 rw-p 0001a000 08​:02 43009601 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Storable/Storable.so
7ff747c0f000-7ff747c12000 r-xp 00000000 08​:02 43009936 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Fcntl/Fcntl.so
7ff747c12000-7ff747e12000 ---p 00003000 08​:02 43009936 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Fcntl/Fcntl.so
7ff747e12000-7ff747e13000 r--p 00003000 08​:02 43009936 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Fcntl/Fcntl.so
7ff747e13000-7ff747e14000 rw-p 00004000 08​:02 43009936 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Fcntl/Fcntl.so
7ff747e14000-7ff747e1d000 r-xp 00000000 08​:02 43009704 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Encode/Encode.so
7ff747e1d000-7ff74801d000 ---p 00009000 08​:02 43009704 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Encode/Encode.so
7ff74801d000-7ff74801e000 r--p 00009000 08​:02 43009704 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Encode/Encode.so
7ff74801e000-7ff74801f000 rw-p 0000a000 08​:02 43009704 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Encode/Encode.so
7ff74801f000-7ff748022000 r-xp 00000000 08​:02 43009925 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Cwd/Cwd.so
7ff748022000-7ff748222000 ---p 00003000 08​:02 43009925 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Cwd/Cwd.so
7ff748222000-7ff748223000 r--p 00003000 08​:02 43009925 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Cwd/Cwd.so
7ff748223000-7ff748224000 rw-p 00004000 08​:02 43009925 /threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi/auto/Cwd/Cwd.so
7ff748224000-7ff7486cd000 r--p 00000000 08​:02 15728823 /usr/lib/locale/locale-archive
7ff7486cd000-7ff74888d000 r-xp 00000000 08​:02 10495664 /lib/x86_64-linux-gnu/libc-2.23.so
7ff74888d000-7ff748a8d000 ---p 001c0000 08​:02 10495664 /lib/x86_64-linux-gnu/libc-2.23.so
7ff748a8d000-7ff748a91000 r--p 001c0000 08​:02 10495664 /lib/x86_64-linux-gnu/libc-2.23.so
7ff748a91000-7ff748a93000 rw-p 001c4000 08​:02 10495664 /lib/x86_64-linux-gnu/libc-2.23.so
7ff748a93000-7ff748a97000 rw-p 00000000 00​:00 0
7ff748a97000-7ff748aa0000 r-xp 00000000 08​:02 10495711 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff748aa0000-7ff748c9f000 ---p 00009000 08​:02 10495711 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff748c9f000-7ff748ca0000 r--p 00008000 08​:02 10495711 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff748ca0000-7ff748ca1000 rw-p 00009000 08​:02 10495711 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff748ca1000-7ff748ccf000 rw-p 00000000 00​:00 0
7ff748ccf000-7ff748dd7000 r-xp 00000000 08​:02 10485812 /lib/x86_64-linux-gnu/libm-2.23.so
7ff748dd7000-7ff748fd6000 ---p 00108000 08​:02 10485812 /lib/x86_64-linux-gnu/libm-2.23.so
7ff748fd6000-7ff748fd7000 r--p 00107000 08​:02 10485812 /lib/x86_64-linux-gnu/libm-2.23.so
7ff748fd7000-7ff748fd8000 rw-p 00108000 08​:02 10485812 /lib/x86_64-linux-gnu/libm-2.23.so
7ff748fd8000-7ff748fdb000 r-xp 00000000 08​:02 10495668 /lib/x86_64-linux-gnu/libdl-2.23.so
7ff748fdb000-7ff7491da000 ---p 00003000 08​:02 10495668 /lib/x86_64-linux-gnu/libdl-2.23.so
7ff7491da000-7ff7491db000 r--p 00002000 08​:02 10495668 /lib/x86_64-linux-gnu/libdl-2.23.so
7ff7491db000-7ff7491dc000 rw-p 00003000 08​:02 10495668 /lib/x86_64-linux-gnu/libdl-2.23.so
7ff7491dc000-7ff7491f4000 r-xp 00000000 08​:02 10495662 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff7491f4000-7ff7493f3000 ---p 00018000 08​:02 10495662 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff7493f3000-7ff7493f4000 r--p 00017000 08​:02 10495662 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff7493f4000-7ff7493f5000 rw-p 00018000 08​:02 10495662 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff7493f5000-7ff7493f9000 rw-p 00000000 00​:00 0
7ff7493f9000-7ff74941f000 r-xp 00000000 08​:02 10495660 /lib/x86_64-linux-gnu/ld-2.23.so
7ff7495f0000-7ff7495f5000 rw-p 00000000 00​:00 0
7ff74961d000-7ff74961e000 rw-p 00000000 00​:00 0
7ff74961e000-7ff74961f000 r--p 00025000 08​:02 10495660 /lib/x86_64-linux-gnu/ld-2.23.so
7ff74961f000-7ff749620000 rw-p 00026000 08​:02 10495660 /lib/x86_64-linux-gnu/ld-2.23.so
7ff749620000-7ff749621000 rw-p 00000000 00​:00 0
7fff18a47000-7fff18a69000 rw-p 00000000 00​:00 0 [stack]
7fff18be5000-7fff18be8000 r--p 00000000 00​:00 0 [vvar]
7fff18be8000-7fff18bea000 r-xp 00000000 00​:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00​:00 0 [vsyscall]
FAIL
! Installing Locale​::Recode failed. See /.cpanm/work/1520013728.7815/build.log for details. Retry with --force to force install it.

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 2, 2018

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 3, 2018

From @dur-randir

On Fri, 02 Mar 2018 09​:22​:21 -0800, slaven@​rezic.de wrote​:


The test tests/03gettext_dumb.t in libintl-perl-1.29 fails with
memory corruption with threaded perl 5.27.9. I don't see this
failure with unthreaded perls or with a threaded 5.27.8.

Bisect points to commit e9bc6d6
Author​: Karl Williamson <khw@​cpan.org>
Date​: Mon Feb 5 22​:11​:51 2018 -0700

  Add thread-safe locale handling

  This (large) commit allows locales to be used in threaded perls on
  platforms that support it. This includes recent Windows and Posix 2008
  ones.

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 3, 2018

From @jkeenan

On Fri, 02 Mar 2018 18​:10​:09 GMT, jkeenan wrote​:

On Fri, 02 Mar 2018 17​:22​:21 GMT, slaven@​rezic.de wrote​:

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

-----------------------------------------------------------------
The test tests/03gettext_dumb.t in libintl-perl-1.29 fails with
memory corruption with threaded perl 5.27.9. I don't see this
failure with unthreaded perls or with a threaded 5.27.8.

*** Error in `/opt/perl-5.27.9t/bin/perl5.27.9'​: double free or
corruption (fasttop)​: 0x000055cc6d073b10 ***
======= Backtrace​: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7f1c2b866bcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x7f1c2b86cf96]
/lib/x86_64-linux-gnu/libc.so.6(+0x777de)[0x7f1c2b86d7de]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_sv_clear+0x70d)[0x55cc6abc03ed]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_sv_free2+0x64)[0x55cc6abc06f4]
/opt/perl-5.27.9t/bin/perl5.27.9(Perl_free_tmps+0x57)[0x55cc6abf0637]
/opt/perl-
5.27.9t/bin/perl5.27.9(Perl_pp_leavetry+0x18a)[0x55cc6ac01aea]
/opt/perl-
5.27.9t/bin/perl5.27.9(Perl_runops_standard+0x16)[0x55cc6abb0eb6]
/opt/perl-5.27.9t/bin/perl5.27.9(perl_run+0x329)[0x55cc6ab2fff9]
/opt/perl-5.27.9t/bin/perl5.27.9(main+0x13d)[0x55cc6ab05f5d]
/lib/x86_64-linux-
gnu/libc.so.6(__libc_start_main+0xf1)[0x7f1c2b8162b1]
/opt/perl-5.27.9t/bin/perl5.27.9(_start+0x2a)[0x55cc6ab05f9a]

Confirmed; see attachment. Great fun​: output implicates multiple
modules we've recently touched​: Storable, Encode, I18N​::Langinfo, ...
:-(

Thank you very much.
Jim Keenan

Attaching perl -V output for my build.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 3, 2018

From @jkeenan

Summary of my perl5 (revision 5 version 27 subversion 9) configuration​:
  Commit id​: 8c53dad
  Platform​:
  osname=linux
  osvers=4.4.0-112-generic
  archname=x86_64-linux-thread-multi
  uname='linux zareason 4.4.0-112-generic #135-ubuntu smp fri jan 19 11​:48​:36 utc 2018 x86_64 x86_64 x86_64 gnulinux '
  config_args='-des -Dusedevel -Dusethreads -Uversiononly -Dprefix=/home/jkeenan/testing/threaded_blead -Dman1dir=none -Dman3dir=none'
  hint=recommended
  useposix=true
  d_sigaction=define
  useithreads=define
  usemultiplicity=define
  use64bitint=define
  use64bitall=define
  uselongdouble=undef
  usemymalloc=n
  default_inc_excludes_dot=define
  bincompat5005=undef
  Compiler​:
  cc='cc'
  ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
  optimize='-O2'
  cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
  ccversion=''
  gccversion='5.4.1 20160904'
  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 =' -fstack-protector-strong -L/usr/local/lib'
  libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /lib64 /usr/lib64
  libs=-lpthread -lnsl -ldb -ldl -lm -lcrypt -lutil -lc
  perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
  libc=libc-2.23.so
  so=so
  useshrplib=false
  libperl=libperl.a
  gnulibc_version='2.23'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs
  dlext=so
  d_dlsymun=undef
  ccdlflags='-Wl,-E'
  cccdlflags='-fPIC'
  lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'

Characteristics of this binary (from libperl)​:
  Compile-time options​:
  HAS_TIMES
  MULTIPLICITY
  PERLIO_LAYERS
  PERL_COPY_ON_WRITE
  PERL_DONT_CREATE_GVSV
  PERL_IMPLICIT_CONTEXT
  PERL_MALLOC_WRAP
  PERL_OP_PARENT
  PERL_PRESERVE_IVUV
  PERL_USE_DEVEL
  USE_64_BIT_ALL
  USE_64_BIT_INT
  USE_ITHREADS
  USE_LARGE_FILES
  USE_LOCALE
  USE_LOCALE_COLLATE
  USE_LOCALE_CTYPE
  USE_LOCALE_NUMERIC
  USE_LOCALE_TIME
  USE_PERLIO
  USE_PERL_ATOF
  USE_REENTRANT_API
  Built under linux
  Compiled at Mar 2 2018 12​:58​:54
  %ENV​:
  PERL2DIR="/home/jkeenan/gitwork/perl2"
  PERLBREW_BASHRC_VERSION="0.78"
  PERLBREW_HOME="/home/jkeenan/.perlbrew"
  PERLBREW_MANPATH="/home/jkeenan/perl5/perlbrew/perls/perl-5.26.0/man"
  PERLBREW_PATH="/home/jkeenan/perl5/perlbrew/bin​:/home/jkeenan/perl5/perlbrew/perls/perl-5.26.0/bin"
  PERLBREW_PERL="perl-5.26.0"
  PERLBREW_ROOT="/home/jkeenan/perl5/perlbrew"
  PERLBREW_VERSION="0.78"
  PERL_WORKDIR="/home/jkeenan/gitwork/perl"
  @​INC​:
  lib
  /home/jkeenan/testing/threaded_blead/lib/perl5/site_perl/5.27.9/x86_64-linux-thread-multi
  /home/jkeenan/testing/threaded_blead/lib/perl5/site_perl/5.27.9
  /home/jkeenan/testing/threaded_blead/lib/perl5/5.27.9/x86_64-linux-thread-multi
  /home/jkeenan/testing/threaded_blead/lib/perl5/5.27.9

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 4, 2018

From @khwilliamson

I believe this is fixed. slaven, please verify
--
Karl Williamson

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 4, 2018

From @eserte

Dana Sun, 04 Mar 2018 08​:00​:12 -0800, khw reče​:

I believe this is fixed. slaven, please verify

Confirmed. I tried with v5.27.9-93-gbee74f4 built for x86_64-linux-thread-multi

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 4, 2018

From @khwilliamson

Thanks for the report

Fixed by 2426f3270347509b20d207b54666567ec570e6c9
and 5df687d0cec16efea69945a13a1283717f4d9344
--
Karl Williamson

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Mar 4, 2018

@khwilliamson - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant