Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Using bisect.pl for a thread error

by MCMic (Initiate)
on May 07, 2013 at 16:10 UTC ( #1032501=perlquestion: print w/replies, xml ) Need Help??
MCMic has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I'm trying to figure out when a bug was fixed in perl using bisect.pl.
The bug is a glibc crash occurring when I do the following:
perl -e 'use threads;use POE::Kernel; threads->create(sub{})->join;'
It works with 5.16, crash with 5.14

I tried the following:
../perl/Porting/bisect.pl -Accflags=-Duseithreads --start v5.14.0 --end v5.16.0 --expect-fail -- ./perl -Ilib -e "use threads;use POE::Kernel; threads->create(sub{})->join; exit;"
But I get "This Perl not built to support threads", despite my use of "-Duseithreads"

What am I missing?

Replies are listed 'Best First'.
Re: Using bisect.pl for a thread error
by Corion (Pope) on May 07, 2013 at 16:16 UTC

    Have you tried -Dusethreads (no "i" there)?

Re: Using bisect.pl for a thread error
by dave_the_m (Prior) on May 07, 2013 at 19:40 UTC
    You're setting -Duseithreads in the wrong place. This is Configure's -D, not the C compiler's -D. Just drop the 'Accflags':

    ../perl/Porting/bisect.pl -Duseithreads --start v5.14.0 --end v5.16.0 +--expect-fail -- ./perl -Ilib -e "use threads;use POE::Kernel; thread +s->create(sub{})->join; exit;"

    Dave.

      Thank you, that was indeed the problem!

      http://search.cpan.org/dist/perl-5.17.10/Porting/bisect-runner.pl#OPTIONS is not very clear about that, I read "-Accflags=-DNO_MATHOMS Arguments to pass to Configure."
      While it meant -A, -D and -U arguments were passed to configure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1032501]
Approved by herveus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2016-09-28 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (532 votes). Check out past polls.