Dear all,
I used Feappv to do a project simulating the effect on the stent resulting from the impulse of the artery.
A user macro is applied to read mesh data generated by gmsh. This works well.
I can plot the mesh of the stent in the plot window of feappv.
But when I take a boundary and force as a test, feappv will crash after tang,,1.
And terminal returns the error: Segmentation fault - invalid memory reference.
I searched the past posts regarding the issue, and try to use valgrind to run it again to see where the problem is.
Then I found that the problem is at these lines in the 2 respective files.
The first is when loading mesh data. Feappv didn't crash but valgrind say there's some issue in "bjac3d.f:53"
==3146== Invalid read of size 16
==3146== at 0x17403A: bjac3d_ (bjac3d.f:53)
==3146== by 0x170FCF: ckbrk8_ (ckbrk8.f:69)
==3146== by 0x2088F3: pform_ (pform.f:215)
==3146== by 0x195EDF: formfe_ (formfe.f:63)
==3146== by 0x1E1FE9: pmacr1_ (pmacr1.f:732)
==3146== by 0x1763CE: pmacr_ (pmacr.f:373)
==3146== by 0x10D2EC: pcontr_ (pcontr.f:533)
==3146== by 0x10B762: feappv (feappv.f:130)
==3146== by 0x10B762: main (feappv.f:135)
==3146== Address 0x5c87fd0 is 0 bytes after a block of size 96 alloc'd
==3146== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==3146== by 0x1FDF27: setmem_ (setmem.f:81)
==3146== by 0x1D78F9: usetmem_ (usetmem.f:53)
==3146== by 0x1BDD06: ualloc_ (ualloc.f:57)
==3146== by 0x173B71: palloc_ (palloc.f:684)
==3146== by 0x171EAF: pnewprob_ (pnewprob.f:456)
==3146== by 0x10C7BE: pcontr_ (pcontr.f:409)
==3146== by 0x10B762: feappv (feappv.f:130)
==3146== by 0x10B762: main (feappv.f:135)
And when I command tang,,1, it would crash and return this error:
List 4 Command 1> tang,,1
*Command 1 * tang v: 1.00 0.00 0.00
t= 65.88 0.95
==3148== Warning: set address range perms: large range [0x59c9d040, 0xd6d7bfc0) (undefined)
==3148== Invalid read of size 8
==3148== at 0x2325AA: dasble_ (dasble.f:100)
==3148== by 0x208B36: pform_ (pform.f:321)
==3148== by 0x195EDF: formfe_ (formfe.f:63)
==3148== by 0x1E25DC: pmacr1_ (pmacr1.f:275)
==3148== by 0x1763CE: pmacr_ (pmacr.f:373)
==3148== by 0x10D2EC: pcontr_ (pcontr.f:533)
==3148== by 0x10B762: feappv (feappv.f:130)
==3148== by 0x10B762: main (feappv.f:135)
==3148== Address 0x3f0904240 is not stack'd, malloc'd or (recently) free'd
==3148==
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
I was wondering if there is a limit for the number of mesh elements.
There are almost 200k elements in the mesh file.
I'm not sure if it's the reason resulting in the error.
Any responses will be highly appreciated.
Thank you for your reading.
Sorry the mesh file can't exceed by 5000KB, so I can't post mesh file here.
Best,
Ruei-Bo