[SOLVED] calculation fails with SIGSEGV

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
alberich

[SOLVED] calculation fails with SIGSEGV

Post by alberich »

Hello,

I am a bloody beginner using saturne. My first try, a flux in a pipe with a heated wall stopped with a SIGSEGV error (below the error file) in the "MAIN CALCULATION" ("listing" file) at the
INSTANT 0.100000000E+00 TIME STEP NUMBER 1

The data check (also the separate mesh check) and preprocessing was ok. All input was made using the native SATURNE GUI. The MED-mesh was made using the SALOME GUI. I tried to follow the simplest tutorials as close as possible (i.e. no user defined functions). I tried also to recompile saturne (3.0.0-betaR4215) and to use the nightly version instead. In vain. Can a bad input in the SATURNE GUI cause a segmentation fault?

al

Code: Select all

SIGSEGV signal (forbidden memory area access) intercepted!

Call stack:
   1: 0x7ff4c3b59be1 <+0x162be1>                      (libc.so.6)
   2: 0x7ff4c44e528c <mei_tree_new+0x5c>              (libsaturne.so.0)
   3: 0x7ff4c4440c19 <uiphyv_+0x4d9>                  (libsaturne.so.0)
   4: 0x7ff4c4133dee <phyvar_+0x35e>                  (libsaturne.so.0)
   5: 0x7ff4c41645f1 <tridim_+0xda9>                  (libsaturne.so.0)
   6: 0x7ff4c404b584 <caltri_+0x30e0>                 (libsaturne.so.0)
   7: 0x7ff4c4021e75 <cs_run+0xa35>                   (libsaturne.so.0)
   8: 0x7ff4c402135a <main+0x14a>                     (libsaturne.so.0)
   9: 0x7ff4c3a1876d <__libc_start_main+0xed>         (libc.so.6)
  10: 0x400719     <>                               (cs_solver)
End of stack
Last edited by alberich on Thu Dec 27, 2012 3:30 pm, edited 1 time in total.
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: calculation fails with SIGSEGV

Post by Yvan Fournier »

Hello,

I have already encountered this errot, and we do need to trap it so as to provide a more explicit error message:

What I suspect is:

In the GUI, for some physical property, you indicated you would use a "user law", but did not define the matching user law. When the code reads the XML file, it does not find a string definig the user law, and instead of checking if the string exists, it crashes when trying to parse it.

So I would check your user laws for physical qauntities, and either complete them, or revert to constant quantities.

Regards,

Yvan
alberich

Re: calculation fails with SIGSEGV

Post by alberich »

I missed that indeed.
Thank you.
al
Post Reply