W dniu 14.03.2012 12:20, Wojciech Zaburko napisał(a):
Bardzo prosiłbym o pomoc w interpretacji tego wyniku, to za wysokie chody dla mnie :)
Tą drogą to raczej ciężko będzie szybko zlokalizować problem w kodzie źródłowym lmsd ;-) Możesz tam zrobić tymczasowo jakiś dostęp zdalny? Myślę, że tak byłoby najszybciej.
==21248== Memcheck, a memory error detector. ==21248== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==21248== Using LibVEX rev 1854, a library for dynamic binary translation. ==21248== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==21248== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework. ==21248== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==21248== For more details, rerun with: -v ==21248== ==21248== Invalid read of size 4 ==21248== at 0x4015767: (within /lib/ld-2.7.so) ==21248== by 0x43402A1: (within /lib/i686/cmov/libc-2.7.so) ==21248== by 0x400DA35: (within /lib/ld-2.7.so) ==21248== by 0x4340464: __libc_dlopen_mode (in /lib/i686/cmov/libc-2.7.so) ==21248== by 0x431884F: __nss_lookup_function (in /lib/i686/cmov/libc-2.7.so) ==21248== by 0x431893F: (within /lib/i686/cmov/libc-2.7.so) ==21248== by 0x431A6D5: __nss_services_lookup (in /lib/i686/cmov/libc-2.7.so) ==21248== by 0x4320F08: getservbyname_r (in /lib/i686/cmov/libc-2.7.so) ==21248== by 0x4320C6D: getservbyname (in /lib/i686/cmov/libc-2.7.so) ==21248== by 0x407EA35: mysql_server_init (in /usr/lib/libmysqlclient.so.15.0.0) ==21248== by 0x40A5FF9: mysql_init (in /usr/lib/libmysqlclient.so.15.0.0) ==21248== by 0x804A9FB: db_connect (in /usr/local/lms/bin/lmsd) ==21248== Address 0x442615c is 44 bytes inside a block of size 46 alloc'd ==21248== at 0x4023D6E: malloc (vg_replace_malloc.c:207) ==21248== by 0x400DB43: (within /lib/ld-2.7.so) ==21248== by 0x4008558: (within /lib/ld-2.7.so) ==21248== by 0x4011B4E: (within /lib/ld-2.7.so) ==21248== by 0x400DA35: (within /lib/ld-2.7.so) ==21248== by 0x401156D: (within /lib/ld-2.7.so) ==21248== by 0x43402A1: (within /lib/i686/cmov/libc-2.7.so) ==21248== by 0x400DA35: (within /lib/ld-2.7.so) ==21248== by 0x4340464: __libc_dlopen_mode (in /lib/i686/cmov/libc-2.7.so) ==21248== by 0x431884F: __nss_lookup_function (in /lib/i686/cmov/libc-2.7.so) ==21248== by 0x431893F: (within /lib/i686/cmov/libc-2.7.so) ==21248== by 0x431A6D5: __nss_services_lookup (in /lib/i686/cmov/libc-2.7.so) ==21248== ==21248== Invalid read of size 1 ==21248== at 0x4024478: strlen (mc_replace_strmem.c:242) ==21248== by 0x804AD7E: str_replace (in /usr/local/lms/bin/lmsd) ==21248== by 0x4028BF8: reload (in /usr/local/lms/lib/tc-new.so) ==21248== by 0x804D05F: main (in /usr/local/lms/bin/lmsd) ==21248== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==21248== ==21248== Process terminating with default action of signal 11 (SIGSEGV) ==21248== Access not within mapped region at address 0x0 ==21248== at 0x4024478: strlen (mc_replace_strmem.c:242) ==21248== by 0x804AD7E: str_replace (in /usr/local/lms/bin/lmsd) ==21248== by 0x4028BF8: reload (in /usr/local/lms/lib/tc-new.so) ==21248== by 0x804D05F: main (in /usr/local/lms/bin/lmsd) ==21248== ==21248== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 53 from 3) ==21248== malloc/free: in use at exit: 156,106 bytes in 2,276 blocks. ==21248== malloc/free: 28,131 allocs, 25,855 frees, 6,526,300 bytes allocated. ==21248== For counts of detected errors, rerun with: -v ==21248== searching for pointers to 2,276 not-freed blocks. ==21248== checked 731,128 bytes. ==21248== ==21248== ==21248== 688 (88 direct, 600 indirect) bytes in 1 blocks are definitely lost in loss record 11 of 26 ==21248== at 0x4023D6E: malloc (vg_replace_malloc.c:207) ==21248== by 0x804C4DB: main (in /usr/local/lms/bin/lmsd) ==21248== ==21248== LEAK SUMMARY: ==21248== definitely lost: 88 bytes in 1 blocks. ==21248== indirectly lost: 600 bytes in 21 blocks. ==21248== possibly lost: 0 bytes in 0 blocks. ==21248== still reachable: 155,418 bytes in 2,254 blocks. ==21248== suppressed: 0 bytes in 0 blocks. ==21248== Reachable blocks (those to which a pointer was found) are not shown. ==21248== To see them, rerun with: --leak-check=full --show-reachable=yes Segmentation fault
-- ___ Wojciech Zaburko administrator sieci wmlan tel.: 509-896-647 skype: wmlan_bok wmlan.net.pl
ul. Lwowska 1 22-600 Tomaszów Lubelski NIP: 921-166-97-91
lms mailing list lms@lists.lms.org.pl http://lists.lms.org.pl/mailman/listinfo/lms