#922 ATLAS segfaults on ARM


Atlas 3.10.1 is now in Fedora Rawhide. However, most applications and the atlas checks will segfault on ARM. See also https://bugzilla.redhat.com/show_bug.cgi?id=1011648

/usr/bin/gfortran -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=softfp -O -mfpu=neon -mfloat-abi=hard -g -Wa,--noexecstack -fPIC  -o xsuumtst suumtst.o \
                   /builddir/build/BUILD/ATLAS/arm_base/lib/libtstatlas.a /builddir/build/BUILD/ATLAS/arm_base/lib/liblapack.a /builddir/build/BUILD/ATLAS/arm_base/lib/libcblas.a /builddir/build/BUILD/ATLAS/arm_base/lib/libf77blas.a \
                   /builddir/build/BUILD/ATLAS/arm_base/lib/libatlas.a -lpthread -lm
/builddir/build/BUILD/ATLAS/arm_base/bin/ATLrun.sh /builddir/build/BUILD/ATLAS/arm_base/bin xsslvtst -n 167 -r 83 -O 2 c r \
                  >> /builddir/build/BUILD/ATLAS/arm_base/bin/sanity.out
/builddir/build/BUILD/ATLAS/arm_base/bin/ATLrun.sh: line 4:  9493 Segmentation fault      $atldir/$*


  • R. Clint Whaley

    R. Clint Whaley - 2013-10-02
    • assigned_to: R. Clint Whaley
  • Orion Poplawski

    Orion Poplawski - 2013-10-02

    Hmm, partially. We had the architecture file and selected with -A 46. We passed in -mfpu=neon -mfloat-abi=hard to configure. We were missing -DATL_ARM_HARDFP=1 so I added that. Rebuilt and now we are failing here:

    /builddir/build/BUILD/ATLAS/arm_base/bin/ATLrun.sh /builddir/build/BUILD/ATLAS/arm_base/bin xsqrtst_pt -n 1 477 -m 1 517 -U 2 u l \                  -S 2 r l >> /builddir/build/BUILD/ATLAS/arm_base/bin/ptsanity.out
    make[3]: *** [ssanity_test_pt] Error 1

    Full logs: http://kojipkgs.fedoraproject.org//work/tasks/6887/6016887/build.log

    I do see some files compiled like:

    /usr/bin/armv7hl-redhat-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard -DATL_ARM_HARDFP=1 -g -Wa,--noexecstack -fPIC -DL2SIZE=4194304 -I/builddir/build/BUILD/ATLAS/arm_base/include -I/builddir/build/BUILD/ATLAS/arm_base/..//include -I/builddir/build/BUILD/ATLAS/arm_base/..//include/contrib -DAdd_ -DF77_INTEGER=int -DStringSunStyle -DATL_OS_Linux -DATL_ARCH_ARMv7 -DATL_NEON -DATL_GAS_ARM -DWALL -DATL_FULL_LAPACK -DATL_NCPU=2 -DATL_UCLEANM -DATL_UCLEANN -DATL_UCLEANK -DATL_BETA=X -c -x assembler-with-cpp -mfpu=vfpv3 ATL_cupKBmm78_2_1_bX.c

    Note the -mfpu=vfpv3 after the -mfpu=neon.

  • Orion Poplawski

    Orion Poplawski - 2013-10-02

    Another build: http://kojipkgs.fedoraproject.org//work/tasks/7648/6017648/build.log

    This time I removed the -mfpu=vfpv3 option from the tune/blas/gemm/CASES/*.flg files which seemed to be where they were coming from. I also had the build output the ptsanity.out file. Too much to paste here so please take a look.

  • Orion Poplawski

    Orion Poplawski - 2013-10-03

    Hmm, actually dropping my debug patch, make check ptcheck completes. Makes me wonder though about the return code of some individual tests not getting caught?

  • R. Clint Whaley

    R. Clint Whaley - 2013-10-03

    So, if you use the ARM errata with default install, things work OK? I'm not sure what you mean by "my debug patch", and therefore what this has to do with return codes of individual tests (what tests, what return codes)?


  • R. Clint Whaley

    R. Clint Whaley - 2014-07-09
    • status: open --> closed-fixed
  • R. Clint Whaley

    R. Clint Whaley - 2014-07-09

    Closing as fixed.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks