Now running CVS-version on 9:30 UTC 2008-12-22 ...
Results of file attachments.
Serg.
Serg.
Hi Serg,
Interesting log-files... It seems that your compiler generate wrong code...
==00:06:33:57.651 2275== Invalid read of size 8
==00:06:33:57.651 2275== at 0x4C56559: LockGet (ow_locks.c:195)
==00:06:33:57.651 2275== Address 0x5A0D750 is 0 bytes inside a block of
size 32 free'd
==00:06:33:57.651 2275== at 0x4A0541E: free (vg_replace_malloc.c:233)
==00:06:33:57.651 2275== by 0x30D8ED02B6: tdelete (in /lib64/libc-2.5.so)
tsearch() seem to return a pointer to opaque, but "pn->lock = opaque->key"
results "Invalid read of size 8"... ?
I have made some changes in the code, and that might fix the problem. Size
of "struct devlock" might have be unknown at some places and I have moved
around the definitions a bit.
Can you checkout the latest CVS-version and try it?
If this doesn't work, you can try to edit module/owlib/src/c/ow_locks.c and
change two rows...
pn->lock = (struct devlock *)opaque->key; /* Serg: Invalid read of
size 8 */
/* Why should a pointer compare fail? Unaligned memory?
Perhaps try to copy the pointer with memcpy() instead. Will this
help?
*/
//memcpy(pn->lock, opaque->key, sizeof(struct devlock *));
Comment out the row "pn->lock = " and uncomment memcpy instead.... Will this
work for better for you?
It should remove the warning of "Invalid read of size 8" at least, and
perhaps everything will work then as well.
BTW: Which platform are you using? I have a feeling that your source isn't
compiled with -m64, even if it should be...
Could you look at the host_cpu in config.log and "uname -a"
# grep host_cpu cvs/owfs/config.log
# uname -a
/Christian
-----Original Message-----
From: Serg Oskin [mailto:s...@oskin.ru]
Sent: Saturday, December 20, 2008 10:33 PM
To: owfs-developers@lists.sourceforge.net
Subject: Re: [Owfs-developers] general protection
Ctrl-C pressed.
Tried - the result of old.
Version: from CVS at Dec 20 2008 12:00 UTC.
Message in /tmp/owfs_fatal I received only once during the "kill
owserver_pid":
ow_connect.c:322 mutex_destroy failed rc=16 [Device or resource busy]
Serg.
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3709 (20081220) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3709 (20081220) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
==00:00:00:00.000 24924== Memcheck, a memory error detector.
==00:00:00:00.000 24924== Copyright (C) 2002-2006, and GNU GPL'd, by Julian
Seward et al.
==00:00:00:00.000 24924== Using LibVEX rev 1658, a library for dynamic binary
translation.
==00:00:00:00.000 24924== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks
LLP.
==00:00:00:00.000 24924== Using valgrind-3.2.1, a dynamic binary
instrumentation framework.
==00:00:00:00.000 24924== Copyright (C) 2000-2006, and GNU GPL'd, by Julian
Seward et al.
==00:00:00:00.000 24924==
==00:00:00:00.000 24924== My PID = 24924, parent PID = 24923. Prog and args
are:
==00:00:00:00.000 24924== /usr/sbin/owserver
==00:00:00:00.000 24924== -p
==00:00:00:00.000 24924== 30003
==00:00:00:00.000 24924== -d
==00:00:00:00.000 24924== /dev/ttyS0
==00:00:00:00.000 24924== -t
==00:00:00:00.000 24924== 30
==00:00:00:00.000 24924== --foreground
==00:00:00:00.000 24924==
--00:00:00:00.000 24924--
--00:00:00:00.000 24924-- Command line
--00:00:00:00.000 24924-- /usr/sbin/owserver
--00:00:00:00.000 24924-- -p
--00:00:00:00.000 24924-- 30003
--00:00:00:00.000 24924-- -d
--00:00:00:00.000 24924-- /dev/ttyS0
--00:00:00:00.000 24924-- -t
--00:00:00:00.000 24924-- 30
--00:00:00:00.000 24924-- --foreground
--00:00:00:00.000 24924-- Startup, with flags:
--00:00:00:00.000 24924-- --time-stamp=yes
--00:00:00:00.000 24924-- --leak-check=full
--00:00:00:00.000 24924-- --leak-resolution=high
--00:00:00:00.000 24924-- --log-file=/tmp/owserver.log
--00:00:00:00.000 24924-- --trace-children=yes
--00:00:00:00.000 24924-- --undef-value-errors=yes
--00:00:00:00.000 24924-- --verbose
--00:00:00:00.000 24924-- Contents of /proc/version:
--00:00:00:00.000 24924-- Linux version 2.6.18-92.1.22.el5
(mockbu...@hs20-bc2-5.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat
4.1.2-42)) #1 SMP Fri Dec 5 09:28:22 EST 2008
--00:00:00:00.000 24924-- Arch and hwcaps: AMD64, amd64-sse2
--00:00:00:00.000 24924-- Valgrind library directory: /usr/lib64/valgrind
--00:00:00:00.001 24924-- Reading syms from /usr/sbin/owserver (0x400000)
--00:00:00:00.001 24924-- Reading debug info from
/usr/lib/debug/usr/sbin/owserver.debug...
--00:00:00:00.003 24924-- Reading syms from
/usr/lib64/valgrind/amd64-linux/memcheck (0x38000000)
--00:00:00:00.004 24924-- object doesn't have a dynamic symbol table
--00:00:00:00.092 24924-- Reading syms from /lib64/ld-2.5.so (0x30D8A00000)
--00:00:00:00.095 24924-- Reading suppressions file:
/usr/lib64/valgrind/default.supp
--00:00:00:00.221 24924-- Reading syms from
/usr/lib64/valgrind/amd64-linux/vgpreload_core.so (0x4802000)
--00:00:00:00.234 24924-- Reading syms from
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so (0x4A03000)
--00:00:00:00.248 24924-- REDIR: 0x30D8A14400 (index) redirected to 0x4A06550
(index)
--00:00:00:00.251 24924-- REDIR: 0x30D8A145B0 (strcmp) redirected to 0x4A067D0
(strcmp)
--00:00:00:00.253 24924-- REDIR: 0x30D8A145E0 (strlen) redirected to 0x4A06700
(strlen)
--00:00:00:00.265 24924-- Reading syms from /usr/lib64/libow-2.7.so.12.0.0
(0x4C09000)
--00:00:00:00.265 24924-- Reading debug info from
/usr/lib/debug/usr/lib64/libow-2.7.so.12.0.0.debug...
--00:00:00:00.297 24924-- Reading syms from /usr/lib64/libusb-0.1.so.4.4.4
(0x30D9E00000)
--00:00:00:00.297 24924-- object doesn't have a symbol table
--00:00:00:00.319 24924-- Reading syms from /lib64/libm-2.5.so (0x30D9600000)
--00:00:00:00.321 24924-- Reading syms from /lib64/libdl-2.5.so (0x30D9200000)
--00:00:00:00.322 24924-- Reading syms from /lib64/libpthread-2.5.so
(0x30DA600000)
--00:00:00:00.327 24924-- Reading syms from /lib64/libc-2.5.so (0x30D8E00000)
--00:00:00:00.354 24924-- Reading syms from /lib64/libgcc_s-4.1.2-20080102.so.1
(0x30DBA00000)
--00:00:00:00.354 24924-- object doesn't have a symbol table
--00:00:00:00.470 24924-- REDIR: 0x30D8E79810 (memset) redirected to 0x4A06920
(memset)
--00:00:00:00.485 24924-- REDIR: 0x30D8E7A320 (memcpy) redirected to 0x4A06FF0
(memcpy)
--00:00:00:00.492 24924-- REDIR: 0x30D8E78960 (rindex) redirected to 0x4A06400
(rindex)
--00:00:00:00.530 24924-- REDIR: 0x30D8E72EA0 (calloc) redirected to 0x4A04AAC
(calloc)
--00:00:00:00.551 24924-- REDIR: 0x30D8E73230 (malloc) redirected to 0x4A05787
(malloc)
--00:00:00:00.558 24924-- REDIR: 0x30D8E74DF0 (free) redirected to 0x4A05397
(free)
--00:00:00:00.574 24924-- REDIR: 0x30D8E77FF0 (strcmp) redirected to 0x4A06790
(strcmp)
--00:00:00:00.616 24924-- REDIR: 0x30D8E79060 (memchr) redirected to 0x4A06850
(memchr)
--00:00:00:00.622 24924-- REDIR: 0x30D8E7AF80 (rawmemchr) redirected to
0x4A069E0 (rawmemchr)
--00:00:00:00.727 24924-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to
0x380279E1 (???)
--00:00:00:00.729 24924-- REDIR: 0x30D8E78570 (strlen) redirected to 0x4A066C0
(strlen)
--00:00:00:00.740 24924-- REDIR: 0x30D8E77E40 (index) redirected to 0x4A064F0
(index)
--00:00:00:00.758 24924-- REDIR: 0x30D8E787F0 (strncmp) redirected to 0x4A06720
(strncmp)
--00:00:00:01.062 24924-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to
0x380279D7 (???)
--00:00:00:21.136 24924-- REDIR: 0x30D8E78030 (strcpy) redirected to 0x4A06D90
(strcpy)
--00:00:00:21.677 24924-- REDIR: 0x30D8E77C80 (strcat) redirected to 0x4A06A00
(strcat)
--00:00:00:21.684 24924-- REDIR: 0x30D8E74FD0 (realloc) redirected to 0x4A05838
(realloc)
--00:00:00:23.318 24924-- REDIR: 0x30D8E788B0 (strncpy) redirected to 0x4A07170
(strncpy)
--00:00:03:48.903 24924-- memcheck GC: 1024 nodes, 1024 survivors (100.0%)
--00:00:03:48.903 24924-- memcheck GC: increase table size to 2048
--00:00:10:25.561 24924-- memcheck GC: 2048 nodes, 2048 survivors (100.0%)
--00:00:10:25.561 24924-- memcheck GC: increase table size to 4096
--00:00:22:39.016 24924-- memcheck GC: 4096 nodes, 3349 survivors ( 81.7%)
--00:00:22:39.016 24924-- memcheck GC: increase table size to 8192
==00:00:35:43.416 24924== Thread 9:
==00:00:35:43.416 24924== Invalid read of size 8
==00:00:35:43.416 24924== at 0x4C568B7: LockGet (ow_locks.c:189)
==00:00:35:43.416 24924== by 0x4C5D8A1: FS_r_given_bus (ow_read.c:231)
==00:00:35:43.416 24924== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:35:43.416 24924== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:35:43.416 24924== by 0x402AAD: ReadHandler (read.c:86)
==00:00:35:43.416 24924== by 0x40339A: DataHandler (data.c:125)
==00:00:35:43.416 24924== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:35:43.416 24924== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:35:43.416 24924== Address 0x6575D30 is 0 bytes inside a block of size
32 free'd
==00:00:35:43.416 24924== at 0x4A0541E: free (vg_replace_malloc.c:233)
==00:00:35:43.416 24924== by 0x30D8ED02B6: tdelete (in /lib64/libc-2.5.so)
==00:00:35:43.416 24924== by 0x4C56763: LockRelease (ow_locks.c:209)
==00:00:35:43.417 24924== by 0x4C5D98B: FS_r_given_bus (ow_read.c:238)
==00:00:35:43.417 24924== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:35:43.417 24924== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:35:43.417 24924== by 0x402AAD: ReadHandler (read.c:86)
==00:00:35:43.417 24924== by 0x40339A: DataHandler (data.c:125)
==00:00:35:43.417 24924== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:35:43.417 24924== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
# Ctrl-C pressed
--00:00:41:52.315 24924-- REDIR: 0x30D8E7A020 (stpcpy) redirected to 0x4A06CB0
(stpcpy)
==00:00:41:52.405 24924==
==00:00:41:52.405 24924== ERROR SUMMARY: 1 errors from 1 contexts (suppressed:
4 from 1)
==00:00:41:52.405 24924==
==00:00:41:52.405 24924== 1 errors in context 1 of 1:
==00:00:41:52.405 24924== Invalid read of size 8
==00:00:41:52.405 24924== at 0x4C568B7: LockGet (ow_locks.c:189)
==00:00:41:52.405 24924== by 0x4C5D8A1: FS_r_given_bus (ow_read.c:231)
==00:00:41:52.405 24924== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:41:52.405 24924== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:41:52.405 24924== by 0x402AAD: ReadHandler (read.c:86)
==00:00:41:52.405 24924== by 0x40339A: DataHandler (data.c:125)
==00:00:41:52.405 24924== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:41:52.405 24924== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:41:52.405 24924== Address 0x6575D30 is 0 bytes inside a block of size
32 free'd
==00:00:41:52.405 24924== at 0x4A0541E: free (vg_replace_malloc.c:233)
==00:00:41:52.405 24924== by 0x30D8ED02B6: tdelete (in /lib64/libc-2.5.so)
==00:00:41:52.405 24924== by 0x4C56763: LockRelease (ow_locks.c:209)
==00:00:41:52.406 24924== by 0x4C5D98B: FS_r_given_bus (ow_read.c:238)
==00:00:41:52.406 24924== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:41:52.406 24924== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:41:52.406 24924== by 0x402AAD: ReadHandler (read.c:86)
==00:00:41:52.406 24924== by 0x40339A: DataHandler (data.c:125)
==00:00:41:52.406 24924== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:41:52.406 24924== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
--00:00:41:52.406 24924--
--00:00:41:52.406 24924-- supp: 4 Fedora-Core-6-hack3-ld25
==00:00:41:52.406 24924==
==00:00:41:52.406 24924== IN SUMMARY: 1 errors from 1 contexts (suppressed: 4
from 1)
==00:00:41:52.406 24924==
==00:00:41:52.407 24924== malloc/free: in use at exit: 210,684 bytes in 1,321
blocks.
==00:00:41:52.407 24924== malloc/free: 78,606 allocs, 77,285 frees, 56,538,655
bytes allocated.
==00:00:41:52.407 24924==
==00:00:41:52.408 24924== searching for pointers to 1,321 not-freed blocks.
==00:00:41:53.128 24924== checked 42,159,432 bytes.
==00:00:41:53.136 24924==
==00:00:41:53.136 24924== Thread 1:
==00:00:41:53.136 24924==
==00:00:41:53.136 24924== 272 bytes in 1 blocks are possibly lost in loss
record 7 of 10
==00:00:41:53.136 24924== at 0x4A04B32: calloc (vg_replace_malloc.c:279)
==00:00:41:53.136 24924== by 0x30D8A0FF02: _dl_allocate_tls (in
/lib64/ld-2.5.so)
==00:00:41:53.136 24924== by 0x30DA606A33: pthread_create@@GLIBC_2.2.5 (in
/lib64/libpthread-2.5.so)
==00:00:41:53.136 24924== by 0x4C58797: ServerProcessOut
(ow_net_server.c:219)
==00:00:41:53.136 24924== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:41:53.136 24924== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:41:53.136 24924==
==00:00:41:53.136 24924==
==00:00:41:53.136 24924== 816 bytes in 3 blocks are possibly lost in loss
record 8 of 10
==00:00:41:53.136 24924== at 0x4A04B32: calloc (vg_replace_malloc.c:279)
==00:00:41:53.136 24924== by 0x30D8A0FF02: _dl_allocate_tls (in
/lib64/ld-2.5.so)
==00:00:41:53.136 24924== by 0x30DA606A33: pthread_create@@GLIBC_2.2.5 (in
/lib64/libpthread-2.5.so)
==00:00:41:53.136 24924== by 0x403767: Handler (handler.c:192)
==00:00:41:53.136 24924== by 0x4C57FEA: ServerProcessHandler
(ow_net_server.c:158)
==00:00:41:53.136 24924== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:41:53.136 24924== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:41:53.136 24924==
==00:00:41:53.136 24924==
==00:00:41:53.136 24924== 209,280 (176,000 direct, 33,280 indirect) bytes in
1,100 blocks are definitely lost in loss record 10 of 10
==00:00:41:53.136 24924== at 0x4A05809: malloc (vg_replace_malloc.c:149)
==00:00:41:53.136 24924== by 0x4C5BFBE: FS_OWQ_from_pn (ow_parseobject.c:87)
==00:00:41:53.136 24924== by 0x4C5C0AC: FS_OWQ_create_sibling
(ow_parseobject.c:53)
==00:00:41:53.136 24924== by 0x4C61AFB: FS_r_sibling_F (ow_sibling.c:49)
==00:00:41:53.137 24924== by 0x4C30C7B: FS_slowtemp (ow_1820.c:282)
==00:00:41:53.137 24924== by 0x4C5CFAC: FS_read_lump (ow_read.c:472)
==00:00:41:53.137 24924== by 0x4C5D2F4: FS_r_local (ow_read.c:427)
==00:00:41:53.137 24924== by 0x4C5D967: FS_r_given_bus (ow_read.c:232)
==00:00:41:53.137 24924== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:41:53.137 24924== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:41:53.137 24924== by 0x402AAD: ReadHandler (read.c:86)
==00:00:41:53.137 24924== by 0x40339A: DataHandler (data.c:125)
==00:00:41:53.137 24924==
==00:00:41:53.137 24924== LEAK SUMMARY:
==00:00:41:53.137 24924== definitely lost: 176,000 bytes in 1,100 blocks.
==00:00:41:53.137 24924== indirectly lost: 33,280 bytes in 208 blocks.
==00:00:41:53.137 24924== possibly lost: 1,088 bytes in 4 blocks.
==00:00:41:53.137 24924== still reachable: 316 bytes in 9 blocks.
==00:00:41:53.137 24924== suppressed: 0 bytes in 0 blocks.
==00:00:41:53.137 24924== Reachable blocks (those to which a pointer was found)
are not shown.
==00:00:41:53.137 24924== To see them, rerun with: --show-reachable=yes
--00:00:41:53.137 24924-- memcheck: sanity checks: 3 cheap, 1 expensive
--00:00:41:53.137 24924-- memcheck: auxmaps: 231 auxmap entries (14784k, 14M)
in use
--00:00:41:53.137 24924-- memcheck: auxmaps: 41683536 searches, 51219066
comparisons
--00:00:41:53.137 24924-- memcheck: SMs: n_issued = 437 (6992k, 6M)
--00:00:41:53.137 24924-- memcheck: SMs: n_deissued = 272 (4352k, 4M)
--00:00:41:53.137 24924-- memcheck: SMs: max_noaccess = 524287 (8388592k,
8191M)
--00:00:41:53.137 24924-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--00:00:41:53.137 24924-- memcheck: SMs: max_defined = 7953 (127248k, 124M)
--00:00:41:53.137 24924-- memcheck: SMs: max_non_DSM = 170 (2720k, 2M)
--00:00:41:53.137 24924-- memcheck: max sec V bit nodes: 5456 (468k, 0M)
--00:00:41:53.137 24924-- memcheck: set_sec_vbits8 calls: 40582 (new: 6203,
updates: 34379)
--00:00:41:53.137 24924-- memcheck: max shadow mem size: 7332k, 7M
--00:00:41:53.144 24924-- translate: fast SP updates identified:
4,684 ( 87.2%)
--00:00:41:53.144 24924-- translate: generic_known SP updates identified: 545
( 10.1%)
--00:00:41:53.144 24924-- translate: generic_unknown SP updates identified: 140
( 2.6%)
--00:00:41:53.144 24924-- tt/tc: 549,724 tt lookups requiring 562,123 probes
--00:00:41:53.144 24924-- tt/tc: 549,724 fast-cache updates, 5 flushes
--00:00:41:53.144 24924-- transtab: new 5,671 (131,113 -> 2,363,822;
ratio 180:10) [0 scs]
--00:00:41:53.144 24924-- transtab: dumped 0 (0 -> ??)
--00:00:41:53.144 24924-- transtab: discarded 13 (276 -> ??)
--00:00:41:53.144 24924-- scheduler: 46,522,585 jumps (bb entries).
--00:00:41:53.144 24924-- scheduler: 3/1,344,754 major/minor sched events.
--00:00:41:53.144 24924-- sanity: 4 cheap, 1 expensive checks.
--00:00:41:53.144 24924-- exectx: 30,011 lists, 6,242 contexts (avg 0 per
list)
--00:00:41:53.144 24924-- exectx: 155,896 searches, 404,188 full compares
(2,592 per 1000)
--00:00:41:53.144 24924-- exectx: 0 cmp2, 6 cmp4, 1,332 cmpAll
==00:00:00:00.000 32688== Memcheck, a memory error detector.
==00:00:00:00.000 32688== Copyright (C) 2002-2006, and GNU GPL'd, by Julian
Seward et al.
==00:00:00:00.000 32688== Using LibVEX rev 1658, a library for dynamic binary
translation.
==00:00:00:00.000 32688== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks
LLP.
==00:00:00:00.000 32688== Using valgrind-3.2.1, a dynamic binary
instrumentation framework.
==00:00:00:00.000 32688== Copyright (C) 2000-2006, and GNU GPL'd, by Julian
Seward et al.
==00:00:00:00.000 32688==
==00:00:00:00.000 32688== My PID = 32688, parent PID = 24923. Prog and args
are:
==00:00:00:00.000 32688== /usr/sbin/owserver
==00:00:00:00.000 32688== -p
==00:00:00:00.000 32688== 30003
==00:00:00:00.000 32688== -d
==00:00:00:00.000 32688== /dev/ttyS0
==00:00:00:00.000 32688== -t
==00:00:00:00.000 32688== 30
==00:00:00:00.000 32688== --foreground
==00:00:00:00.000 32688==
--00:00:00:00.000 32688--
--00:00:00:00.000 32688-- Command line
--00:00:00:00.000 32688-- /usr/sbin/owserver
--00:00:00:00.000 32688-- -p
--00:00:00:00.000 32688-- 30003
--00:00:00:00.000 32688-- -d
--00:00:00:00.000 32688-- /dev/ttyS0
--00:00:00:00.000 32688-- -t
--00:00:00:00.000 32688-- 30
--00:00:00:00.000 32688-- --foreground
--00:00:00:00.000 32688-- Startup, with flags:
--00:00:00:00.000 32688-- --time-stamp=yes
--00:00:00:00.000 32688-- --leak-check=full
--00:00:00:00.000 32688-- --leak-resolution=high
--00:00:00:00.000 32688-- --log-file=/tmp/owserver.log
--00:00:00:00.000 32688-- --trace-children=yes
--00:00:00:00.000 32688-- --undef-value-errors=yes
--00:00:00:00.000 32688-- --verbose
--00:00:00:00.000 32688-- Contents of /proc/version:
--00:00:00:00.000 32688-- Linux version 2.6.18-92.1.22.el5
(mockbu...@hs20-bc2-5.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat
4.1.2-42)) #1 SMP Fri Dec 5 09:28:22 EST 2008
--00:00:00:00.000 32688-- Arch and hwcaps: AMD64, amd64-sse2
--00:00:00:00.000 32688-- Valgrind library directory: /usr/lib64/valgrind
--00:00:00:00.001 32688-- Reading syms from /usr/sbin/owserver (0x400000)
--00:00:00:00.001 32688-- Reading debug info from
/usr/lib/debug/usr/sbin/owserver.debug...
--00:00:00:00.003 32688-- Reading syms from
/usr/lib64/valgrind/amd64-linux/memcheck (0x38000000)
--00:00:00:00.004 32688-- object doesn't have a dynamic symbol table
--00:00:00:00.094 32688-- Reading syms from /lib64/ld-2.5.so (0x30D8A00000)
--00:00:00:00.098 32688-- Reading suppressions file:
/usr/lib64/valgrind/default.supp
--00:00:00:00.224 32688-- Reading syms from
/usr/lib64/valgrind/amd64-linux/vgpreload_core.so (0x4802000)
--00:00:00:00.236 32688-- Reading syms from
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so (0x4A03000)
--00:00:00:00.250 32688-- REDIR: 0x30D8A14400 (index) redirected to 0x4A06550
(index)
--00:00:00:00.253 32688-- REDIR: 0x30D8A145B0 (strcmp) redirected to 0x4A067D0
(strcmp)
--00:00:00:00.255 32688-- REDIR: 0x30D8A145E0 (strlen) redirected to 0x4A06700
(strlen)
--00:00:00:00.267 32688-- Reading syms from /usr/lib64/libow-2.7.so.12.0.0
(0x4C09000)
--00:00:00:00.267 32688-- Reading debug info from
/usr/lib/debug/usr/lib64/libow-2.7.so.12.0.0.debug...
--00:00:00:00.303 32688-- Reading syms from /usr/lib64/libusb-0.1.so.4.4.4
(0x30D9E00000)
--00:00:00:00.303 32688-- object doesn't have a symbol table
--00:00:00:00.325 32688-- Reading syms from /lib64/libm-2.5.so (0x30D9600000)
--00:00:00:00.327 32688-- Reading syms from /lib64/libdl-2.5.so (0x30D9200000)
--00:00:00:00.328 32688-- Reading syms from /lib64/libpthread-2.5.so
(0x30DA600000)
--00:00:00:00.333 32688-- Reading syms from /lib64/libc-2.5.so (0x30D8E00000)
--00:00:00:00.360 32688-- Reading syms from /lib64/libgcc_s-4.1.2-20080102.so.1
(0x30DBA00000)
--00:00:00:00.360 32688-- object doesn't have a symbol table
--00:00:00:00.477 32688-- REDIR: 0x30D8E79810 (memset) redirected to 0x4A06920
(memset)
--00:00:00:00.491 32688-- REDIR: 0x30D8E7A320 (memcpy) redirected to 0x4A06FF0
(memcpy)
--00:00:00:00.499 32688-- REDIR: 0x30D8E78960 (rindex) redirected to 0x4A06400
(rindex)
--00:00:00:00.537 32688-- REDIR: 0x30D8E72EA0 (calloc) redirected to 0x4A04AAC
(calloc)
--00:00:00:00.557 32688-- REDIR: 0x30D8E73230 (malloc) redirected to 0x4A05787
(malloc)
--00:00:00:00.564 32688-- REDIR: 0x30D8E74DF0 (free) redirected to 0x4A05397
(free)
--00:00:00:00.581 32688-- REDIR: 0x30D8E77FF0 (strcmp) redirected to 0x4A06790
(strcmp)
--00:00:00:00.622 32688-- REDIR: 0x30D8E79060 (memchr) redirected to 0x4A06850
(memchr)
--00:00:00:00.628 32688-- REDIR: 0x30D8E7AF80 (rawmemchr) redirected to
0x4A069E0 (rawmemchr)
--00:00:00:00.733 32688-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to
0x380279E1 (???)
--00:00:00:00.736 32688-- REDIR: 0x30D8E78570 (strlen) redirected to 0x4A066C0
(strlen)
--00:00:00:00.746 32688-- REDIR: 0x30D8E77E40 (index) redirected to 0x4A064F0
(index)
--00:00:00:00.765 32688-- REDIR: 0x30D8E787F0 (strncmp) redirected to 0x4A06720
(strncmp)
--00:00:00:01.070 32688-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to
0x380279D7 (???)
--00:00:00:02.341 32688-- REDIR: 0x30D8E78030 (strcpy) redirected to 0x4A06D90
(strcpy)
--00:00:00:04.454 32688-- REDIR: 0x30D8E788B0 (strncpy) redirected to 0x4A07170
(strncpy)
--00:00:01:32.256 32688-- REDIR: 0x30D8E77C80 (strcat) redirected to 0x4A06A00
(strcat)
--00:00:01:32.263 32688-- REDIR: 0x30D8E74FD0 (realloc) redirected to 0x4A05838
(realloc)
==00:00:01:34.398 32688== Thread 8:
==00:00:01:34.398 32688== Invalid write of size 8
==00:00:01:34.398 32688== at 0x4C568C2: LockGet (ow_locks.c:193)
==00:00:01:34.398 32688== by 0x4C5D8A1: FS_r_given_bus (ow_read.c:231)
==00:00:01:34.398 32688== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:01:34.398 32688== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:01:34.398 32688== by 0x402AAD: ReadHandler (read.c:86)
==00:00:01:34.398 32688== by 0x40339A: DataHandler (data.c:125)
==00:00:01:34.398 32688== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:01:34.398 32688== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:01:34.398 32688== Address 0x0 is not stack'd, malloc'd or (recently)
free'd
==00:00:01:34.398 32688==
==00:00:01:34.398 32688== Process terminating with default action of signal 11
(SIGSEGV)
==00:00:01:34.398 32688== Access not within mapped region at address 0x0
==00:00:01:34.398 32688== at 0x4C568C2: LockGet (ow_locks.c:193)
==00:00:01:34.399 32688== by 0x4C5D8A1: FS_r_given_bus (ow_read.c:231)
==00:00:01:34.399 32688== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:01:34.399 32688== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:01:34.399 32688== by 0x402AAD: ReadHandler (read.c:86)
==00:00:01:34.399 32688== by 0x40339A: DataHandler (data.c:125)
==00:00:01:34.399 32688== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:01:34.399 32688== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:01:34.458 32688==
==00:00:01:34.458 32688== ERROR SUMMARY: 1 errors from 1 contexts (suppressed:
4 from 1)
==00:00:01:34.458 32688==
==00:00:01:34.458 32688== 1 errors in context 1 of 1:
==00:00:01:34.458 32688== Invalid write of size 8
==00:00:01:34.458 32688== at 0x4C568C2: LockGet (ow_locks.c:193)
==00:00:01:34.458 32688== by 0x4C5D8A1: FS_r_given_bus (ow_read.c:231)
==00:00:01:34.458 32688== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:01:34.458 32688== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:01:34.458 32688== by 0x402AAD: ReadHandler (read.c:86)
==00:00:01:34.458 32688== by 0x40339A: DataHandler (data.c:125)
==00:00:01:34.458 32688== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:01:34.458 32688== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:01:34.458 32688== Address 0x0 is not stack'd, malloc'd or (recently)
free'd
--00:00:01:34.458 32688--
--00:00:01:34.458 32688-- supp: 4 Fedora-Core-6-hack3-ld25
==00:00:01:34.458 32688==
==00:00:01:34.458 32688== IN SUMMARY: 1 errors from 1 contexts (suppressed: 4
from 1)
==00:00:01:34.458 32688==
==00:00:01:34.460 32688== malloc/free: in use at exit: 21,192 bytes in 264
blocks.
==00:00:01:34.460 32688== malloc/free: 1,036 allocs, 772 frees, 539,040 bytes
allocated.
==00:00:01:34.460 32688==
==00:00:01:34.464 32688== searching for pointers to 264 not-freed blocks.
==00:00:01:35.354 32688== checked 42,165,696 bytes.
==00:00:01:35.354 32688==
==00:00:01:35.354 32688== Thread 1:
==00:00:01:35.354 32688==
==00:00:01:35.354 32688== 272 bytes in 1 blocks are possibly lost in loss
record 88 of 100
==00:00:01:35.354 32688== at 0x4A04B32: calloc (vg_replace_malloc.c:279)
==00:00:01:35.354 32688== by 0x30D8A0FF02: _dl_allocate_tls (in
/lib64/ld-2.5.so)
==00:00:01:35.354 32688== by 0x30DA606A33: pthread_create@@GLIBC_2.2.5 (in
/lib64/libpthread-2.5.so)
==00:00:01:35.354 32688== by 0x4C57D33: ServerProcess (ow_net_server.c:287)
==00:00:01:35.354 32688== by 0x401E27: main (owserver.c:153)
==00:00:01:35.355 32688==
==00:00:01:35.355 32688==
==00:00:01:35.355 32688== 816 bytes in 3 blocks are possibly lost in loss
record 95 of 100
==00:00:01:35.355 32688== at 0x4A04B32: calloc (vg_replace_malloc.c:279)
==00:00:01:35.355 32688== by 0x30D8A0FF02: _dl_allocate_tls (in
/lib64/ld-2.5.so)
==00:00:01:35.355 32688== by 0x30DA606A33: pthread_create@@GLIBC_2.2.5 (in
/lib64/libpthread-2.5.so)
==00:00:01:35.355 32688== by 0x403767: Handler (handler.c:192)
==00:00:01:35.355 32688== by 0x4C57FEA: ServerProcessHandler
(ow_net_server.c:158)
==00:00:01:35.355 32688== by 0x30DA6062F6: start_thread (in
/lib64/libpthread-2.5.so)
==00:00:01:35.355 32688== by 0x30D8ED1E3C: clone (in /lib64/libc-2.5.so)
==00:00:01:35.355 32688==
==00:00:01:35.355 32688==
==00:00:01:35.355 32688== 2,080 bytes in 13 blocks are definitely lost in loss
record 99 of 100
==00:00:01:35.355 32688== at 0x4A05809: malloc (vg_replace_malloc.c:149)
==00:00:01:35.355 32688== by 0x4C5BFBE: FS_OWQ_from_pn (ow_parseobject.c:87)
==00:00:01:35.355 32688== by 0x4C5C0AC: FS_OWQ_create_sibling
(ow_parseobject.c:53)
==00:00:01:35.355 32688== by 0x4C61AFB: FS_r_sibling_F (ow_sibling.c:49)
==00:00:01:35.355 32688== by 0x4C30C7B: FS_slowtemp (ow_1820.c:282)
==00:00:01:35.355 32688== by 0x4C5CFAC: FS_read_lump (ow_read.c:472)
==00:00:01:35.355 32688== by 0x4C5D2F4: FS_r_local (ow_read.c:427)
==00:00:01:35.355 32688== by 0x4C5D967: FS_r_given_bus (ow_read.c:232)
==00:00:01:35.355 32688== by 0x4C5DB01: FS_read_distribute (ow_read.c:193)
==00:00:01:35.355 32688== by 0x4C5E223: FS_read_postparse (ow_read.c:109)
==00:00:01:35.355 32688== by 0x402AAD: ReadHandler (read.c:86)
==00:00:01:35.355 32688== by 0x40339A: DataHandler (data.c:125)
==00:00:01:35.355 32688==
==00:00:01:35.355 32688== LEAK SUMMARY:
==00:00:01:35.355 32688== definitely lost: 2,080 bytes in 13 blocks.
==00:00:01:35.355 32688== possibly lost: 1,088 bytes in 4 blocks.
==00:00:01:35.355 32688== still reachable: 18,024 bytes in 247 blocks.
==00:00:01:35.355 32688== suppressed: 0 bytes in 0 blocks.
==00:00:01:35.355 32688== Reachable blocks (those to which a pointer was found)
are not shown.
==00:00:01:35.355 32688== To see them, rerun with: --show-reachable=yes
--00:00:01:35.355 32688-- memcheck: sanity checks: 3 cheap, 1 expensive
--00:00:01:35.356 32688-- memcheck: auxmaps: 231 auxmap entries (14784k, 14M)
in use
--00:00:01:35.356 32688-- memcheck: auxmaps: 660954 searches, 1250069
comparisons
--00:00:01:35.356 32688-- memcheck: SMs: n_issued = 48 (768k, 0M)
--00:00:01:35.356 32688-- memcheck: SMs: n_deissued = 2 (32k, 0M)
--00:00:01:35.356 32688-- memcheck: SMs: max_noaccess = 524287 (8388592k,
8191M)
--00:00:01:35.356 32688-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--00:00:01:35.356 32688-- memcheck: SMs: max_defined = 2707 (43312k, 42M)
--00:00:01:35.356 32688-- memcheck: SMs: max_non_DSM = 46 (736k, 0M)
--00:00:01:35.356 32688-- memcheck: max sec V bit nodes: 187 (16k, 0M)
--00:00:01:35.356 32688-- memcheck: set_sec_vbits8 calls: 970 (new: 187,
updates: 783)
--00:00:01:35.356 32688-- memcheck: max shadow mem size: 4896k, 4M
--00:00:01:35.364 32688-- translate: fast SP updates identified:
4,080 ( 86.9%)
--00:00:01:35.364 32688-- translate: generic_known SP updates identified: 489
( 10.4%)
--00:00:01:35.364 32688-- translate: generic_unknown SP updates identified: 121
( 2.5%)
--00:00:01:35.364 32688-- tt/tc: 15,870 tt lookups requiring 16,470 probes
--00:00:01:35.364 32688-- tt/tc: 15,870 fast-cache updates, 5 flushes
--00:00:01:35.364 32688-- transtab: new 5,055 (117,535 -> 2,116,675;
ratio 180:10) [0 scs]
--00:00:01:35.364 32688-- transtab: dumped 0 (0 -> ??)
--00:00:01:35.364 32688-- transtab: discarded 13 (276 -> ??)
--00:00:01:35.364 32688-- scheduler: 863,965 jumps (bb entries).
--00:00:01:35.365 32688-- scheduler: 3/22,249 major/minor sched events.
--00:00:01:35.365 32688-- sanity: 4 cheap, 1 expensive checks.
--00:00:01:35.365 32688-- exectx: 30,011 lists, 263 contexts (avg 0 per list)
--00:00:01:35.365 32688-- exectx: 1,813 searches, 3,517 full compares (1,939
per 1000)
--00:00:01:35.365 32688-- exectx: 0 cmp2, 6 cmp4, 5,376 cmpAll
------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers