http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55479



             Bug #: 55479

           Summary: gfortran.dg/coarray/registering_1.f90 -fcoarray=lib

                    -O2  -lcaf_single execution test fails with

                    -fsanitize=address

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: sanitizer

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: howa...@nitro.med.uc.edu

                CC: do...@gcc.gnu.org, dvyu...@gcc.gnu.org,

                    ja...@gcc.gnu.org, k...@gcc.gnu.org





On x86_64-apple-darwin12...



make -k check-gfortran RUNTESTFLAGS="--target_board=unix'{-fsanitize=address}'" 



..results in the new failure...



FAIL: gfortran.dg/coarray/registering_1.f90 -fcoarray=lib  -O2  -lcaf_single

execution test



which is due to a Segmentation fault that backtraces as...



GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug  5 03:00:42 UTC 2012)

Copyright 2004 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared

libraries ....... done



(gdb) r

Starting program:

/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/registering_1.exe
 

Reading symbols for shared libraries ++++++.................................

done



Program received signal EXC_BAD_ACCESS, Could not access memory.

Reason: KERN_INVALID_ADDRESS at address: 0x00001000205c151e

0x0000000100001507 in _caf_init.1 () at secure/_string.h:83

83      return __builtin___memset_chk (__dest, __val, __len,

__darwin_obsz0(__dest));

(gdb) bt

#0  0x0000000100001507 in _caf_init.1 () at secure/_string.h:83

#1  0x00007fff5fc0fda6 in

__dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE

()

#2  0x00007fff5fc0faf2 in

__dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE

()

#3  0x00007fff5fc0d2e4 in

__dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE

()

#4  0x00007fff5fc0e0b7 in

__dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE

()

#5  0x00007fff5fc034dd in __dyld__ZN4dyld24initializeMainExecutableEv ()

#6  0x00007fff5fc0760b in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()

#7  0x00007fff5fc01059 in __dyld__dyld_start ()

(gdb)

Reply via email to