[FLASH-USERS] Segmentation fault - invalid memory reference.

Reyes, Adam adam.reyes at rochester.edu
Tue Dec 5 12:57:01 EST 2023


Hi Amar,

How exactly did you change those lines? MPI_Type_get_extent has a different interface and so a line like

  call MPI_Type_extent(FLASH_REAL, realExtent, ierr)

Should be transformed to

  call MPI_Type_extent(FLASH_REAL, realLb,realExtent, ierr)

Or something similar to maintain the same behavior in FLASH.

I’m attaching a patch that can be applied to the unmodified source, just put it in the root FLASH directory and run

	patch -p1 < 0001-MPI_TYPE_GET_EXTENT-in-timers.patch  

Or you can look at the diff and see how it should work.

*********************************************
Adam Reyes


Code Group Leader, Flash Center for Computational Science  
Research Scientist, Dept. of Physics and Astronomy
University of Rochester
River Campus: Bausch and Lomb Hall, 369  
500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
Email adam.reyes at rochester.edu
Web https://flash.rochester.edu
 (he / him / his)


*********************************************



> On Dec 5, 2023, at 6:34 PM, amar at aries.res.in wrote:
> 
> Dear FLASH users,
> 
> I installed FLASH4.7.1 on two of my systems (both with Ubuntu 20.04). In one of the systems, FLASH is running fine, while the other system shows the following Segmentation fault error at the end of the simulation:
> 
> 
> Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
> 
> Backtrace for this error:
> #0  0x7f5668eaa08f in ???
> 	at /build/glibc-BHL3KM/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
> #1  0x7f5669d71737 in ???
> #2  0x442348 in tmr_broadcastroottimers_
> 	at /home/brics/Downloads/FLASH4.7.1/object/Timers_getSummary.F90:382
> #3  0x442553 in tmr_allprocssametimers_
> 	at /home/brics/Downloads/FLASH4.7.1/object/Timers_getSummary.F90:258
> #4  0x4430cd in timers_getsummary_
> 	at /home/brics/Downloads/FLASH4.7.1/object/Timers_getSummary.F90:179
> #5  0x409b86 in driver_evolveflash_
> 	at /home/brics/Downloads/FLASH4.7.1/object/Driver_evolveFlash.F90:497
> #6  0x404ab6 in flash
> 	at /home/brics/Downloads/FLASH4.7.1/object/Flash.F90:51
> #7  0x404ab6 in main
> 	at /home/brics/Downloads/FLASH4.7.1/object/Flash.F90:43
> 
> ===================================================================================
> =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
> =   PID 77619 RUNNING AT aries
> =   EXIT CODE: 139
> =   CLEANING UP REMAINING PROCESSES
> =   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
> ===================================================================================
> YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
> This typically refers to a problem with your application.
> Please see the FAQ page for debugging suggestions
> 
> 
> 
> While installing FLASH on the system showing the Segmentation fault error, I was required to change "MPI_Type_extent" to "MPI_Type_get_extent" in the Timers_getSummary.F90 file. Without this modification, the "make" command would not proceed successfully.
> 
> Please provide your valuable suggestions regarding this error. Also please let me know if I need to provide more information.
> 
> With best regards,
> Amar
> 
> 
> 
> _______________________________________________
> flash-users mailing list
> flash-users at flash.rochester.edu
> 
> For list info, including unsubscribe:
> https://flash.rochester.edu/mailman/listinfo/flash-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MPI_TYPE_GET_EXTENT-in-timers.patch
Type: application/octet-stream
Size: 1896 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH.jpg
Type: image/jpeg
Size: 23876 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment.jpg>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH-pride-sml.png
Type: image/png
Size: 12732 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1391 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20231205/9b8c85ec/attachment.p7s>


More information about the flash-users mailing list