Welcome, Guest
Username: Password: Remember me

TOPIC: Segmentation fault - invalid memory reference

Segmentation fault - invalid memory reference 6 years 2 months ago #31337

  • TheGunslinger
  • TheGunslinger's Avatar
Hello,

I noticed that when I turn the keyword LIMIT SPECTRUM MODIFIED BY THE USER into YES/TRUE this error occures:

================================================================================
TEMPS : 0.0000 SECONDES 0IEME ITERATION
_____________
runcode::main:
:
|runCode: Fail to run
|C:\Users\Sara\Desktop\aiuto\quad.cas_2018-09-01-18h34min53s\out_fortran_modif2.exe
|~~~~~~~~~~~~~~~~~~
|Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
|
|Backtrace for this error:
|~~~~~~~~~~~~~~~~~~

C:\Windows\System32>
C:\Windows\System32>tomawac.py C:\Users\Sara\Desktop\aiuto\quad.cas

I think I need this keyword because I'm doing a simulation in which I change the wave height as the time passes (tomawac topic Swell).

If I don't use the keyword, the simulation does not take the wave height signal (so the fortran file) into account.

May anybody know how to solve this problem?

Thank you
Attachments:
The administrator has disabled public write access.

Segmentation fault - invalid memory reference 6 years 2 months ago #31338

  • TheGunslinger
  • TheGunslinger's Avatar
Moreover I don't think it's a problem related to the mesh size. I did this simulation with 4 or 5 different geometries which always worked before (other test cases).
The administrator has disabled public write access.

Segmentation fault - invalid memory reference 6 years 2 months ago #31354

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
Hello

This will not explain every thing but i have some remarks,

- If you are using version V7P3 you should update your fortran user (limwac) the one you are using doesn't have the good number of arguments.

- You are reading only the 10 first points of your file which have around 1000 points.

- the way you read your points suppose that your time is increasing but that is not the case in the txt file (time 0 is at line 38)

- The test AT.EQ.AT_PP(K) might not occur, firstly because at_pp(1).eq.78600 and because it is dangerous to test equality of double.
Better to test abs(at-at_pp(k)).LT.1.e-7

- May be that the last point is change your call to speini :

'call speini(fbor' instead of 'call speini(FB_CTE'

since fb_cte is not allocated when speuli is true
The administrator has disabled public write access.
The following user(s) said Thank You: TheGunslinger

Segmentation fault - invalid memory reference 6 years 2 months ago #31538

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I face a similar issue.
I created a model and could run it perfectly in v7p2 on Ubuntu 16.04. No I installed v7p3 on Win10 and wanted to run my model, since I miss a result file.
Unfortunately I can not run a single simulation since I always get the error
Program received signal SIGSEGV: Segmentation fault - invalid memory reference

I attach the Output to get a better view of the problem.

Moreover, I sometimes get an error, that the Keyword is not recognized, usually it is the one from the TOMAWAC .cas file. How can I fix this? I tested several examples and all run perfectly.

Thank you so much for help in advance.
Regards,
Clemens
Attachments:
The administrator has disabled public write access.
Moderators: tfouquet

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