[petsc-users] glibc detected

Matthew Knepley knepley at gmail.com
Sat Apr 17 08:37:47 CDT 2010


This means there is memory corruption. I would use valgrind to find it.

  Matt

On Sat, Apr 17, 2010 at 8:35 AM, (Rebecca) Xuefei YUAN
<xy2102 at columbia.edu>wrote:

> Hi,
>
> I got a message of glibc detected, and not sure where is it coming from,
> any ideas?
>
> What I have changed from a working copy to this one is to add an element in
> one of the structure which in the appCtx.
>
> Thanks very much!
> -----------------------------------------------------------------------
> (gdb) c
> Continuing.
> *** glibc detected ***
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe:
> free(): invalid next size (normal): 0x08b10750 ***
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6[0xb7d9da85]
> /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7da14f0]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x873a938]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x873c43b]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x872e8f0]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x866c211]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x86a4768]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x8276048]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x80729e1]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x80d8027]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x8100ab3]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x80e0d44]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x80fa8c9]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x80f3dc1]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x8052ecc]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x804def5]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7d48450]
>
> /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe[0x804b451]
> ======= Memory map: ========
> 08048000-08918000 r-xp 00000000 08:06 3910764
>  /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe
> 08918000-0891e000 rw-p 008cf000 08:06 3910764
>  /home/rebecca/linux/code/twoway/twoway_new/workingspace/twgcqt2unffnictvscj.exe
> 0891e000-08b1f000 rw-p 0891e000 00:00 0          [heap]
> b7b00000-b7b21000 rw-p b7b00000 00:00 0
> b7b21000-b7c00000 ---p b7b21000 00:00 0
> b7cef000-b7cf7000 r-xp 00000000 08:05 344321     /lib/tls/i686/cmov/
> libnss_nis-2.7.so
> b7cf7000-b7cf9000 rw-p 00007000 08:05 344321     /lib/tls/i686/cmov/
> libnss_nis-2.7.so
> b7cf9000-b7d00000 r-xp 00000000 08:05 344317     /lib/tls/i686/cmov/
> libnss_compat-2.7.so
> b7d00000-b7d02000 rw-p 00006000 08:05 344317     /lib/tls/i686/cmov/
> libnss_compat-2.7.so
> b7d02000-b7d0b000 r-xp 00000000 08:05 344319     /lib/tls/i686/cmov/
> libnss_files-2.7.so
> b7d0b000-b7d0d000 rw-p 00008000 08:05 344319     /lib/tls/i686/cmov/
> libnss_files-2.7.so
> b7d0d000-b7d0f000 rw-p b7d0d000 00:00 0
> b7d0f000-b7d13000 r-xp 00000000 08:05 179791     /usr/lib/libXdmcp.so.6.0.0
> b7d13000-b7d14000 rw-p 00003000 08:05 179791     /usr/lib/libXdmcp.so.6.0.0
> b7d14000-b7d16000 r-xp 00000000 08:05 179780     /usr/lib/libXau.so.6.0.0
> b7d16000-b7d17000 rw-p 00001000 08:05 179780     /usr/lib/libXau.so.6.0.0
> b7d17000-b7d2e000 r-xp 00000000 08:05 180628     /usr/lib/libxcb.so.1.0.0
> b7d2e000-b7d2f000 rw-p 00016000 08:05 180628     /usr/lib/libxcb.so.1.0.0
> b7d2f000-b7d30000 rw-p b7d2f000 00:00 0
> b7d30000-b7d31000 r-xp 00000000 08:05 180626
> /usr/lib/libxcb-xlib.so.0.0.0
> b7d31000-b7d32000 rw-p 00000000 08:05 180626
> /usr/lib/libxcb-xlib.so.0.0.0
> b7d32000-b7e7b000 r-xp 00000000 08:05 344310     /lib/tls/i686/cmov/
> libc-2.7.so
> b7e7b000-b7e7c000 r--p 00149000 08:05 344310     /lib/tls/i686/cmov/
> libc-2.7.so
> b7e7c000-b7e7e000 rw-p 0014a000 08:05 344310     /lib/tls/i686/cmov/
> libc-2.7.so
> b7e7e000-b7e81000 rw-p b7e7e000 00:00 0
> b7e81000-b7e95000 r-xp 00000000 08:05 344324     /lib/tls/i686/cmov/
> libpthread-2.7.so
> b7e95000-b7e97000 rw-p 00013000 08:05 344324     /lib/tls/i686/cmov/
> libpthread-2.7.so
> b7e97000-b7e99000 rw-p b7e97000 00:00 0
> b7e99000-b7e9b000 r-xp 00000000 08:05 344313     /lib/tls/i686/cmov/
> libdl-2.7.so
> b7e9b000-b7e9d000 rw-p 00001000 08:05 344313     /lib/tls/i686/cmov/
> libdl-2.7.so
> b7e9d000-b7ea4000 r-xp 00000000 08:05 344326     /lib/tls/i686/cmov/
> librt-2.7.so
> b7ea4000-b7ea6000 rw-p 00006000 08:05 344326     /lib/tls/i686/cmov/
> librt-2.7.so
> b7ea6000-b7eba000 r-xp 00000000 08:05 344316     /lib/tls/i686/cmov/
> libnsl-2.7.so
> b7eba000-b7ebc000 rw-p 00013000 08:05 344316     /lib/tls/i686/cmov/
> libnsl-2.7.so
> b7ebc000-b7ebf000 rw-p b7ebc000 00:00 0
> b7ebf000-b7ee2000 r-xp 00000000 08:05 344314     /lib/tls/i686/cmov/
> libm-2.7.so
> b7ee2000-b7ee4000 rw-p 00023000 08:05 344314     /lib/tls/i686/cmov/
> libm-2.7.so
> b7ee4000-b7fc8000 r-xp 00000000 08:05 179774     /usr/lib/libX11.so.6.2.0
> b7fc8000-b7fcb000 rw-p 000e4000 08:05 179774     /usr/lib/libX11.so.6.2.0
> b7fcf000-b7fd9000 r-xp 00000000 08:05 308438     /lib/libgcc_s.so.1
> b7fd9000-b7fda000 rw-p 0000a000 08:05 308438     /lib/libgcc_s.so.1
> b7fda000-b7fdd000 rw-p b7fda000 00:00 0
> b7fdd000-b7fde000 r-xp b7fdd000 00:00 0          [vdso]
> b7fde000-b7ff8000 r-xp 00000000 08:05 309874     /lib/ld-2.7.so
> b7ff8000-b7ffa000 rw-p 00019000 08:05 309874     /lib/ld-2.7.so
> bfb4a000-bfb5f000 rw-p bffeb000 00:00 0          [stack]
>
> Program received signal SIGABRT, Aborted.
> 0xb7fdd410 in __kernel_vsyscall ()
>
>
> --
> (Rebecca) Xuefei YUAN
> Department of Applied Physics and Applied Mathematics
> Columbia University
> Tel:917-399-8032
> www.columbia.edu/~xy2102
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100417/0523600b/attachment-0001.htm>


More information about the petsc-users mailing list