Topic: ubuntu jaunty 32 bit AMD Sempron with 3G ram Problem running tests

Hi,
I just downloaded Ckit,Elixir, and oofem.  compiled Ckit, Elixir, and configured and did a make in the targets/default directory. oofeg file was created.
I wanted to test using tests directory files. I am getting  a buffer overflow message every time I try to run oofeg :

____________________________________________________
           OOFEM - Finite Element Solver           
        Copyright (C) 1994-2009 Borek Patzak       
____________________________________________________
please enter the name of the input data file :
crtest10.in
Total number of solution steps 55
Instanciating domain                1
Instanciated nodes & sides          3
Instanciated elements               2
Instanciated cross sections         1
Instanciated materials              1
Instanciated BCs                    3
Instanciated ICs                    0
Instanciated load-time fncts        2
Consistency check                  ok
*** buffer overflow detected ***: ../../targets/oofem/bin/oofeg terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7d2eda8]
/lib/tls/i686/cmov/libc.so.6[0xb7d2ceb0]
/lib/tls/i686/cmov/libc.so.6[0xb7d2c495]
../../targets/oofem/bin/oofeg[0x81d37c9]
../../targets/oofem/bin/oofeg[0x818cec7]
../../targets/oofem/bin/oofeg[0x8051ad0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7c47775]
../../targets/oofem/bin/oofeg[0x804c851]
======= Memory map: ========
08048000-082e5000 r-xp 00000000 08:05 1271468    /home/osman/oofem-1.9/targets/oofem/bin/oofeg
082e5000-082e6000 r--p 0029c000 08:05 1271468    /home/osman/oofem-1.9/targets/oofem/bin/oofeg
082e6000-082e8000 rw-p 0029d000 08:05 1271468    /home/osman/oofem-1.9/targets/oofem/bin/oofeg
082e8000-08317000 rw-p 082e8000 00:00 0
08a66000-08b41000 rw-p 08a66000 00:00 0          [heap]
b7bf2000-b7bf4000 rw-p b7bf2000 00:00 0
b7bf4000-b7bf8000 r-xp 00000000 08:05 1673828    /usr/lib/libXdmcp.so.6.0.0
b7bf8000-b7bf9000 rw-p 00003000 08:05 1673828    /usr/lib/libXdmcp.so.6.0.0
b7bf9000-b7bfb000 r-xp 00000000 08:05 1452188    /lib/tls/i686/cmov/libdl-2.9.so
b7bfb000-b7bfc000 r--p 00001000 08:05 1452188    /lib/tls/i686/cmov/libdl-2.9.so
b7bfc000-b7bfd000 rw-p 00002000 08:05 1452188    /lib/tls/i686/cmov/libdl-2.9.so
b7bfd000-b7c15000 r-xp 00000000 08:05 1671306    /usr/lib/libxcb.so.1.1.0
b7c15000-b7c16000 r--p 00017000 08:05 1671306    /usr/lib/libxcb.so.1.1.0
b7c16000-b7c17000 rw-p 00018000 08:05 1671306    /usr/lib/libxcb.so.1.1.0
b7c17000-b7c19000 r-xp 00000000 08:05 1673817    /usr/lib/libXau.so.6.0.0
b7c19000-b7c1a000 r--p 00001000 08:05 1673817    /usr/lib/libXau.so.6.0.0
b7c1a000-b7c1b000 rw-p 00002000 08:05 1673817    /usr/lib/libXau.so.6.0.0
b7c1b000-b7c1c000 rw-p b7c1b000 00:00 0
b7c1c000-b7c2b000 r-xp 00000000 08:05 1673848    /usr/lib/libXpm.so.4.11.0
b7c2b000-b7c2c000 rw-p 0000f000 08:05 1673848    /usr/lib/libXpm.so.4.11.0
b7c2c000-b7c2f000 r-xp 00000000 08:05 1433754    /lib/libuuid.so.1.2
b7c2f000-b7c30000 r--p 00002000 08:05 1433754    /lib/libuuid.so.1.2
b7c30000-b7c31000 rw-p 00003000 08:05 1433754    /lib/libuuid.so.1.2
b7c31000-b7d8d000 r-xp 00000000 08:05 1452185    /lib/tls/i686/cmov/libc-2.9.so
b7d8d000-b7d8e000 ---p 0015c000 08:05 1452185    /lib/tls/i686/cmov/libc-2.9.so
b7d8e000-b7d90000 r--p 0015c000 08:05 1452185    /lib/tls/i686/cmov/libc-2.9.so
b7d90000-b7d91000 rw-p 0015e000 08:05 1452185    /lib/tls/i686/cmov/libc-2.9.so
b7d91000-b7d94000 rw-p b7d91000 00:00 0
b7d94000-b7da1000 r-xp 00000000 08:05 1433665    /lib/libgcc_s.so.1
b7da1000-b7da2000 r--p 0000c000 08:05 1433665    /lib/libgcc_s.so.1
b7da2000-b7da3000 rw-p 0000d000 08:05 1433665    /lib/libgcc_s.so.1
b7da3000-b7e87000 r-xp 00000000 08:05 1674702    /usr/lib/libstdc++.so.6.0.10
b7e87000-b7e8b000 r--p 000e3000 08:05 1674702    /usr/lib/libstdc++.so.6.0.10
b7e8b000-b7e8c000 rw-p 000e7000 08:05 1674702    /usr/lib/libstdc++.so.6.0.10
b7e8c000-b7e93000 rw-p b7e8c000 00:00 0
b7e93000-b7eb7000 r-xp 00000000 08:05 1452189    /lib/tls/i686/cmov/libm-2.9.so
b7eb7000-b7eb8000 r--p 00023000 08:05 1452189    /lib/tls/i686/cmov/libm-2.9.so
b7eb8000-b7eb9000 rw-p 00024000 08:05 1452189    /lib/tls/i686/cmov/libm-2.9.so
b7eb9000-b7fa3000 r-xp 00000000 08:05 1673811    /usr/lib/libX11.so.6.2.0
b7fa3000-b7fa4000 ---p 000ea000 08:05 1673811    /usr/lib/libX11.so.6.2.0
b7fa4000-b7fa5000 r--p 000ea000 08:05 1673811    /usr/lib/libX11.so.6.2.0
b7fa5000-b7fa7000 rw-p 000eb000 08:05 1673811    /usr/lib/libX11.so.6.2.0
b7fa7000-b7fa8000 rw-p b7fa7000 00:00 0
b7fa8000-b7fb6000 r-xp 00000000 08:05 1673830    /usr/lib/libXext.so.6.4.0
b7fb6000-b7fb7000 r--p 0000d000 08:05 1673830    /usr/lib/libXext.so.6.4.0
b7fb7000-b7fb8000 rw-p 0000e000 08:05 1673830    /usr/lib/libXext.so.6.4.0
b7fb8000-b8007000 r-xp 00000000 08:05 1673856    /usr/lib/libXt.so.6.0.0
b8007000-b8008000 r--p 0004f000 08:05 1673856    /usr/lib/libXt.so.6.0.0
b8008000-b800b000 rw-p 00050000 08:05 1673856    /usr/lib/libXt.so.6.0.0
b800b000Aborted

Any ideas? I did compile optimized.
./configure OOFEM_TARGET=default --with-CKITDIR=/home/osman/Ckit --with-ELIXIRDIR=/home/osman/Elixir --enable-oofeg

Thanks in advance,
Osman

Re: ubuntu jaunty 32 bit AMD Sempron with 3G ram Problem running tests

Never mind. I just downloaded the svn version and it  created oofem and it is running the tests ok.
I am interested in the XFEM capability of oofem.
Thanks
osman

3

Re: ubuntu jaunty 32 bit AMD Sempron with 3G ram Problem running tests

Hi all,
I have just explored the problem (tested on Ubuntu 9.04). I have submitted the modification into svn repository. I would be nice, if you can test it. One has to replace src/oofemlib/util.C file by the modified one, obtained from svn (direct link: http://www.oofem.org/svn/trunk/src/oofemlib/util.C and recompile the oofeg target.

Borek

Re: ubuntu jaunty 32 bit AMD Sempron with 3G ram Problem running tests

Hi Borek,
Thanks that change seems to have fixed that problem. It has been a while since I used Krysl's  Elixir and Wasp. I guess I cant run the problem from oofeg?
why oofem  was not created?

Thanks
Osman

5

Re: ubuntu jaunty 32 bit AMD Sempron with 3G ram Problem running tests

Hi Osman,

oofem (solver) and oofeg  (postprocessor) are built from the same sources. You should configure an individual targets to built either oofem or oofeg (see for example here http://www.oofem.org/wiki/doku.php?id=i … d_options)
The recomended procedure is to run oofem, and visualize results later by oofeg.

However, you can run simulation directly from oofeg, if it has been configured using --enable-oofeg-devel-interface option. This allows to visualize usually only final results at the end of analysis, the individual step results can be displayed only using classic (oofem+oofeg) approach. In principle it is a simple to implement, but it is not ready now. But for some analyses (linear problems, etc) this is ok.

Borek