Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 0x7fcbd5c87ad0 in ???
#1 0x7fcbd5c86c35 in ???
#2 0x7fcbd5a7c51f in ???
at ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
#3 0x7fcbd6b07dab in arf_set
at /home/akhil/Arb/arb-2.23.0/arf.h:398
#4 0x7fcbd6b07dab in arb_set
at /home/akhil/Arb/arb-2.23.0/arb/set.c:17
#5 0x7fcbd6c32249 in acb_set
at /home/akhil/Arb/arb-2.23.0/acb.h:131
#6 0x7fcbd6c32249 in acb_calc_integrate
at /home/akhil/Arb/arb-2.23.0/acb_calc/integrate.c:182
#7 0x55afc7de79ef in facb_calc_integrate
at /home/akhil/Arb/FortranCInteroperability/farb/farblib.F90:476
#8 0x55afc7de7d7c in complexintegral
at /home/akhil/Arb/FortranCInteroperability/farb/farb.F90:144
#9 0x55afc7de7eeb in main
at /home/akhil/Arb/FortranCInteroperability/farb/farb.F90:2
Segmentation fault (core dumped)
Using Valgrind ( valgrind ./a.out ):
==69262== Memcheck, a memory error detector
==69262== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==69262== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==69262== Command: ./a.out
==69262==
==69262== Invalid read of size 8
==69262== at 0x4926DAB: arf_set (arf.h:398)
==69262== by 0x4926DAB: arb_set (set.c:17)
==69262== by 0x4A51249: acb_set (acb.h:131)
==69262== by 0x4A51249: acb_calc_integrate (integrate.c:182)
==69262== by 0x10A9EF: facb_calc_integrate (farblib.F90:476)
==69262== by 0x10AD7C: MAIN__ (farb.F90:144)
==69262== by 0x10AEEB: main (farb.F90:2)
==69262== Address 0xc800000000000000 is not stack'd, malloc'd or (recently) free'd
==69262==
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 0x5761ad0 in ???
#1 0x5760c35 in ???
#2 0x5a5b51f in ???
at ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
#3 0x4926dab in arf_set
at /home/akhil/Arb/arb-2.23.0/arf.h:398
#4 0x4926dab in arb_set
at /home/akhil/Arb/arb-2.23.0/arb/set.c:17
#5 0x4a51249 in acb_set
at /home/akhil/Arb/arb-2.23.0/acb.h:131
#6 0x4a51249 in acb_calc_integrate
at /home/akhil/Arb/arb-2.23.0/acb_calc/integrate.c:182
#7 0x10a9ef in facb_calc_integrate
at /home/akhil/Arb/FortranCInteroperability/farb/farblib.F90:476
#8 0x10ad7c in complexintegral
at /home/akhil/Arb/FortranCInteroperability/farb/farb.F90:144
#9 0x10aeeb in main
at /home/akhil/Arb/FortranCInteroperability/farb/farb.F90:2
==69262==
==69262== Process terminating with default action of signal 11 (SIGSEGV)
==69262== at 0x5AAFA7C: __pthread_kill_implementation (pthread_kill.c:44)
==69262== by 0x5AAFA7C: __pthread_kill_internal (pthread_kill.c:78)
==69262== by 0x5AAFA7C: pthread_kill@@GLIBC_2.34 (pthread_kill.c:89)
==69262== by 0x5A5B475: raise (raise.c:26)
==69262== by 0x5A5B51F: ??? (in /usr/lib/x86_64-linux-gnu/libc.so.6)
==69262== by 0x4926DAA: arf_set (arf.h:398)
==69262== by 0x4926DAA: arb_set (set.c:17)
==69262== by 0x4A51249: acb_set (acb.h:131)
==69262== by 0x4A51249: acb_calc_integrate (integrate.c:182)
==69262== by 0x10A9EF: facb_calc_integrate (farblib.F90:476)
==69262== by 0x10AD7C: MAIN__ (farb.F90:144)
==69262== by 0x10AEEB: main (farb.F90:2)
==69262==
==69262== HEAP SUMMARY:
==69262== in use at exit: 16,040 bytes in 26 blocks
==69262== total heap usage: 26 allocs, 0 frees, 16,040 bytes allocated
==69262==
==69262== LEAK SUMMARY:
==69262== definitely lost: 0 bytes in 0 blocks
==69262== indirectly lost: 0 bytes in 0 blocks
==69262== possibly lost: 0 bytes in 0 blocks
==69262== still reachable: 16,040 bytes in 26 blocks
==69262== suppressed: 0 bytes in 0 blocks
==69262== Rerun with --leak-check=full to see details of leaked memory
==69262==
==69262== For lists of detected and suppressed errors, rerun with: -s
==69262== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
I wrote a simple code for Complex Integration :
FARBLIB Module:
I compiled the program using gfortran:
I am getting the following Error :
Using Valgrind ( valgrind ./a.out ):