Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

[perl #112780] Bleadperl v5.15.6-409-gb659727 breaks MSCHWERN/Test-Simple-1.005000_005.tar.gz

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


perlbug-followup at perl

May 5, 2012, 11:56 PM

Post #1 of 5 (120 views)
Permalink
[perl #112780] Bleadperl v5.15.6-409-gb659727 breaks MSCHWERN/Test-Simple-1.005000_005.tar.gz

# New Ticket Created by (Andreas J. Koenig)
# Please include the string: [perl #112780]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112780 >


git bisect
----------
commit b65972750fa3efbb092421583feea1e3263028ad
Author: Father Chrysostomos <sprout [at] cpan>
Date: Thu Jan 5 22:55:45 2012 -0800

[perl #92706] In PerlIO::Scalar::seek, don’t assume SvPOKp

sample fail report
------------------
http://www.cpantesters.org/cpan/report/a5e741b8-968b-11e1-8755-e63c2a028b78

Already reported to https://github.com/schwern/test-more/issues/296:
only threaded perls fail.

perl -V
-------
Summary of my perl5 (revision 5 version 15 subversion 6) configuration:
Commit id: b65972750fa3efbb092421583feea1e3263028ad
Platform:
osname=linux, osvers=3.2.0-2-amd64, archname=x86_64-linux-thread-multi
uname='linux k83 3.2.0-2-amd64 #1 smp mon apr 30 05:20:23 utc 2012 x86_64 gnulinux '
config_args='-Dprefix=/home/src/perl/repoperls/installed-perls/perl/v5.15.6-409-gb659727/9980 -Dmyhostname=k83 -Dinstallusrbinperl=n -Uversiononly -Dusedevel -des -Ui_db -Duseithreads -Uuselongdouble -DDEBUGGING=-g'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.6.3', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
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 -L/usr/local/lib'
libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.13'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP 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_PERLIO
USE_PERL_ATOF USE_REENTRANT_API
Built under linux
Compiled at May 6 2012 08:15:26
@INC:
/home/src/perl/repoperls/installed-perls/perl/v5.15.6-409-gb659727/9980/lib/site_perl/5.15.6/x86_64-linux-thread-multi
/home/src/perl/repoperls/installed-perls/perl/v5.15.6-409-gb659727/9980/lib/site_perl/5.15.6
/home/src/perl/repoperls/installed-perls/perl/v5.15.6-409-gb659727/9980/lib/5.15.6/x86_64-linux-thread-multi
/home/src/perl/repoperls/installed-perls/perl/v5.15.6-409-gb659727/9980/lib/5.15.6
.

--
andreas


perlbug-followup at perl

May 6, 2012, 9:48 AM

Post #2 of 5 (113 views)
Permalink
[perl #112780] Bleadperl v5.15.6-409-gb659727 breaks MSCHWERN/Test-Simple-1.005000_005.tar.gz [In reply to]

This one is pretty severe for Test::More. I had a very hard time
finding a way to share filehandles across threads that was backwards
compatible. If this doesn't work in 5.16, I'm kinda sunk.

What I'm doing is pretty hacky, so there might be a way to fix it at my
end. Here's the code and test in question for somebody who understands
threads to evaluate.
https://github.com/schwern/test-more/blob/Test-Builder1.5/lib/TB2/ThreadSafeFilehandleAccessor.pm
https://github.com/schwern/test-more/blob/Test-Builder1.5/t/Streamer/ThreadSafeFilehandleAccessor.t

---
via perlbug: queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=112780


perlbug-followup at perl

May 6, 2012, 6:12 PM

Post #3 of 5 (113 views)
Permalink
[perl #112780] Bleadperl v5.15.6-409-gb659727 breaks MSCHWERN/Test-Simple-1.005000_005.tar.gz [In reply to]

On Sun May 06 09:48:08 2012, schwern wrote:
> This one is pretty severe for Test::More. I had a very hard time
> finding a way to share filehandles across threads that was backwards
> compatible. If this doesn't work in 5.16, I'm kinda sunk.
>
> What I'm doing is pretty hacky, so there might be a way to fix it at
> my
> end. Here's the code and test in question for somebody who
> understands
> threads to evaluate.
> https://github.com/schwern/test-more/blob/Test-
> Builder1.5/lib/TB2/ThreadSafeFilehandleAccessor.pm
> https://github.com/schwern/test-more/blob/Test-
> Builder1.5/t/Streamer/ThreadSafeFilehandleAccessor.t

I can reduce it to this:

use threads;
my $str = '';
open my $fh, ">", \$str;
print $fh "a";

async { print $fh "b"; warn $str }->join
__END__

From 5.8.9 to 5.14.2 I get this:

ab at - line 6.

In bleadperl I get this:

b at - line 6.


That’s a pretty serious regression. May I go ahead and fix it before 5.16?


--

Father Chrysostomos


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


perl.p5p at rjbs

May 7, 2012, 7:28 AM

Post #4 of 5 (112 views)
Permalink
Re: [perl #112780] Bleadperl v5.15.6-409-gb659727 breaks MSCHWERN/Test-Simple-1.005000_005.tar.gz [In reply to]

* Father Chrysostomos via RT <perlbug-followup [at] perl> [2012-05-06T21:12:40]
> That’s a pretty serious regression. May I go ahead and fix it before 5.16?

That's a nice one. Go for it.

--
rjbs
Attachments: signature.asc (0.48 KB)


perlbug-comment at perl

May 7, 2012, 8:45 PM

Post #5 of 5 (115 views)
Permalink
[perl #112780] Bleadperl v5.15.6-409-gb659727 breaks MSCHWERN/Test-Simple-1.005000_005.tar.gz [In reply to]

Fixed in commit 49b69fb3a3.

--

Father Chrysostomos

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.