Hi,

I am not familiar with valgrind but I got this message with it.

Does it help ?

Thanks Suzon

==17785== Memcheck, a memory error detector
==17785== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==17785== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==17785== Command: ./NewDTest2PNCNI_Test_fractures params.input
==17785==
vex amd64->IR: unhandled instruction bytes: 0x62 0xF1 0xFD 0x28 0x6F 0x5 0x92 0x85 0x26 0x0
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=NONE
vex amd64->IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==17785== valgrind: Unrecognised instruction at address 0x2cbe64.
==17785==    at 0x2CBE64: ALUGrid::Gitter::Geometric::Tetra::initEdgesNotOnFace() (in /home/suzon/CODE_NUMERIQUES/dumux/dumux-Suzon/build-cmake/NewDTest2PNCNI_Test/NewDTest2PNCNI_Test_fractures) ==17785==    by 0x166CE6: _GLOBAL__sub_I_gitter_geo.cc (in /home/suzon/CODE_NUMERIQUES/dumux/dumux-Suzon/build-cmake/NewDTest2PNCNI_Test/NewDTest2PNCNI_Test_fractures) ==17785==    by 0x49F29C: __libc_csu_init (in /home/suzon/CODE_NUMERIQUES/dumux/dumux-Suzon/build-cmake/NewDTest2PNCNI_Test/NewDTest2PNCNI_Test_fractures)
==17785==    by 0x4E7F00F: (below main) (libc-start.c:264)
==17785== Your program just tried to execute an instruction that Valgrind
==17785== did not recognise.  There are two possible reasons for this.
==17785== 1. Your program has a bug and erroneously jumped to a non-code
==17785==    location.  If you are running Memcheck and you just saw a
==17785==    warning about a bad jump, it's probably your program's fault.
==17785== 2. The instruction is legitimate but Valgrind doesn't handle it,
==17785==    i.e. it's Valgrind's fault.  If you think this is the case or
==17785==    you are not sure, please let us know and we'll try to fix it.
==17785== Either way, Valgrind will now raise a SIGILL signal which will
==17785== probably kill your program.
==17785==
==17785== Process terminating with default action of signal 4 (SIGILL)
==17785==  Illegal opcode at address 0x2CBE64
==17785==    at 0x2CBE64: ALUGrid::Gitter::Geometric::Tetra::initEdgesNotOnFace() (in /home/suzon/CODE_NUMERIQUES/dumux/dumux-Suzon/build-cmake/NewDTest2PNCNI_Test/NewDTest2PNCNI_Test_fractures) ==17785==    by 0x166CE6: _GLOBAL__sub_I_gitter_geo.cc (in /home/suzon/CODE_NUMERIQUES/dumux/dumux-Suzon/build-cmake/NewDTest2PNCNI_Test/NewDTest2PNCNI_Test_fractures) ==17785==    by 0x49F29C: __libc_csu_init (in /home/suzon/CODE_NUMERIQUES/dumux/dumux-Suzon/build-cmake/NewDTest2PNCNI_Test/NewDTest2PNCNI_Test_fractures)
==17785==    by 0x4E7F00F: (below main) (libc-start.c:264)
==17785==
==17785== HEAP SUMMARY:
==17785==     in use at exit: 5,672 bytes in 25 blocks
==17785==   total heap usage: 31 allocs, 6 frees, 119,332 bytes allocated
==17785==
==17785== LEAK SUMMARY:
==17785==    definitely lost: 0 bytes in 0 blocks
==17785==    indirectly lost: 0 bytes in 0 blocks
==17785==      possibly lost: 0 bytes in 0 blocks
==17785==    still reachable: 5,672 bytes in 25 blocks
==17785==         suppressed: 0 bytes in 0 blocks
==17785== Rerun with --leak-check=full to see details of leaked memory
==17785==
==17785== For lists of detected and suppressed errors, rerun with: -s
==17785== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Illegal instruction (core dumped)

On 09/09/2024 15:30, Martin Schneider wrote:
Hi Suzon,

I tried to read-in your grid and I don't see any issues, so I guess it is related to your test case. I would again suggest to use some tool to get more details where the error is thrown.

Best,
Martin

On 09.09.24 14:54, Suzon Jammes wrote:
Hi martin,

I am using a code that was working before. I just changed the input file to read the new grid. The problem seems to be coming from the mesh file but I don't understand why.

Suzon

On 09/09/2024 13:32, Martin Schneider wrote:
Dear Suzon,

did you try to use some debugger / valgrind to see at which line in your code the error is thrown.
It seems that the size of some of your vectors is not large enough.

Best,
Martin


On 09.09.24 11:19, Suzon Jammes wrote:
Hi all,

I am still working on the fracture problem.

With Matlab and gmsh I created a grid setup that I would like to use for my models.

The msh file seems to be ok (see files attached) but when I try to use it in a simulation I get the following error message :

Invalid MIT-MAGIC-COOKIE-1 keyReading parameters from file params.input. WARNING (ignored): Could not open file 'alugrid.cfg', using default values! ALUGrid-LB values: 0 < [balance] < 1.2, partitioning method 'ALUGRID_SpaceFillingCurve(9)'.

You are using DUNE-ALUGrid, please don't forget to cite the paper:
Alkaemper, Dedner, Kloefkorn, Nolte. The DUNE-ALUGrid Module, 2016.

Created parallel ALUGrid<2,2,simplex> (conforming) from input stream.

Computed bounding box tree with 11087 nodes for 5544 grid entities in 0.0022099 seconds.
terminate called after throwing an instance of 'std::length_error'
  what():  vector::reserve
[suzon-Precision-7920:07449] *** Process received signal ***
[suzon-Precision-7920:07449] Signal: Aborted (6)
[suzon-Precision-7920:07449] Signal code:  (-6)
[suzon-Precision-7920:07449] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7f1969e46420] [suzon-Precision-7920:07449] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f196976300b] [suzon-Precision-7920:07449] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7f1969742859] [suzon-Precision-7920:07449] [ 3] /lib/x86_64-linux-gnu/libstdc++.so.6(+0x9e8d1)[0x7f1969b1a8d1] [suzon-Precision-7920:07449] [ 4] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa37c)[0x7f1969b2637c] [suzon-Precision-7920:07449] [ 5] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa3e7)[0x7f1969b263e7] [suzon-Precision-7920:07449] [ 6] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa699)[0x7f1969b26699] [suzon-Precision-7920:07449] [ 7] /lib/x86_64-linux-gnu/libstdc++.so.6(_ZSt20__throw_length_errorPKc+0x41)[0x7f1969b1d2e4] [suzon-Precision-7920:07449] [ 8] ./NewDTest2PNCNI_Test_fractures(+0x1a3e9c)[0x55e8b88d2e9c] [suzon-Precision-7920:07449] [ 9] ./NewDTest2PNCNI_Test_fractures(+0x1a5d85)[0x55e8b88d4d85] [suzon-Precision-7920:07449] [10] ./NewDTest2PNCNI_Test_fractures(+0x1a6272)[0x55e8b88d5272] [suzon-Precision-7920:07449] [11] ./NewDTest2PNCNI_Test_fractures(+0x5c57a)[0x55e8b878b57a] [suzon-Precision-7920:07449] [12] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f1969744083] [suzon-Precision-7920:07449] [13] ./NewDTest2PNCNI_Test_fractures(+0x5f91e)[0x55e8b878e91e]
[suzon-Precision-7920:07449] *** End of error message ***
Aborted (core dumped)

Do you have any ideas what could be the problem ? I must have forget something but I can't figure out what it is so far.

Thank you for your help,

Suzon



_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to