Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Using 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:

I'm trying to figure out when a bug was fixed in perl using
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/ -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 for a thread error
by Corion (Pope) on May 07, 2013 at 16:16 UTC

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

Re: Using 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/ -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;"


      Thank you, that was indeed the problem! 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1032501]
Approved by herveus
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2018-03-20 16:10 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (254 votes). Check out past polls.