nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] Nano 1.3.8 and 1.3.8-cvs crashes on suse 9.3 x86_64


From: Simon Strandman
Subject: Re: [Nano-devel] Nano 1.3.8 and 1.3.8-cvs crashes on suse 9.3 x86_64
Date: Sat, 13 Aug 2005 23:17:55 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

David Lawrence Ramsey skrev:


Okay.  I should have guessed that it wouldn't be that simple.  If it's
crashing inside malloc(), that usually means that there's a memory
corruption problem somewhere, but I can't find anything obviously wrong
on my end.

Valgrind should be able to show where any corruption is occurring,
though.  (I suppose it's lucky that a version with x86_64 support came
out last week.)  What output does "valgrind -v [path-to-nano]" produce,
assuming you're using valgrind 3.0.0, when you search and get the
segfault?  Thanks in advance.

Okay. I installed valgrind 3.0 and ran it on cvs checkout of nano from earlier today. The problem is that I can't reproduce the bug when running under valgrind. I could search and do anything without it crashing it seemed. But without valgrind it still crashes. Here is the output anyway, I don't know if it's of any use. (It's a suse 9.3 system running in a chroot, that's why /proc/version reports gentoo)

==6805== Memcheck, a memory error detector.
==6805== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==6805== Using LibVEX rev 1313, a library for dynamic binary translation.
==6805== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==6805== Using valgrind-3.0.0, a dynamic binary instrumentation framework.
==6805== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
--6805-- Valgrind library directory: /usr/local/lib/valgrind
--6805-- Command line
--6805--    src/nano
--6805-- Startup, with flags:
--6805--    -v
--6805-- Contents of /proc/version:
--6805-- Linux version 2.6.13-rc6-git2-ck1 (address@hidden) (gcc version 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)) #1 Wed Aug 10 16:46:52 CEST 2005
--6805-- Reading syms from /home/nxsty/nano/src/nano (0x400000)
--6805-- Reading syms from /lib64/ld-2.3.4.so (0x11900000)
--6805-- Reading syms from /usr/local/lib/valgrind/stage2 (0x70000000)
--6805-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
==6805==
--6805-- Reading syms from /usr/local/lib/valgrind/vg_preload_core.so (0x11A18000) --6805-- Reading syms from /usr/local/lib/valgrind/vgpreload_memcheck.so (0x11B19000)
--6805-- REDIR: 0x1190FBE0 (index) redirected to 0x11B1C740 (index)
--6805-- REDIR: 0x1190FD90 (strcmp) redirected to 0x11B1CBF0 (strcmp)
--6805-- REDIR: 0x119100D0 (strlen) redirected to 0x11B1C980 (strlen)
--6805-- Reading syms from /usr/lib64/libncursesw.so.5.4 (0x11C32000)
--6805--    object doesn't have a symbol table
--6805-- Reading syms from /lib64/tls/libc.so.6 (0x11D99000)
--6805-- Reading syms from /lib64/libdl.so.2 (0x11FBF000)
--6805-- REDIR: 0x11E08040 (rindex) redirected to 0x11B1C640 (rindex)
--6805-- REDIR: 0x11E0A330 (memcpy) redirected to 0x11B1CC50 (memcpy)
--6805-- REDIR: 0x11E06910 (strcmp) redirected to 0x11B1CBC0 (strcmp)
--6805-- REDIR: 0x11E07660 (strlen) redirected to 0x11B1C940 (strlen)
--6805-- REDIR: 0x11E07B80 (strncmp) redirected to 0x11B1CB70 (strncmp)
--6805-- REDIR: 0x11E06760 (index) redirected to 0x11B1C700 (index)
--6805-- REDIR: 0x11E0B030 (strchrnul) redirected to 0x11B1D140 (strchrnul)
--6805-- REDIR: 0x11E03680 (malloc) redirected to 0x11B1AE5D (malloc)
--6805-- REDIR: 0x11E01830 (free) redirected to 0x11B1B9AF (free)
--6805-- REDIR: 0x11E086D0 (memchr) redirected to 0x11B1CC20 (memchr)
--6805-- REDIR: 0x11E03C20 (realloc) redirected to 0x11B1C223 (realloc)
--6805-- REDIR: 0x11E07A00 (strnlen) redirected to 0x11B1C910 (strnlen)
--6805-- REDIR: 0x11E09B10 (stpcpy) redirected to 0x11B1CE50 (stpcpy)
--6805-- REDIR: 0x11E0AF50 (rawmemchr) redirected to 0x11B1D160 (rawmemchr)
--6805-- REDIR: 0x11E07F90 (strncpy) redirected to 0x11B1CA70 (strncpy)
--6805-- REDIR: 0x11E08D50 (memset) redirected to 0x11B1D0C0 (memset)
--6805-- REDIR: 0x11E045B0 (calloc) redirected to 0x11B1C17A (calloc)
--6805-- REDIR: 0x11E06C80 (strcpy) redirected to 0x11B1C9A0 (strcpy)
==6805==
==6805== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from 4)
--6805--
--6805-- supp:    3 index-not-intercepted-early-enough-HACK-1
--6805-- supp:    1 strlen-not-intercepted-early-enough-HACK-4
--6805-- supp:    1 strlen-not-intercepted-early-enough-HACK-3
--6805-- supp:    2 dl_relocate_object
==6805== malloc/free: in use at exit: 1255963 bytes in 659 blocks.
==6805== malloc/free: 977 allocs, 318 frees, 1292751 bytes allocated.
==6805==
==6805== searching for pointers to 659 not-freed blocks.
==6805== checked 1456392 bytes.
==6805==
==6805== LEAK SUMMARY:
==6805==    definitely lost: 97 bytes in 25 blocks.
==6805==      possibly lost: 0 bytes in 0 blocks.
==6805==    still reachable: 1255866 bytes in 634 blocks.
==6805==         suppressed: 0 bytes in 0 blocks.
==6805== Use --leak-check=full to see details of leaked memory.
--6805--  memcheck: sanity checks: 81 cheap, 4 expensive
--6805--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--6805--  memcheck: auxmaps: 0 searches, 0 comparisons
--6805--  memcheck: secondaries: 36 issued (2304k, 2M)
--6805-- memcheck: secondaries: 116 accessible and distinguished (7424k, 7M)
--6805--     tt/tc: 13390 tt lookups requiring 14459 probes
--6805--     tt/tc: 13390 fast-cache updates, 5 flushes
--6805-- translate: new 6190 (154340 -> 2878011; ratio 186:10) [0 scs]
--6805-- translate: dumped     0 (0 -> ??)
--6805-- translate: discarded  10 (238 -> ??)
--6805-- scheduler: 4083673 jumps (bb entries).
--6805-- scheduler: 81/9043 major/minor sched events.
--6805--    sanity: 82 cheap, 4 expensive checks.
--6805--    exectx: 4999 lists, 387 contexts (avg 0 per list)
--6805--    exectx: 1272 searches, 6163 full compares (4845 per 1000)
--6805--    exectx: 0 cmp2, 21 cmp4, 0 cmpAll



--
Simon Strandman <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]