Thread: compiling sac_v101.3 on linux suse 64bits

Started: 2011-09-02 02:56:37
Last activity: 2011-09-02 22:24:35
Topics: SAC Help
Anne Deschamps
2011-09-02 02:56:37
Hi

when we use the compile linux version (64bits) all is OK except that at
the end, when we leave the programm we have this error message

*** glibc detected *** sac: free(): invalid next size (fast):
0x00000000009fc570 ***
======= Backtrace: =========

/lib64/libc.so.6(+0x75018)[0x7fb05e59c018]

/lib64/libc.so.6(cfree+0x6c)[0x7fb05e5a0fec]

sac[0x5b27dd]

sac[0x5b2cd9]

sac[0x5a33c0]

sac[0x40dacf]

sac[0x43cf72]

sac[0x4128c3]

sac[0x40b1b0]

sac[0x40555c]

/lib64/libc.so.6(__libc_start_main+0xe6)[0x7fb05e545bc6]

sac[0x404efa]

======= Memory map: ========

00400000-00604000 r-xp 00000000 00:14 1084254
/usr/local/soft_sismo/sac/sac_v101.3/bin/sac

00703000-0072a000 rw-p 00203000 00:14 1084254
/usr/local/soft_sismo/sac/sac_v101.3/bin/sac

0072a000-00a2b000 rw-p 00000000 00:00 0
[heap]
7fb058000000-7fb058021000 rw-p 00000000 00:00 0

7fb058021000-7fb05c000000 ---p 00000000 00:00 0

7fb05d2c1000-7fb05d2d7000 r-xp 00000000 08:03 3244152
/lib64/libgcc_s.so.1
7fb05d2d7000-7fb05d4d6000 ---p 00016000 08:03 3244152
/lib64/libgcc_s.so.1
7fb05d4d6000-7fb05d4d7000 r--p 00015000 08:03 3244152
/lib64/libgcc_s.so.1
7fb05d4d7000-7fb05d4d8000 rw-p 00016000 08:03 3244152
/lib64/libgcc_s.so.1
7fb05d4d8000-7fb05d4dd000 r-xp 00000000 08:03 2859135
/usr/lib64/libXfixes.so.3.1.0
7fb05d4dd000-7fb05d6dc000 ---p 00005000 08:03 2859135
/usr/lib64/libXfixes.so.3.1.0
7fb05d6dc000-7fb05d6dd000 r--p 00004000 08:03 2859135
/usr/lib64/libXfixes.so.3.1.0
7fb05d6dd000-7fb05d6de000 rw-p 00005000 08:03 2859135
/usr/lib64/libXfixes.so.3.1.0
7fb05d6de000-7fb05d6e7000 r-xp 00000000 08:03 2859133
/usr/lib64/libXrender.so.1.3.0
7fb05d6e7000-7fb05d8e6000 ---p 00009000 08:03 2859133
/usr/lib64/libXrender.so.1.3.0
7fb05d8e6000-7fb05d8e7000 r--p 00008000 08:03 2859133
/usr/lib64/libXrender.so.1.3.0
7fb05d8e7000-7fb05d8e8000 rw-p 00009000 08:03 2859133
/usr/lib64/libXrender.so.1.3.0
7fb05d8e8000-7fb05d8f2000 r-xp 00000000 08:03 2859279
/usr/lib64/libXcursor.so.1.0.2
7fb05d8f2000-7fb05daf1000 ---p 0000a000 08:03 2859279
/usr/lib64/libXcursor.so.1.0.2
7fb05daf1000-7fb05daf2000 r--p 00009000 08:03 2859279
/usr/lib64/libXcursor.so.1.0.2
7fb05daf2000-7fb05daf3000 rw-p 0000a000 08:03 2859279
/usr/lib64/libXcursor.so.1.0.2
7fb05daf3000-7fb05dafe000 r-xp 00000000 08:03 3244057
/lib64/libnss_files-2.11.1.so
7fb05dafe000-7fb05dcfe000 ---p 0000b000 08:03 3244057
/lib64/libnss_files-2.11.1.so
7fb05dcfe000-7fb05dcff000 r--p 0000b000 08:03 3244057
/lib64/libnss_files-2.11.1.so
7fb05dcff000-7fb05dd00000 rw-p 0000c000 08:03 3244057
/lib64/libnss_files-2.11.1.so
7fb05dd00000-7fb05dd02000 r-xp 00000000 08:03 3575339
/usr/lib64/libXau.so.6.0.0
7fb05dd02000-7fb05df02000 ---p 00002000 08:03 3575339
/usr/lib64/libXau.so.6.0.0
7fb05df02000-7fb05df03000 r--p 00002000 08:03 3575339
/usr/lib64/libXau.so.6.0.0
7fb05df03000-7fb05df04000 rw-p 00003000 08:03 3575339
/usr/lib64/libXau.so.6.0.0
7fb05df04000-7fb05df1f000 r-xp 00000000 08:03 3575639
/usr/lib64/libxcb.so.1.0.0
7fb05df1f000-7fb05e11e000 ---p 0001b000 08:03 3575639
/usr/lib64/libxcb.so.1.0.0
7fb05e11e000-7fb05e11f000 r--p 0001a000 08:03 3575639
/usr/lib64/libxcb.so.1.0.0
7fb05e11f000-7fb05e120000 rw-p 0001b000 08:03 3575639
/usr/lib64/libxcb.so.1.0.0
7fb05e120000-7fb05e121000 r-xp 00000000 08:03 3575629
/usr/lib64/libxcb-xlib.so.0.0.0
7fb05e121000-7fb05e320000 ---p 00001000 08:03 3575629
/usr/lib64/libxcb-xlib.so.0.0.0
7fb05e320000-7fb05e321000 r--p 00000000 08:03 3575629
/usr/lib64/libxcb-xlib.so.0.0.0
7fb05e321000-7fb05e322000 rw-p 00001000 08:03 3575629
/usr/lib64/libxcb-xlib.so.0.0.0
7fb05e322000-7fb05e326000 r-xp 00000000 08:03 3244146
/lib64/libuuid.so.1.3.0
7fb05e326000-7fb05e525000 ---p 00004000 08:03 3244146
/lib64/libuuid.so.1.3.0
7fb05e525000-7fb05e526000 r--p 00003000 08:03 3244146
/lib64/libuuid.so.1.3.0
7fb05e526000-7fb05e527000 rw-p 00004000 08:03 3244146
/lib64/libuuid.so.1.3.0
7fb05e527000-7fb05e67c000 r-xp 00000000 08:03 3244040
/lib64/libc-2.11.1.so
7fb05e67c000-7fb05e87b000 ---p 00155000 08:03 3244040
/lib64/libc-2.11.1.so
7fb05e87b000-7fb05e87f000 r--p 00154000 08:03 3244040
/lib64/libc-2.11.1.so
7fb05e87f000-7fb05e880000 rw-p 00158000 08:03 3244040
/lib64/libc-2.11.1.so
7fb05e880000-7fb05e885000 rw-p 00000000 00:00 0
7fb05e885000-7fb05e8c3000 r-xp 00000000 08:03 3244109
/lib64/libncurses.so.5.6
7fb05e8c3000-7fb05eac3000 ---p 0003e000 08:03 3244109
/lib64/libncurses.so.5.6
7fb05eac3000-7fb05eac7000 r--p 0003e000 08:03 3244109
/lib64/libncurses.so.5.6
7fb05eac7000-7fb05eacd000 rw-p 00042000 08:03 3244109
/lib64/libncurses.so.5.6
7fb05eacd000-7fb05eb22000 r-xp 00000000 08:03 3244048
/lib64/libm-2.11.1.so
7fb05eb22000-7fb05ed21000 ---p 00055000 08:03 3244048
/lib64/libm-2.11.1.so
7fb05ed21000-7fb05ed22000 r--p 00054000 08:03 3244048
/lib64/libm-2.11.1.so
7fb05ed22000-7fb05ed23000 rw-p 00055000 08:03 3244048
/lib64/libm-2.11.1.so
7fb05ed23000-7fb05ed25000 r-xp 00000000 08:03 3244046
/lib64/libdl-2.11.1.so
7fb05ed25000-7fb05ef25000 ---p 00002000 08:03 3244046
/lib64/libdl-2.11.1.so
7fb05ef25000-7fb05ef26000 r--p 00002000 08:03 3244046
/lib64/libdl-2.11.1.so
7fb05ef26000-7fb05ef27000 rw-p 00003000 08:03 3244046
/lib64/libdl-2.11.1.so
7fb05ef27000-7fb05f05e000 r-xp 00000000 08:03 2859042
/usr/lib64/libX11.so.6.2.0
7fb05f05e000-7fb05f25e000 ---p 00137000 08:03 2859042
/usr/lib64/libX11.so.6.2.0
7fb05f25e000-7fb05f25f000 r--p 00137000 08:03 2859042
/usr/lib64/libX11.so.6.2.0
7fb05f25f000-7fb05f264000 rw-p 00138000 08:03 2859042
/usr/lib64/libX11.so.6.2.0Abort

So I would like to compile the source to see if it can be better

When I do so, I have the error message
In file included from ../../sac-101.3b/src/bbs/setbbv.c:12:
../../sac-101.3b/inc/co.h:40: error: conflicting types for 'getline'
/usr/include/stdio.h:653: error: previous declaration of 'getline' was here
make[1]: *** [bbs/setbbv.o] Error 1
make: *** [all-recursive] Error 1

Is that any solution to go head....

Thanks

Anne
--
Anne Deschamps
Géoazur/CNRS
Bât 3, 250 rue A. Einstein
06560 Sophia Antipolis
tel: +33 4 92 94 26 16
secrétariat : +33 4 92 94 26 02

  • Brian Savage
    2011-09-02 22:24:35
    Anne,

    I would suggest getting version 101.4. The getline issue was fixed in
    this version.

    The message you reported comes from the glibc and is indicating a
    minor error in the program. These kinds of messages have shown up
    before and should be fixed.

    See
    http://www.iris.washington.edu/pipermail/sac-help/2009-August/000593.html
    on how to make the message go away.

    If you still see this message when using 101.4, I would like to know
    the set of commands you issue before exiting the program so this
    problem can be fixed.

    Brian Savage
    savage<at>uri.edu

    On Sep 1, 2011, at 1:56 PM, Anne Deschamps wrote:

    Hi

    when we use the compile linux version (64bits) all is OK except that
    at the end, when we leave the programm we have this error message

    *** glibc detected *** sac: free(): invalid next size (fast):
    0x00000000009fc570 ***
    ======= Backtrace: =========
    /lib64/libc.so.6(+0x75018)[0x7fb05e59c018]
    /lib64/libc.so.6(cfree+0x6c)[0x7fb05e5a0fec]
    sac[0x5b27dd]
    sac[0x5b2cd9]
    sac[0x5a33c0]
    sac[0x40dacf]
    sac[0x43cf72]
    sac[0x4128c3]
    sac[0x40b1b0]
    sac[0x40555c]
    /lib64/libc.so.6(__libc_start_main+0xe6)[0x7fb05e545bc6]
    sac[0x404efa]
    ======= Memory map: ========
    00400000-00604000 r-xp 00000000 00:14 1084254 /usr/local/soft_sismo/
    sac/sac_v101.3/bin/sac
    00703000-0072a000 rw-p 00203000 00:14 1084254 /usr/local/soft_sismo/
    sac/sac_v101.3/bin/sac
    0072a000-00a2b000 rw-p 00000000 00:00 0 [heap]
    7fb058000000-7fb058021000 rw-p 00000000 00:00 0
    7fb058021000-7fb05c000000 ---p 00000000 00:00 0
    7fb05d2c1000-7fb05d2d7000 r-xp 00000000 08:03 3244152 /lib64/
    libgcc_s.so.1
    7fb05d2d7000-7fb05d4d6000 ---p 00016000 08:03 3244152 /lib64/
    libgcc_s.so.1
    7fb05d4d6000-7fb05d4d7000 r--p 00015000 08:03 3244152 /lib64/
    libgcc_s.so.1
    7fb05d4d7000-7fb05d4d8000 rw-p 00016000 08:03 3244152 /lib64/
    libgcc_s.so.1
    7fb05d4d8000-7fb05d4dd000 r-xp 00000000 08:03 2859135 /usr/lib64/
    libXfixes.so.3.1.0
    7fb05d4dd000-7fb05d6dc000 ---p 00005000 08:03 2859135 /usr/lib64/
    libXfixes.so.3.1.0
    7fb05d6dc000-7fb05d6dd000 r--p 00004000 08:03 2859135 /usr/lib64/
    libXfixes.so.3.1.0
    7fb05d6dd000-7fb05d6de000 rw-p 00005000 08:03 2859135 /usr/lib64/
    libXfixes.so.3.1.0
    7fb05d6de000-7fb05d6e7000 r-xp 00000000 08:03 2859133 /usr/lib64/
    libXrender.so.1.3.0
    7fb05d6e7000-7fb05d8e6000 ---p 00009000 08:03 2859133 /usr/lib64/
    libXrender.so.1.3.0
    7fb05d8e6000-7fb05d8e7000 r--p 00008000 08:03 2859133 /usr/lib64/
    libXrender.so.1.3.0
    7fb05d8e7000-7fb05d8e8000 rw-p 00009000 08:03 2859133 /usr/lib64/
    libXrender.so.1.3.0
    7fb05d8e8000-7fb05d8f2000 r-xp 00000000 08:03 2859279 /usr/lib64/
    libXcursor.so.1.0.2
    7fb05d8f2000-7fb05daf1000 ---p 0000a000 08:03 2859279 /usr/lib64/
    libXcursor.so.1.0.2
    7fb05daf1000-7fb05daf2000 r--p 00009000 08:03 2859279 /usr/lib64/
    libXcursor.so.1.0.2
    7fb05daf2000-7fb05daf3000 rw-p 0000a000 08:03 2859279 /usr/lib64/
    libXcursor.so.1.0.2
    7fb05daf3000-7fb05dafe000 r-xp 00000000 08:03 3244057 /lib64/
    libnss_files-2.11.1.so
    7fb05dafe000-7fb05dcfe000 ---p 0000b000 08:03 3244057 /lib64/
    libnss_files-2.11.1.so
    7fb05dcfe000-7fb05dcff000 r--p 0000b000 08:03 3244057 /lib64/
    libnss_files-2.11.1.so
    7fb05dcff000-7fb05dd00000 rw-p 0000c000 08:03 3244057 /lib64/
    libnss_files-2.11.1.so
    7fb05dd00000-7fb05dd02000 r-xp 00000000 08:03 3575339 /usr/lib64/
    libXau.so.6.0.0
    7fb05dd02000-7fb05df02000 ---p 00002000 08:03 3575339 /usr/lib64/
    libXau.so.6.0.0
    7fb05df02000-7fb05df03000 r--p 00002000 08:03 3575339 /usr/lib64/
    libXau.so.6.0.0
    7fb05df03000-7fb05df04000 rw-p 00003000 08:03 3575339 /usr/lib64/
    libXau.so.6.0.0
    7fb05df04000-7fb05df1f000 r-xp 00000000 08:03 3575639 /usr/lib64/
    libxcb.so.1.0.0
    7fb05df1f000-7fb05e11e000 ---p 0001b000 08:03 3575639 /usr/lib64/
    libxcb.so.1.0.0
    7fb05e11e000-7fb05e11f000 r--p 0001a000 08:03 3575639 /usr/lib64/
    libxcb.so.1.0.0
    7fb05e11f000-7fb05e120000 rw-p 0001b000 08:03 3575639 /usr/lib64/
    libxcb.so.1.0.0
    7fb05e120000-7fb05e121000 r-xp 00000000 08:03 3575629 /usr/lib64/
    libxcb-xlib.so.0.0.0
    7fb05e121000-7fb05e320000 ---p 00001000 08:03 3575629 /usr/lib64/
    libxcb-xlib.so.0.0.0
    7fb05e320000-7fb05e321000 r--p 00000000 08:03 3575629 /usr/lib64/
    libxcb-xlib.so.0.0.0
    7fb05e321000-7fb05e322000 rw-p 00001000 08:03 3575629 /usr/lib64/
    libxcb-xlib.so.0.0.0
    7fb05e322000-7fb05e326000 r-xp 00000000 08:03 3244146 /lib64/
    libuuid.so.1.3.0
    7fb05e326000-7fb05e525000 ---p 00004000 08:03 3244146 /lib64/
    libuuid.so.1.3.0
    7fb05e525000-7fb05e526000 r--p 00003000 08:03 3244146 /lib64/
    libuuid.so.1.3.0
    7fb05e526000-7fb05e527000 rw-p 00004000 08:03 3244146 /lib64/
    libuuid.so.1.3.0
    7fb05e527000-7fb05e67c000 r-xp 00000000 08:03 3244040 /lib64/
    libc-2.11.1.so
    7fb05e67c000-7fb05e87b000 ---p 00155000 08:03 3244040 /lib64/
    libc-2.11.1.so
    7fb05e87b000-7fb05e87f000 r--p 00154000 08:03 3244040 /lib64/
    libc-2.11.1.so
    7fb05e87f000-7fb05e880000 rw-p 00158000 08:03 3244040 /lib64/
    libc-2.11.1.so
    7fb05e880000-7fb05e885000 rw-p 00000000 00:00 0
    7fb05e885000-7fb05e8c3000 r-xp 00000000 08:03 3244109 /lib64/
    libncurses.so.5.6
    7fb05e8c3000-7fb05eac3000 ---p 0003e000 08:03 3244109 /lib64/
    libncurses.so.5.6
    7fb05eac3000-7fb05eac7000 r--p 0003e000 08:03 3244109 /lib64/
    libncurses.so.5.6
    7fb05eac7000-7fb05eacd000 rw-p 00042000 08:03 3244109 /lib64/
    libncurses.so.5.6
    7fb05eacd000-7fb05eb22000 r-xp 00000000 08:03 3244048 /lib64/
    libm-2.11.1.so
    7fb05eb22000-7fb05ed21000 ---p 00055000 08:03 3244048 /lib64/
    libm-2.11.1.so
    7fb05ed21000-7fb05ed22000 r--p 00054000 08:03 3244048 /lib64/
    libm-2.11.1.so
    7fb05ed22000-7fb05ed23000 rw-p 00055000 08:03 3244048 /lib64/
    libm-2.11.1.so
    7fb05ed23000-7fb05ed25000 r-xp 00000000 08:03 3244046 /lib64/
    libdl-2.11.1.so
    7fb05ed25000-7fb05ef25000 ---p 00002000 08:03 3244046 /lib64/
    libdl-2.11.1.so
    7fb05ef25000-7fb05ef26000 r--p 00002000 08:03 3244046 /lib64/
    libdl-2.11.1.so
    7fb05ef26000-7fb05ef27000 rw-p 00003000 08:03 3244046 /lib64/
    libdl-2.11.1.so
    7fb05ef27000-7fb05f05e000 r-xp 00000000 08:03 2859042 /usr/lib64/
    libX11.so.6.2.0
    7fb05f05e000-7fb05f25e000 ---p 00137000 08:03 2859042 /usr/lib64/
    libX11.so.6.2.0
    7fb05f25e000-7fb05f25f000 r--p 00137000 08:03 2859042 /usr/lib64/
    libX11.so.6.2.0
    7fb05f25f000-7fb05f264000 rw-p 00138000 08:03 2859042 /usr/lib64/
    libX11.so.6.2.0Abort

    So I would like to compile the source to see if it can be better

    When I do so, I have the error message
    In file included from ../../sac-101.3b/src/bbs/setbbv.c:12:
    ../../sac-101.3b/inc/co.h:40: error: conflicting types for 'getline'
    /usr/include/stdio.h:653: error: previous declaration of 'getline'
    was here
    make[1]: *** [bbs/setbbv.o] Error 1
    make: *** [all-recursive] Error 1

    Is that any solution to go head....

    Thanks

    Anne
    --
    Anne Deschamps
    Géoazur/CNRS
    Bât 3, 250 rue A. Einstein
    06560 Sophia Antipolis
    tel: +33 4 92 94 26 16
    secrétariat : +33 4 92 94 26 02
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help




19:24:41 v.01697673