Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?

Comment on Using bisect.pl for a thread error
Select or Download Code
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 (Parson) 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 examining the Monastery: (5)
As of 2015-08-01 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls