Closed rquey closed 4 years ago
@rquey: Here is a gdb backtrace of the error:
#0 0x0000000006a71e57 in setitimer () at ../sysdeps/unix/syscall-template.S:78
#1 0x00000000003050ba in ut_sys_runwtime (exec=0x75e1130 "gmsh", command=0xd621270
"gmsh -3 -v 0 -order 1 ./tmp29440-8.geo -o ./tmp29440-8.msh > /dev/null 2> /dev/null",
t=1.1075895862662456e-315,
pctrlc_t=0x1ffeffe7f0) at /home/nerc10083/code/neper-3.4.0/src/contrib/ut/ut_sys/ut_sys.c:77
#2 0x000000000021e208 in nem_mesh_3d_gmsh (Tess=..., poly=1, Nodes=..., Mesh=0x75dfcb0, cl=0.5, clreps=0.02, gmsh=0x75e1130 "gmsh", tmp=0x75e1180 ".", algo=0xd5f3ed0 "netg", opti=0xd5f3f20 "gmsh", rnd=0,
allowed_t=1.1075895862662456e-315, pN=0xb9bd760, pM=0xb9bd700, pacl=0xb9bd6f8, pctrlc_t=0x1ffeffe7f0, pelapsed_t=0xb9bd6f0)
at /home/nerc10083/code/neper-3.4.0/src/neper_m/nem/nem_mesh_gmsh/nem_mesh_gmsh1.c:105
#3 0x000000000020ee16 in nem_meshing_3D_poly_algo (In=..., cl=0.5, mesh3dclreps=0.02, pMultim=0x1ffeffe800, algo=0, pctrlc_t=0x1ffeffe7f0, pallowed_t=0x1ffeffe7c8, pmax_elapsed_t=0x1ffeffe7d0, Tess=...,
Nodes=..., Mesh=0x75dfcb0, poly=1, pN=0xb9bd760, pM=0xb9bd700, pmOsize=0xb9bd6f8, pelapsed_t=0xb9bd6f0) at /home/nerc10083/code/neper-3.4.0/src/neper_m/nem_meshing/nem_meshing_3D/nem_meshing_3D3.c:30
#4 0x000000000020e705 in nem_meshing_3D_poly (In=..., cl=0.5, mesh3dclreps=0.02, pMultim=0x1ffeffe800, pctrlc_t=0x1ffeffe7f0, pallowed_t=0x1ffeffe7c8, pmax_elapsed_t=0x1ffeffe7d0, Tess=...,
pNodes=0x1ffefff730, Mesh=0x75dfcb0, pN=0xd5f1c38, pM=0xd5f1d58, poly=1) at /home/nerc10083/code/neper-3.4.0/src/neper_m/nem_meshing/nem_meshing_3D/nem_meshing_3D2.c:29
#5 0x000000000020e311 in nem_meshing_3D._omp_fn.0 () at /home/nerc10083/code/neper-3.4.0/src/neper_m/nem_meshing/nem_meshing_3D/nem_meshing_3D1.c:46
#6 0x000000000634c96e in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1
#7 0x00000000067846db in start_thread (arg=0xb9bf700) at pthread_create.c:463
#8 0x0000000006abd88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Interestingly, we have allowed_t=1.1075895862662456e-315
being moved about here and the pointer pallowed_t
seems to be uninitialized for 3D meshing. In the 2D meshing routine (nem_meshing_2D1.c), the double allowed_t
is declared, but not assigned any value until allowed_t = In.mesh2dmaxtime;
which gives it the value 10000. For whatever reason, getting allowed_t
to accept a value (preferably In.mesh3dmaxtime) in nem_meshing_3D1.c doesn't seem to want to work. I'm unsure why allowed_t
refuses to accept a value in the 3D meshing code, but perhaps you can get it to work.
No guarantees this is the issue, but its the only thing that jumps out at me as an issue from valgrind.
A memory error always arises (but never gets Neper to fail) in
ut_sys_runwtime
. It can be seen using, e.g., valgrind.First, Neper must be compiled in debugging mode:
Then, the error can be seen using
which yields