Invalid free()s in emacs at startup.

Bug #115658 reported by Micah Cowan
2
Affects Status Importance Assigned to Milestone
emacs21 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: emacs21

Valgrind detects invalid free()s, and emacs doesn't even finish starting up.

==16976== Memcheck, a memory error detector.
==16976== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==16976== Using LibVEX rev 1658, a library for dynamic binary translation.
==16976== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==16976== Using valgrind-3.2.1-Debian, a dynamic binary instrumentation framework.
==16976== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==16976==
--16976-- Command line
--16976-- emacs
--16976-- Startup, with flags:
--16976-- -v
--16976-- Contents of /proc/version:
--16976-- Linux version 2.6.20-14-generic (root@rothera) (gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #2 SMP Mon Apr 2 20:37:49 UTC 2007
--16976-- Arch and hwcaps: X86, x86-sse1
--16976-- Valgrind library directory: /usr/lib/valgrind
--16976-- Reading syms from /lib/ld-2.5.so (0x4000000)
--16976-- Reading debug info from /lib/ld-2.5.so...
--16976-- ... CRC mismatch (computed 2CBFF452 wanted 4F5ED783)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/bin/emacs21-x (0x8048000)
--16976-- Reading debug info from /usr/bin/emacs21-x...
--16976-- ... CRC mismatch (computed 66A367A0 wanted EE73EF26)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--16976-- object doesn't have a dynamic symbol table
--16976-- Reading suppressions file: /usr/lib/valgrind/default.supp
--16976-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401C000)
--16976-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401E000)
--16976-- Reading syms from /usr/lib/libXaw3d.so.6.1 (0x403E000)
--16976-- Reading debug info from /usr/lib/libXaw3d.so.6.1...
--16976-- ... CRC mismatch (computed 17915F4A wanted BF387449)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libXmu.so.6.2.0 (0x4097000)
--16976-- Reading debug info from /usr/lib/libXmu.so.6.2.0...
--16976-- ... CRC mismatch (computed 2C0FDD29 wanted 5B69E24C)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libXt.so.6.0.0 (0x40AD000)
--16976-- Reading debug info from /usr/lib/libXt.so.6.0.0...
--16976-- ... CRC mismatch (computed A55BC65D wanted 37A59C77)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libSM.so.6.0.0 (0x40FE000)
--16976-- Reading debug info from /usr/lib/libSM.so.6.0.0...
--16976-- ... CRC mismatch (computed 21F85705 wanted B7F35762)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libICE.so.6.3.0 (0x4107000)
--16976-- Reading debug info from /usr/lib/libICE.so.6.3.0...
--16976-- ... CRC mismatch (computed A91A718E wanted EE249A3B)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x411F000)
--16976-- Reading debug info from /usr/lib/libXext.so.6.4.0...
--16976-- ... CRC mismatch (computed 76F000D4 wanted 5E9AD156)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libtiff.so.4.2.1 (0x412E000)
--16976-- Reading debug info from /usr/lib/libtiff.so.4.2.1...
--16976-- ... CRC mismatch (computed A6B6B459 wanted 534A526B)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libjpeg.so.62.0.0 (0x4180000)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libpng12.so.0.15.0 (0x419F000)
--16976-- Reading debug info from /usr/lib/libpng12.so.0.15.0...
--16976-- ... CRC mismatch (computed 55AE968F wanted 8E11A089)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libz.so.1.2.3 (0x41C2000)
--16976-- Reading debug info from /usr/lib/libz.so.1.2.3...
--16976-- ... CRC mismatch (computed 153784B0 wanted 39A9788F)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /lib/tls/i686/cmov/libm-2.5.so (0x41D6000)
--16976-- Reading debug info from /lib/tls/i686/cmov/libm-2.5.so...
--16976-- ... CRC mismatch (computed 01B4F367 wanted BBAD3DFC)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libungif.so.4.1.4 (0x41FD000)
--16976-- Reading debug info from /usr/lib/libungif.so.4.1.4...
--16976-- ... CRC mismatch (computed EC755D1A wanted 46CDF795)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libXpm.so.4.11.0 (0x4206000)
--16976-- Reading debug info from /usr/lib/libXpm.so.4.11.0...
--16976-- ... CRC mismatch (computed 07179F70 wanted A094A164)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libX11.so.6.2.0 (0x4216000)
--16976-- Reading debug info from /usr/lib/libX11.so.6.2.0...
--16976-- ... CRC mismatch (computed DD0A6FF0 wanted EC0E85A2)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /lib/libncurses.so.5.5 (0x4307000)
--16976-- Reading debug info from /lib/libncurses.so.5.5...
--16976-- ... CRC mismatch (computed 37BF96DF wanted 80323FFE)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /lib/tls/i686/cmov/libc-2.5.so (0x434A000)
--16976-- Reading debug info from /lib/tls/i686/cmov/libc-2.5.so...
--16976-- ... CRC mismatch (computed B8328793 wanted 47732E66)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x448B000)
--16976-- Reading debug info from /usr/lib/libXau.so.6.0.0...
--16976-- ... CRC mismatch (computed 9B63F623 wanted 3D4FA456)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /usr/lib/libXdmcp.so.6.0.0 (0x448F000)
--16976-- Reading debug info from /usr/lib/libXdmcp.so.6.0.0...
--16976-- ... CRC mismatch (computed 9C88C6A5 wanted B8C4B469)
--16976-- object doesn't have a symbol table
--16976-- Reading syms from /lib/tls/i686/cmov/libdl-2.5.so (0x4494000)
--16976-- Reading debug info from /lib/tls/i686/cmov/libdl-2.5.so...
--16976-- ... CRC mismatch (computed B0FE552B wanted B3315259)
--16976-- object doesn't have a symbol table
--16976-- REDIR: 0x43B7FA0 (rindex) redirected to 0x40211C0 (rindex)
--16976-- REDIR: 0x43B3590 (malloc) redirected to 0x402059B (malloc)
--16976-- REDIR: 0x43B8DD0 (memmove) redirected to 0x40217C0 (memmove)
--16976-- REDIR: 0x43B4DA0 (free) redirected to 0x40201B5 (free)
--16976-- REDIR: 0x43B4F90 (realloc) redirected to 0x402064A (realloc)
--16976-- REDIR: 0x43B7BF0 (strlen) redirected to 0x4021480 (strlen)
--16976-- REDIR: 0x43B7680 (strcmp) redirected to 0x4021550 (strcmp)
--16976-- REDIR: 0x43B7DF0 (strncmp) redirected to 0x40214E0 (strncmp)
--16976-- REDIR: 0x43B7510 (index) redirected to 0x40212B0 (index)
--16976-- REDIR: 0x43B9CB0 (strchrnul) redirected to 0x4021820 (strchrnul)
--16976-- REDIR: 0x43B9330 (memcpy) redirected to 0x4021E50 (memcpy)
--16976-- REDIR: 0x43B8940 (memchr) redirected to 0x4021670 (memchr)
--16976-- REDIR: 0x43B7CA0 (strnlen) redirected to 0x4021450 (strnlen)
--16976-- REDIR: 0x43B9030 (stpcpy) redirected to 0x4021B10 (stpcpy)
--16976-- REDIR: 0x43B76F0 (strcpy) redirected to 0x4021BF0 (strcpy)
--16976-- REDIR: 0x43B9BE0 (rawmemchr) redirected to 0x4021850 (rawmemchr)
--16976-- REDIR: 0x43B8E40 (memset) redirected to 0x4021790 (memset)
--16976-- REDIR: 0x43B0E70 (mallopt) redirected to 0x401F500 (mallopt)
--16976-- REDIR: 0x43B7360 (strcat) redirected to 0x4021870 (strcat)
--16976-- REDIR: 0x43B7EF0 (strncpy) redirected to 0x4021FD0 (strncpy)
--16976-- REDIR: 0x43B3290 (calloc) redirected to 0x401F8C8 (calloc)
==16976== Invalid free() / delete / delete[]
==16976== at 0x402071B: realloc (vg_replace_malloc.c:306)
==16976== by 0x8126464: (within /usr/bin/emacs21-x)
==16976== by 0x8053477: (within /usr/bin/emacs21-x)
==16976== by 0x80538AC: (within /usr/bin/emacs21-x)
==16976== by 0x80539FF: (within /usr/bin/emacs21-x)
==16976== by 0x80DE57C: (within /usr/bin/emacs21-x)
==16976== by 0x435FEBB: (below main) (in /lib/tls/i686/cmov/libc-2.5.so)
==16976== Address 0x82A34E0 is not stack'd, malloc'd or (recently) free'd
--16976-- REDIR: 0x43B0820 (mallinfo) redirected to 0x401F5D1 (mallinfo)
==16976==
==16976== Invalid free() / delete / delete[]
==16976== at 0x402023A: free (vg_replace_malloc.c:233)
==16976== by 0x812641C: (within /usr/bin/emacs21-x)
==16976== by 0x81264BA: (within /usr/bin/emacs21-x)
==16976== by 0x8053477: (within /usr/bin/emacs21-x)
==16976== by 0x80538AC: (within /usr/bin/emacs21-x)
==16976== by 0x80539FF: (within /usr/bin/emacs21-x)
==16976== by 0x80DE57C: (within /usr/bin/emacs21-x)
==16976== by 0x435FEBB: (below main) (in /lib/tls/i686/cmov/libc-2.5.so)
==16976== Address 0x828C460 is not stack'd, malloc'd or (recently) free'd
emacs: Memory exhausted--use M-x save-some-buffers RET
==16976==
==16976== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 47 from 1)
==16976==
==16976== 1 errors in context 1 of 2:
==16976== Invalid free() / delete / delete[]
==16976== at 0x402023A: free (vg_replace_malloc.c:233)
==16976== by 0x812641C: (within /usr/bin/emacs21-x)
==16976== by 0x81264BA: (within /usr/bin/emacs21-x)
==16976== by 0x8053477: (within /usr/bin/emacs21-x)
==16976== by 0x80538AC: (within /usr/bin/emacs21-x)
==16976== by 0x80539FF: (within /usr/bin/emacs21-x)
==16976== by 0x80DE57C: (within /usr/bin/emacs21-x)
==16976== by 0x435FEBB: (below main) (in /lib/tls/i686/cmov/libc-2.5.so)
==16976== Address 0x828C460 is not stack'd, malloc'd or (recently) free'd
==16976==
==16976== 1 errors in context 2 of 2:
==16976== Invalid free() / delete / delete[]
==16976== at 0x402071B: realloc (vg_replace_malloc.c:306)
==16976== by 0x8126464: (within /usr/bin/emacs21-x)
==16976== by 0x8053477: (within /usr/bin/emacs21-x)
==16976== by 0x80538AC: (within /usr/bin/emacs21-x)
==16976== by 0x80539FF: (within /usr/bin/emacs21-x)
==16976== by 0x80DE57C: (within /usr/bin/emacs21-x)
==16976== by 0x435FEBB: (below main) (in /lib/tls/i686/cmov/libc-2.5.so)
==16976== Address 0x82A34E0 is not stack'd, malloc'd or (recently) free'd
--16976--
--16976-- supp: 47 dl-hack3
==16976==
==16976== IN SUMMARY: 2 errors from 2 contexts (suppressed: 47 from 1)
==16976==
==16976== malloc/free: in use at exit: 25,067 bytes in 29 blocks.
==16976== malloc/free: 1,429 allocs, 1,401 frees, 90,128 bytes allocated.
==16976==
==16976== searching for pointers to 29 not-freed blocks.
==16976== checked 3,378,184 bytes.
==16976==
==16976== LEAK SUMMARY:
==16976== definitely lost: 0 bytes in 0 blocks.
==16976== possibly lost: 0 bytes in 0 blocks.
==16976== still reachable: 25,067 bytes in 29 blocks.
==16976== suppressed: 0 bytes in 0 blocks.
==16976== Reachable blocks (those to which a pointer was found) are not shown.
==16976== To see them, rerun with: --show-reachable=yes
--16976-- memcheck: sanity checks: 10 cheap, 1 expensive
--16976-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--16976-- memcheck: auxmaps: 0 searches, 0 comparisons
--16976-- memcheck: SMs: n_issued = 38 (608k, 0M)
--16976-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--16976-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--16976-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--16976-- memcheck: SMs: max_defined = 136 (2176k, 2M)
--16976-- memcheck: SMs: max_non_DSM = 38 (608k, 0M)
--16976-- memcheck: max sec V bit nodes: 0 (0k, 0M)
--16976-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--16976-- memcheck: max shadow mem size: 912k, 0M
--16976-- translate: fast SP updates identified: 6,216 ( 89.6%)
--16976-- translate: generic_known SP updates identified: 422 ( 6.0%)
--16976-- translate: generic_unknown SP updates identified: 297 ( 4.2%)
--16976-- tt/tc: 10,849 tt lookups requiring 11,290 probes
--16976-- tt/tc: 10,849 fast-cache updates, 2 flushes
--16976-- transtab: new 5,162 (106,572 -> 1,726,606; ratio 162:10) [0 scs]
--16976-- transtab: dumped 0 (0 -> ??)
--16976-- transtab: discarded 0 (0 -> ??)
--16976-- scheduler: 1,103,872 jumps (bb entries).
--16976-- scheduler: 10/8,904 major/minor sched events.
--16976-- sanity: 11 cheap, 1 expensive checks.
--16976-- exectx: 30,011 lists, 113 contexts (avg 0 per list)
--16976-- exectx: 2,875 searches, 2,762 full compares (960 per 1000)
--16976-- exectx: 0 cmp2, 99 cmp4, 0 cmpAll

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta?

Changed in emacs21:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in emacs21:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.