|
|
|
|
/var/lib/torque/mom_priv/jobs/163208.server.SC: line 47: 26845 Segmentation fault (core dumped) ./finalfit -fiv $fivort -fil $filab -fo2 $fo -blk $blk > outf_FP05.dat 2> outf_FP05.dat |
a vortex not too close the boundary ****************start********************* **mask=22**tt=786**yy=29**zz=51**flag=1**domy=0**domz=0 Im=0 Inputs a[0]=-1.315598e-02 a[1]=1.944575e-02 a[2]=2.900000e+01 a[3]=5.100000e+01 a[4]=-6.695143e-03 a[5]=1.254704e+02 5.11594***-nan Correlation=-nan ******************end***************** radius21.9397 a vortex close to the boundary ****************start********************* **mask=34**tt=423**yy=34**zz=51**flag=1**domy=0**domz=0 Im=0 Inputs a[0]=-8.660687e-03 a[1]=5.812600e-03 a[2]=3.400000e+01 a[3]=5.100000e+01 a[4]=-4.657662e-03 a[5]=4.813512e+02 success a[0]=-8.671571e-03 a[1]=5.801764e-03 a[2]=3.469041e+01 a[3]=5.239419e+01 a[4]=-5.366362e-03 a[5]=3.075504e+02 jter=7 covar=1.666882e-06 correl=1.133464e-01 deleted, low velocity mag soo=1.321122e-04 szz=1.682346e+01 16.804***16.7918 Correlation=0 ******************end***************** radius10.9344 a vortex not too close the boundary ****************start********************* **mask=21**tt=175**yy=38**zz=51**flag=1**domy=0**domz=0 |
|
|
|
|
|
|
|
|
|
|
float *beta= new float[nba*sizeof(float)];
|
|
g++ -g example2.cpp -lm -lpthread -lX11 -I/usr/include/netcdf-3/ -L/usr/lib64/ -lnetcdf -lnetcdf_c++ -o example2; |
gdb example2 |
GNU gdb (GDB) Fedora (7.2-16.fc14) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/example2...done. (gdb) r Starting program: /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/example2 [Thread debugging using libthread_db enabled] end Program exited normally. Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-12.fc14.x86_64 glibc-2.13-2.x86_64 hdf5-1.8.5.patch1-4.fc14.x86_64 keyutils-libs-1.2-6.fc12.x86_64 krb5-libs-1.8.2-6.fc14.x86_64 libX11-1.3.4-4.fc14.x86_64 libXau-1.0.6-1.fc14.x86_64 libcom_err-1.41.12-5.fc14.x86_64 libcurl-7.21.0-10.fc14.x86_64 libgcc-4.5.1-4.fc14.x86_64 libidn-1.18-1.fc14.x86_64 libselinux-2.0.96-5.fc14.x86_64 libssh2-1.2.4-1.fc14.x86_64 libstdc++-4.5.1-4.fc14.x86_64 libxcb-1.7-1.fc14.x86_64 netcdf-4.1.1-5.fc14.x86_64 nspr-4.8.6-1.fc14.x86_64 nss-3.12.7-6.fc14.x86_64 nss-softokn-freebl-3.12.10-1.fc14.x86_64 nss-util-3.12.7-2.fc14.x86_64 openldap-2.4.22-7.fc14.x86_64 openssl-1.0.0a-2.fc14.x86_64 zlib-1.2.5-2.fc14.x86_64 (gdb) bt No stack. (gdb) q |
|
|
valgrind --tool=memcheck --leak-check=yes ./example1 > outex_FP05.dat 2> |
program to test valgrind end rror detector ==9206== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==9206== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==9206== Command: ./example1 ==9206== ==9206== ==9206== HEAP SUMMARY: ==9206== in use at exit: 1,600 bytes in 1 blocks ==9206== total heap usage: 47 allocs, 46 frees, 16,805,968 bytes allocated ==9206== ==9206== 1,600 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==9206== at 0x4A054F2: operator new[](unsigned long) (vg_replace_malloc.c:264) ==9206== by 0x40C606: main (example1.cpp:63) ==9206== ==9206== LEAK SUMMARY: ==9206== definitely lost: 1,600 bytes in 1 blocks ==9206== indirectly lost: 0 bytes in 0 blocks ==9206== possibly lost: 0 bytes in 0 blocks ==9206== still reachable: 0 bytes in 0 blocks ==9206== suppressed: 0 bytes in 0 blocks ==9206== ==9206== For counts of detected and suppressed errors, rerun with: -v ==9206== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 6 from 6) |
9== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==20099== Command: ./finalfit -fiv /workdir/er2/dekou/dekou.copie/roux/data/FP05TST10/LSE/FP05TST10YHBLK0000-0533/multitime/raoul/rnine_lines/FP05TST10YHBLK0000-0533_rec_0.2khz_BLK0522_vortex.nc -fil /workdir/er2/dekou/dekou.copie/roux/data/FP05TST10/LSE/FP05TST10YHBLK0000-0533/multitime/raoul/rnine_lines/FP05TST10YHBLK0000-0533_rec_0.2khz_BLK0522_vortex_label.nc -fo2 /workdir/er2/foucaut/pourRaoul/FP05TST10/LSE/FP05TST10YHBLK0000-0533/multitime/raoul/rnine_lines/o2khz/ -blk 522 ==20099== --20099:0:aspacem Valgrind: FATAL: VG_N_SEGMENTS is too low. --20099:0:aspacem Increase it and rebuild. Exiting now. |
So is there a way to call gdb on a server? |
ctrl-c
. You can you bt
to see where it is, then continue execution with c
.
radius19.9302 a vortex close to the boundary ****************start********************* **mask=11**tt=128**yy=38**zz=11**flag=1**domy=0**domz=0 Im=0 Inputs a[0]=3.954448e-03 a[1]=-1.161371e-02 a[2]=3.800000e+01 a[3]=1.100000e+01 a[4]=6.529239e-03 a[5]=3.972141e+02 success a[0]=3.957173e-03 a[1]=-1.165525e-02 a[2]=4.021535e+01 a[3]=1.146497e+01 a[4]=1.238999e-02 a[5]=2.504108e+02 jter=9 covar=1.162150e-05 correl=6.809281e-01 deleted, low velocity mag soo=7.406194e-05 szz=2.997775e+00 2.97564***2.97325 Correlation=0 ******************end***************** radius1.9794 a vortex not too close the boundary ****************start********************* **mask=3**tt=446**yy=40**zz=11**flag=1**domy=0**domz=0 Im=0 Inputs a[0]=3.527341e-03 a[1]=-7.244069e-03 a[2]=4.000000e+01 a[3]=1.100000e+01 a[4]=7.067923e-03 a[5]=3.918014e+00 Program received signal SIGSEGV, Segmentation fault. 0x0000003094a776aa in _int_malloc () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-12.fc14.x86_64 glibc-2.13-2.x86_64 hdf5-1.8.5.patch1-4.fc14.x86_64 keyutils-libs-1.2-6.fc12.x86_64 krb5-libs-1.8.2-6.fc14.x86_64 libX11-1.3.4-4.fc14.x86_64 libXau-1.0.6-1.fc14.x86_64 libcom_err-1.41.12-5.fc14.x86_64 libcurl-7.21.0-10.fc14.x86_64 libgcc-4.5.1-4.fc14.x86_64 libidn-1.18-1.fc14.x86_64 libselinux-2.0.96-5.fc14.x86_64 libssh2-1.2.4-1.fc14.x86_64 libstdc++-4.5.1-4.fc14.x86_64 libxcb-1.7-1.fc14.x86_64 netcdf-4.1.1-5.fc14.x86_64 nspr-4.8.6-1.fc14.x86_64 nss-3.12.7-6.fc14.x86_64 nss-softokn-freebl-3.12.10-1.fc14.x86_64 nss-util-3.12.7-2.fc14.x86_64 openldap-2.4.22-7.fc14.x86_64 openssl-1.0.0a-2.fc14.x86_64 zlib-1.2.5-2.fc14.x86_64 (gdb) (gdb) bt #0 0x0000003094a776aa in _int_malloc () from /lib64/libc.so.6 #1 0x0000003094a79ffd in malloc () from /lib64/libc.so.6 #2 0x000000309eeba78d in operator new(unsigned long) () from /usr/lib64/libstdc++.so.6 #3 0x000000309eeba8a9 in operator new[](unsigned long) () from /usr/lib64/libstdc++.so.6 #4 0x000000000040682c in submatrix (a=0x685490, oldrl=0, oldrh=5, oldcl=0, oldch=5, newrl=1, newcl=1) at ./utils.h:988 #5 0x000000000040716c in levenberg_marquardt_nf_nv (x=0x6852f0, y=0x6853c0, z=0x7fffffffdb28, sigma=0x7fffffffdb20, nbz=49, nbf=2, a=0x681280, ecarti=0x6812a0, ecarts=0x6813a0, nba=6, tol=0.00100000005, covar=0x681220, max_iter=100, somme1=@0x7fffffffdb48, somme2=@0x7fffffffdb40) at ./utils.h:1163 #6 0x000000000040b2ae in main (argc=9, argv=0x7fffffffe028) at finalfit.cpp:584 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**mask=11**tt=304**yy=11**zz=57**flag=1**domy=0**domz=0 Im=1 Inputs a[0]=2.364184e-02 a[1]=-2.409885e-02 a[2]=1.208194e+01 a[3]=5.863020e+01 a[4]=-8.315042e-01 a[5]=4.338467e+01 success a[0]=2.522490e-02 a[1]=-2.913467e-02 a[2]=1.221958e+01 a[3]=5.945376e+01 a[4]=-9.363349e-01 a[5]=5.342914e+01 jter=3 covar=2.700942e-03 correl=5.554838e-01 kept soo=2.855380e+00 szz=5.148330e+00 2.29049***2.28852 Correlation=0.863312 ******************end***************** radius1.50393 a vortex not too close the boundary ****************start********************* **mask=3**tt=117**yy=14**zz=57**flag=1**domy=0**domz=0 Program received signal SIGSEGV, Segmentation fault. 0x0000003094a776aa in _int_malloc () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-12.fc14.x86_64 glibc-2.13-2.x86_64 hdf5-1.8.5.patch1-4.fc14.x86_64 keyutils-libs-1.2-6.fc12.x86_64 krb5-libs-1.8.2-6.fc14.x86_64 libX11-1.3.4-4.fc14.x86_64 libXau-1.0.6-1.fc14.x86_64 libcom_err-1.41.12-5.fc14.x86_64 libcurl-7.21.0-10.fc14.x86_64 libgcc-4.5.1-4.fc14.x86_64 libidn-1.18-1.fc14.x86_64 libselinux-2.0.96-5.fc14.x86_64 libssh2-1.2.4-1.fc14.x86_64 libstdc++-4.5.1-4.fc14.x86_64 libxcb-1.7-1.fc14.x86_64 netcdf-4.1.1-5.fc14.x86_64 nspr-4.8.6-1.fc14.x86_64 nss-3.12.7-6.fc14.x86_64 nss-softokn-freebl-3.12.10-1.fc14.x86_64 nss-util-3.12.7-2.fc14.x86_64 openldap-2.4.22-7.fc14.x86_64 openssl-1.0.0a-2.fc14.x86_64 zlib-1.2.5-2.fc14.x86_64 (gdb) bt #0 0x0000003094a776aa in _int_malloc () from /lib64/libc.so.6 #1 0x0000003094a79ffd in malloc () from /lib64/libc.so.6 #2 0x000000309eeba78d in operator new(unsigned long) () from /usr/lib64/libstdc++.so.6 #3 0x000000309eeba8a9 in operator new[](unsigned long) () from /usr/lib64/libstdc++.so.6 #4 0x0000000000417e7d in cimg_library::CImg<float>::assign (this=0x7fffffffd920, size_x=49, size_y=1, size_z=1, size_c=1) at /workdir/er2/dekou/dekou.copie/roux/code.LSE/CImg-1.5.7/CImg.h:10027 #5 0x000000000040a775 in main (argc=9, argv=0x7fffffffe028) at finalfit.cpp:487 (gdb) |
**mask=4**tt=589**yy=12**zz=4**flag=1**domy=0**domz=0 Im=0 Inputs a[0]=8.656941e-03 a[1]=4.227287e-04 a[2]=1.200000e+01 a[3]=4.000000e+00 a[4]=-1.177092e-02 a[5]=4.383344e+01 *** glibc detected *** /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/finalfit: free(): invalid next size (fast): 0x0000000000681c80 *** ======= Backtrace: ========= /lib64/libc.so.6[0x3094a76d63] /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/finalfit[0x407f63] /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/finalfit[0x40b277] /lib64/libc.so.6(__libc_start_main+0xfd)[0x3094a1ee5d] /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/finalfit[0x403b19] ======= Memory map: ======== 00400000-0047e000 r-xp 00000000 08:41 539390113 /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/finalfit 0067d000-0067e000 rw-p 0007d000 08:41 539390113 /workdir/er2/dekou/dekou.copie/roux/code.LSE/fit-levenberg2/finalfit 0067e000-00710000 rw-p 00000000 00:00 0 [heap] 3094600000-309461f000 r-xp 00000000 08:03 294921 /lib64/ld-2.13.so 309481e000-309481f000 r--p 0001e000 08:03 294921 /lib64/ld-2.13.so 309481f000-3094820000 rw-p 0001f000 08:03 294921 /lib64/ld-2.13.so 3094820000-3094821000 rw-p 00000000 00:00 0 3094a00000-3094b91000 r-xp 00000000 08:03 294924 /lib64/libc-2.13.so 3094b91000-3094d91000 ---p 00191000 08:03 294924 /lib64/libc-2.13.so 3094d91000-3094d95000 r--p 00191000 08:03 294924 /lib64/libc-2.13.so 3094d95000-3094d96000 rw-p 00195000 08:03 294924 /lib64/libc-2.13.so 3094d96000-3094d9c000 rw-p 00000000 00:00 0 3094e00000-3094e84000 r-xp 00000000 08:03 294948 /lib64/libm-2.13.so 3094e84000-3095083000 ---p 00084000 08:03 294948 /lib64/libm-2.13.so 3095083000-3095084000 r--p 00083000 08:03 294948 /lib64/libm-2.13.so |
|
|
|
|
|
|
why aren't they encalsulated in objects? sorry I didn't get it. |