Welcome, Guest
Username: Password: Remember me

TOPIC: Segmentation fault when running aed2 example

Segmentation fault when running aed2 example 4 years 1 week ago #37154

  • amyrhulbakar
  • amyrhulbakar's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
Hi all,

I am running waq3d_aed2_flum example through scalar (also parallel) mode at v8p1r2 compilation yet resulted the segmentation fault as shown in the attached listings.

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Anybody knows the source of this error and how to fix it? Very much appreciate you suggestion.

Thanks,
Amyrhul
Attachments:
The administrator has disabled public write access.

Segmentation fault when running aed2 example 4 years 1 week ago #37158

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Amyrhul,

Can you change the enclosed file with some additional variables initialisation and tell me if it works for you? It is a fix sent by Alexander Breugem (TUC2020-2021 organiser) who also saw a segfault issue with the AED2 with his own config and already pushed in the trunk, but it was not in tag v8p1r2 (sorry).

Can you just give me more information about your configuration. Ubuntu + which compiler/version? As I have not seen this issue, I would like to understand, thanks.

Hope this helps,

Chi-Tuan

PS : i do not know if .nml extension is allowed, so I also join a .txt file (which is exactly the same).
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: amyrhulbakar

Segmentation fault when running aed2 example 4 years 1 week ago #37163

  • amyrhulbakar
  • amyrhulbakar's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
Hello Chi-Tuan,

I am using Ubuntu 18.04 with gfortran compiler 7.5.0.

Having changed the extension of .nml to .txt for aed2 files also resulted the same segmentation fault. May I know further details on what you meant by "change with some additional variables initialisation"?

For your info, the makefile and aed2 sources from v8p1r2 were utilised to activate the module. Settings for the environment variables and the configuration were as follows as referred to the installation_on_linux.

export AEDHOME=$HOMETEL/optionals/aed2
export LD_LIBRARY_PATH=$AEDHOME/lib:$LD_LIBRARY_PATH

incs_all: -I$AEDHOME/include -I$AEDHOME/mod
cmd_obj: gfortran -c -cpp -O3 -fconvert=big-endian -frecord-marker=4 -DHAVE_AED2 <mods> <incs> <f95name>
libs_all: /home/ubuntu/telemac-mascaret/v8p1r2/optionals/aed2/lib/libaed2.a

Any glitch from the above information?

Regards,
Amyrhul
The administrator has disabled public write access.

Segmentation fault when running aed2 example 4 years 1 week ago #37174

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Amyrhul,

Sorry not to have been totally clear. My suggestion for the .txt extension was because I feared that .nml files could not be uploaded on this forum and... that is the case as you should only have seen the .txt file.

My current suggestion is to replace your local aed2.nml file by the aed2.txt previously changed, but with the change of extension. And try again to run the example. I hope this will solve your issue like for Alexander. Otherwise it will be difficult for me to help you as I cannot reproduce the issue.

The added modifications were:
Fsed_ch4 = -9999
Fsed_feii = -9999
and
Fsed_ch4 = -1e10,-1e10,-1e10
Fsed_feii = -1e10,-1e10,-1e10
after every Fsed_dic setting (in &aed2_sed_constant and &aed2_sed_const2d).

About your installation, you can have a look at the systel.edf.cfg config file with configuration S9.gfortran which is suited for debian + aed2. I know it works.

Independently to your issue, I would suggest you to use a O2 optimisation rather than O3, O3 may give you strange results.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: amyrhulbakar

Segmentation fault when running aed2 example 3 years 10 months ago #37674

  • amyrhulbakar
  • amyrhulbakar's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
Hello Chi-Tuan,

Thank you very much for replying to my questions. This is a little bit delay but glad to let you know that the latest version v8p2r0 is working correctly on my machine for the aed2 example. B)

Regards,
Amyrhul
The administrator has disabled public write access.
The following user(s) said Thank You: pham

Segmentation fault when running aed2 example 3 years 10 months ago #37681

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Good news Amyrhul,

Thanks for your feedback.

Chi-Tuan
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.