Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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?

Comment on Using for a thread error
Select or Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2015-11-28 10:18 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls