#270 PLplot trouble with new PThreads

critical
closed-fixed
nobody
other (94)
9
2012-05-18
2011-05-18
David Mertens
No

PLplot is not threadsafe. When run with PThreads, it can be made to produce bad output. I've attached a simple script that creates said bad output. The solution is to add the NoPThreads flag to the PLplot bindings.

Discussion

  • David Mertens
    David Mertens
    2011-05-18

    Example of output with PThreads disabled.

     
    Attachments
  • David Mertens
    David Mertens
    2011-05-18

    Example of bad output with PThreads enabled.

     
    Attachments
  • David Mertens
    David Mertens
    2011-05-18

    Output of pdl -V

     
    Attachments
  • Chris Marshall
    Chris Marshall
    2011-08-14

    • labels: --> other
    • milestone: --> critical
    • priority: 5 --> 9
     
  • Chris Marshall
    Chris Marshall
    2011-08-14

    Marking this as critical as it is a showstopper for PLplot users
    and the new multicore support feature.

     
  • David Mertens
    David Mertens
    2011-08-26

    Bug fixed in Git.
    Thanks for reporting the problem!

     
  • David Mertens
    David Mertens
    2011-08-26

    • status: open --> pending-fixed
     
  • David Mertens
    David Mertens
    2011-08-26

    I have submitted something that I believe solves the problem in the latest git repo. I cannot test it, however, Somebody who has PLplot installed needs to confirm that the update does indeed solve the problem.

     
  • Chris Marshall
    Chris Marshall
    2012-05-18

    • status: pending-fixed --> closed-fixed