bugGNU Scientific Library - Bugs: bug #42960, GSL testsuite fails when GNU make...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42960: GSL testsuite fails when GNU make called with -jX where X > 1

Submitter:  Thomas Anderson <tanderson>
Submitted:  Sun 10 Aug 2014 08:22:38 AM UTC
   
 
Category:  Build Severity:  3 - Normal
Operating System:  GNU/Linux Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release:  1.16

Mon 18 Aug 2014 09:58:04 PM UTC, comment #2: 

Fixed in commit 12654373c3b60541230921aae81f93b484ec5eaf

Patrick Alken <psa>
Group administrator
Mon 18 Aug 2014 09:45:40 PM UTC, comment #1: 

The problem is a file race condition in the fwrite/fread and fwrite/fscanf tests. These routines write a file called "test.dat" and "test.txt" respectively, and the -j2 will cause 'test' and 'test_static' to read/write the same files at the same time.

The fix is to convert this to use mkstemp instead of fixed filenames.

Patrick Alken <psa>
Group administrator
Sun 10 Aug 2014 08:22:38 AM UTC, original submission:  

I have noticed that gsl 1.16 (but not 1.15) fails the testsuite if
make is run with multiple jobs("make -j2 check"). I am on GNU/Linux
x86_64 with GNU make 4.0, GCC 4.8.2. The error is (not surprisingly)
independent of optimization level.

The contents of test.log are:

gsl: fprintf_source.c:164: ERROR: fscanf failed
Default GSL error handler invoked.

The full build error is (no error with -j1 option, the testsuite passes
fully) attached.

Thomas Anderson <tanderson>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #31883:  tmp added by tanderson (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psa (Posted a comment)
  • -email is unavailable- added by tanderson (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-18 psa StatusNone Fixed
        Open/ClosedOpen Closed
    2014-08-10 tanderson Attached File- Added tmp, #31883

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code