Code Monkey home page Code Monkey logo

Comments (5)

cdluminate avatar cdluminate commented on May 27, 2024 1

Ok, after fixing the test implementation (#964), the ZDNRM2 test breaks again with Debian specific build flags. I think I should try to contribute a CI test with Debian build flags. Those stack protection flags can help you guys catch more bugs.

from lapack.

angsch avatar angsch commented on May 27, 2024

There is a typo in the test that on most systems apparently yields a zero, but not on the two systems above.

@cdluminate I sent you an email.

from lapack.

cdluminate avatar cdluminate commented on May 27, 2024

BTW, the following is the default build flags for Debian (distribution-wide):

CFLAGS=-g -O2 -ffile-prefix-map=/home/lumin=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2
FFLAGS=-g -O2 -ffile-prefix-map=/home/lumin=. -fstack-protector-strong -fstack-clash-protection -fcf-protection
LDFLAGS=-Wl,-z,relro

I've not yet verified which argument triggered the bug. But I cannot reproduce the issue on i386 with the default flags in make.inc. The bug only appears when built using debian's flags and tools. There is a resemblance to #961 which is only triggered by coverage build.

from lapack.

cdluminate avatar cdluminate commented on May 27, 2024

With the default flags in make.inc. The test passed. But with stack protections, you can reproduce the issue with (1) the following config, (2) Patch #964, and (3) the command make blas_testing on an amd64 machine.

21c21
< FFLAGS = -O2 -frecursive
---
> FFLAGS = -g -O2 -fstack-protector-strong -fstack-clash-protection -fcf-protection
27c27
< LDFLAGS =
---
> LDFLAGS = -Wl,-z,relro

The error looks like

 Test of subprogram number  6            DZNRM2                                                                                
                                       FAIL                                                                                    
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 1, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 2, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 3, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 4, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 5, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 6, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 7, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 8, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW= 9, test=            NaN                                                               
 DZNRM2: N=     1, INCX=  -2, IV= 9, IW=10, test=            NaN                                                               
                                       FAIL                                                                                    
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 1, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 2, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 3, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 4, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 5, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 6, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 7, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 8, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW= 9, test=            NaN                                                               
 DZNRM2: N=     1, INCX=   1, IV= 9, IW=10, test=            NaN                                                               
                                       FAIL                                                                                    
 DZNRM2: N=     2, INCX=  -2, IV= 1, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 2, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 3, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 4, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 5, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 6, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 7, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 8, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 1, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 2, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 3, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 4, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 5, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 6, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 7, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 8, test=            NaN                                                               
 DZNRM2: N=     2, INCX=  -2, IV= 9, IW= 9, test=            NaN                                                               
                                       FAIL                                                                                    
 DZNRM2: N=     2, INCX=   1, IV= 1, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=   1, IV= 2, IW= 9, test=            NaN                                                               
 DZNRM2: N=     2, INCX=   1, IV= 3, IW= 9, test=            NaN          

[...truncated...]

Update: cblas1.f fails just like zcblas1.f.

from lapack.

angsch avatar angsch commented on May 27, 2024

I will have a look at this on the weekend.

from lapack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.