develooper Front page | perl.perl5.porters | Postings from December 2012

Re: [perl #116090] Bleadperl breaks GFUJI/Text-Xslate-1.6001.tar.gz

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
December 14, 2012 13:16
Subject:
Re: [perl #116090] Bleadperl breaks GFUJI/Text-Xslate-1.6001.tar.gz
Message ID:
20121214131632.GH1842@iabyn.com
On Thu, Dec 13, 2012 at 11:09:40PM -0800, Andreas J. Koenig via RT wrote:
> I have no bisect for this one because the test result is random:
> sometimes OK, sometimes SEGV. I saw it the first time happen with
> v5.17.6-281-g01f4497. The test script that triggered it was
> t/010_internals/100_threads.t. I just ran the test with v5.17.6 a
> hundred times without crash, so I suppose the problem stems from some
> commit after that.

Given that its crashing while freeing a hash, perhaps the randomness of
the crash is related to the new hash randomisation. In which case you
could run it with the env var PERL_HASH_SEED_DEBUG=1, then when it
crashes, note the hash seed that was displayed at start up:

    HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0xd460791e

and then use that seed for the bisect:

    PERL_HASH_SEED=d460791e ./perl ...


Although Yves, I've just noticed that this seems to be a bit buggy:


$ PERL_HASH_SEED=1 PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0x10000000

$ PERL_HASH_SEED=0x1 PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0x00000000

$ PERL_HASH_SEED=f PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0xf0000000

$ PERL_HASH_SEED=100 PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0x10000000

$ PERL_HASH_SEED=10000 PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0x10000000

$ PERL_HASH_SEED=1000000 PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0x10000000

$ PERL_HASH_SEED=10000000 PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0x10000000

$ PERL_HASH_SEED=100000000 PERL_HASH_SEED_DEBUG=1 p -e 1
HASH_FUNCTION = ONE_AT_A_TIME HASH_SEED = 0x10000000






-- 
Monto Blanco... scorchio!

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