Hi All!

version 2.7p11

# dmesg
...
owserver[18546] general protection rip:2b88f97f76c0 rsp:53b29dc8 error:0
owserver[20757] general protection rip:2b13e1c026c0 rsp:4e8f1dc8 error:0


Sometimes this happens, starting with version 2.7p4.

# file core.15352
core.15352: ELF 64-bit LSB core file AMD x86-64, version 1 (SYSV), SVR4-style, 
from 'owserver'
# gdb /usr/sbin/owserver core.15352
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library 
"/lib64/libthread_db.so.1".

Reading symbols from /usr/lib64/libow-2.7.so.11...Reading symbols from 
/usr/lib/debug/usr/lib64/libow-2.7.so.11.0.0.debug...done.
done.
Loaded symbols for /usr/lib64/libow-2.7.so.11
Reading symbols from /usr/lib64/libusb-0.1.so.4...done.
Loaded symbols for /usr/lib64/libusb-0.1.so.4
Reading symbols from /lib64/libm.so.6...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libgcc_s.so.1...done.
Loaded symbols for /lib64/libgcc_s.so.1
Core was generated by `/usr/sbin/owserver -p 30003 -d /dev/ttyS0 -t 30'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002b88f97f76c0 in __pthread_mutex_unlock_usercnt () from 
/lib64/libpthread.so.0
(gdb)
(gdb) bt
#0  0x00002b88f97f76c0 in __pthread_mutex_unlock_usercnt () from 
/lib64/libpthread.so.0
#1  0x00002b88f911e506 in LockRelease (pn=0x53b2a058) at ow_locks.c:194
#2  0x00002b88f912504c in FS_r_given_bus (owq=0x53b2a040) at ow_read.c:238
#3  0x00002b88f912514f in FS_read_distribute (owq=0x53b2a040) at ow_read.c:193
#4  0x00002b88f91255ef in FS_read_postparse (owq=0x53b2a040) at ow_read.c:109
#5  0x000000000040278e in ReadHandler (hd=0x51325f00, cm=0x53b2a0e0, 
owq=0x53b2a040) at read.c:86
#6  0x0000000000403025 in DataHandler (v=<value optimized out>) at data.c:124
#7  0x00002b88f97f42f7 in start_thread () from /lib64/libpthread.so.0
#8  0x00002b88f9ad9e3d in clone () from /lib64/libc.so.6
(gdb)

# gdb /usr/sbin/owserver core.19785
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library 
"/lib64/libthread_db.so.1".

Reading symbols from /usr/lib64/libow-2.7.so.11...Reading symbols from 
/usr/lib/debug/usr/lib64/libow-2.7.so.11.0.0.debug...done.
done.
Loaded symbols for /usr/lib64/libow-2.7.so.11
Reading symbols from /usr/lib64/libusb-0.1.so.4...done.
Loaded symbols for /usr/lib64/libusb-0.1.so.4
Reading symbols from /lib64/libm.so.6...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libgcc_s.so.1...done.
Loaded symbols for /lib64/libgcc_s.so.1
Core was generated by `/usr/sbin/owserver -p 30003 -d /dev/ttyS0 -t 30'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002b13e1c026c0 in __pthread_mutex_unlock_usercnt () from 
/lib64/libpthread.so.0
(gdb) bt
#0  0x00002b13e1c026c0 in __pthread_mutex_unlock_usercnt () from 
/lib64/libpthread.so.0
#1  0x00002b13e1529506 in LockRelease (pn=0x4e8f2058) at ow_locks.c:194
#2  0x00002b13e153004c in FS_r_given_bus (owq=0x4e8f2040) at ow_read.c:238
#3  0x00002b13e153014f in FS_read_distribute (owq=0x4e8f2040) at ow_read.c:193
#4  0x00002b13e15305ef in FS_read_postparse (owq=0x4e8f2040) at ow_read.c:109
#5  0x000000000040278e in ReadHandler (hd=0x72d2bf00, cm=0x4e8f20e0, 
owq=0x4e8f2040) at read.c:86
#6  0x0000000000403025 in DataHandler (v=<value optimized out>) at data.c:124
#7  0x00002b13e1bff2f7 in start_thread () from /lib64/libpthread.so.0
#8  0x00002b13e1ee4e3d in clone () from /lib64/libc.so.6
(gdb)
==21086== Memcheck, a memory error detector.
==21086== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==21086== Using LibVEX rev 1658, a library for dynamic binary translation.
==21086== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==21086== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==21086== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==21086== 
==21086== My PID = 21086, parent PID = 21085.  Prog and args are:
==21086==    /usr/sbin/owserver
==21086==    -p
==21086==    30003
==21086==    -d
==21086==    /dev/ttyS0
==21086==    -t
==21086==    30
==21086==    --foreground
==21086== 
--21086-- 
--21086-- Command line
--21086--    /usr/sbin/owserver
--21086--    -p
--21086--    30003
--21086--    -d
--21086--    /dev/ttyS0
--21086--    -t
--21086--    30
--21086--    --foreground
--21086-- Startup, with flags:
--21086--    --leak-check=full
--21086--    --leak-resolution=high
--21086--    --log-file=/tmp/owserver.log
--21086--    --trace-children=yes
--21086--    --undef-value-errors=yes
--21086--    --verbose
--21086-- Contents of /proc/version:
--21086--   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
--21086-- Arch and hwcaps: AMD64, amd64-sse2
--21086-- Valgrind library directory: /usr/lib64/valgrind
--21086-- Reading syms from /usr/sbin/owserver (0x400000)
--21086-- Reading debug info from /usr/lib/debug/usr/sbin/owserver.debug...
--21086-- Reading syms from /lib64/ld-2.5.so (0x4000000)
--21086-- Reading syms from /usr/lib64/valgrind/amd64-linux/memcheck 
(0x38000000)
--21086--    object doesn't have a dynamic symbol table
--21086-- Reading suppressions file: /usr/lib64/valgrind/default.supp
--21086-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_core.so 
(0x4A1C000)
--21086-- Reading syms from 
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so (0x4C1D000)
--21086-- REDIR: 0x4014400 (index) redirected to 0x4C20550 (index)
--21086-- REDIR: 0x40145B0 (strcmp) redirected to 0x4C207D0 (strcmp)
--21086-- REDIR: 0x40145E0 (strlen) redirected to 0x4C20700 (strlen)
--21086-- Reading syms from /usr/lib64/libow-2.7.so.11.0.0 (0x4E23000)
--21086-- Reading debug info from 
/usr/lib/debug/usr/lib64/libow-2.7.so.11.0.0.debug...
--21086-- Reading syms from /usr/lib64/libusb-0.1.so.4.4.4 (0x3E99A00000)
--21086--    object doesn't have a symbol table
--21086-- Reading syms from /lib64/libm-2.5.so (0x50AD000)
--21086-- Reading syms from /lib64/libdl-2.5.so (0x5330000)
--21086-- Reading syms from /lib64/libpthread-2.5.so (0x5534000)
--21086-- Reading syms from /lib64/libc-2.5.so (0x574E000)
--21086-- REDIR: 0x57C7810 (memset) redirected to 0x4C20920 (memset)
--21086-- REDIR: 0x57C8320 (memcpy) redirected to 0x4C20FF0 (memcpy)
--21086-- REDIR: 0x57C6960 (rindex) redirected to 0x4C20400 (rindex)
--21086-- REDIR: 0x57C0EA0 (calloc) redirected to 0x4C1EAAC (calloc)
--21086-- REDIR: 0x57C1230 (malloc) redirected to 0x4C1F787 (malloc)
--21086-- REDIR: 0x57C2DF0 (free) redirected to 0x4C1F397 (free)
--21086-- REDIR: 0x57C5FF0 (strcmp) redirected to 0x4C20790 (strcmp)
--21086-- REDIR: 0x57C7060 (memchr) redirected to 0x4C20850 (memchr)
--21086-- REDIR: 0x57C8F80 (rawmemchr) redirected to 0x4C209E0 (rawmemchr)
--21086-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x380279E1 (???)
--21086-- REDIR: 0x57C6570 (strlen) redirected to 0x4C206C0 (strlen)
--21086-- REDIR: 0x57C5E40 (index) redirected to 0x4C204F0 (index)
--21086-- REDIR: 0x57C67F0 (strncmp) redirected to 0x4C20720 (strncmp)
--21086-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380279D7 (???)
--21086-- REDIR: 0x57C6030 (strcpy) redirected to 0x4C20D90 (strcpy)
--21086-- Reading syms from /lib64/libgcc_s-4.1.2-20080102.so.1 (0x3E9BE00000)
--21086--    object doesn't have a symbol table
--21086-- REDIR: 0x57C68B0 (strncpy) redirected to 0x4C21170 (strncpy)
--21086-- REDIR: 0x57C5C80 (strcat) redirected to 0x4C20A00 (strcat)
--21086-- REDIR: 0x57C2FD0 (realloc) redirected to 0x4C1F838 (realloc)
==21086== Thread 4:
==21086== Invalid read of size 8
==21086==    at 0x4E6D692: LockGet (ow_locks.c:176)
==21086==    by 0x4E73F71: FS_r_given_bus (ow_read.c:231)
==21086==    by 0x4E7414E: FS_read_distribute (ow_read.c:193)
==21086==    by 0x4E745EE: FS_read_postparse (ow_read.c:109)
==21086==    by 0x40278D: ReadHandler (read.c:86)
==21086==    by 0x403024: DataHandler (data.c:124)
==21086==    by 0x553A2F6: start_thread (in /lib64/libpthread-2.5.so)
==21086==    by 0x581FE3C: clone (in /lib64/libc-2.5.so)
==21086==  Address 0x64EF128 is 0 bytes inside a block of size 32 free'd
==21086==    at 0x4C1F41E: free (vg_replace_malloc.c:233)
==21086==    by 0x581E2B6: tdelete (in /lib64/libc-2.5.so)
==21086==    by 0x4E6D553: LockRelease (ow_locks.c:197)
==21086==    by 0x4E7404B: FS_r_given_bus (ow_read.c:238)
==21086==    by 0x4E7414E: FS_read_distribute (ow_read.c:193)
==21086==    by 0x4E745EE: FS_read_postparse (ow_read.c:109)
==21086==    by 0x40278D: ReadHandler (read.c:86)
==21086==    by 0x403024: DataHandler (data.c:124)
==21086==    by 0x553A2F6: start_thread (in /lib64/libpthread-2.5.so)
==21086==    by 0x581FE3C: clone (in /lib64/libc-2.5.so)
--21086-- memcheck GC: 1024 nodes, 1024 survivors (100.0%)
--21086-- memcheck GC: increase table size to 2048
--21086-- memcheck GC: 2048 nodes, 2048 survivors (100.0%)
--21086-- memcheck GC: increase table size to 4096
--21086-- memcheck GC: 4096 nodes, 3363 survivors ( 82.1%)
--21086-- memcheck GC: increase table size to 8192
==25685== Memcheck, a memory error detector.
==25685== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==25685== Using LibVEX rev 1658, a library for dynamic binary translation.
==25685== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==25685== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==25685== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==25685== 
==25685== My PID = 25685, parent PID = 9484.  Prog and args are:
==25685==    /usr/sbin/owserver
==25685==    -p
==25685==    30003
==25685==    -d
==25685==    /dev/ttyS0
==25685==    -t
==25685==    30
==25685==    --foreground
==25685== 
--25685-- 
--25685-- Command line
--25685--    /usr/sbin/owserver
--25685--    -p
--25685--    30003
--25685--    -d
--25685--    /dev/ttyS0
--25685--    -t
--25685--    30
--25685--    --foreground
--25685-- Startup, with flags:
--25685--    --leak-check=full
--25685--    --leak-resolution=high
--25685--    --log-file=/tmp/owserver.log
--25685--    --trace-children=yes
--25685--    --undef-value-errors=yes
--25685--    --verbose
--25685-- Contents of /proc/version:
--25685--   Linux version 2.6.18-92.1.13.el5 
(brewbuil...@hs20-bc2-2.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 
4.1.2-42)) #1 SMP Thu Sep 4 03:51:21 EDT 2008
--25685-- Arch and hwcaps: AMD64, amd64-sse2
--25685-- Valgrind library directory: /usr/lib64/valgrind
--25685-- Reading syms from /usr/sbin/owserver (0x400000)
--25685-- Reading debug info from /usr/lib/debug/usr/sbin/owserver.debug...
--25685-- Reading syms from /usr/lib64/valgrind/amd64-linux/memcheck 
(0x38000000)
--25685--    object doesn't have a dynamic symbol table
--25685-- Reading syms from /lib64/ld-2.5.so (0x3E98600000)
--25685-- Reading suppressions file: /usr/lib64/valgrind/default.supp
--25685-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_core.so 
(0x4802000)
--25685-- Reading syms from 
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so (0x4A03000)
--25685-- REDIR: 0x3E986143F0 (index) redirected to 0x4A06550 (index)
--25685-- REDIR: 0x3E986145A0 (strcmp) redirected to 0x4A067D0 (strcmp)
--25685-- REDIR: 0x3E986145D0 (strlen) redirected to 0x4A06700 (strlen)
--25685-- Reading syms from /usr/lib64/libow-2.7.so.8.0.0 (0x37A4800000)
--25685-- Reading debug info from 
/usr/lib/debug/usr/lib64/libow-2.7.so.8.0.0.debug...
--25685-- Reading syms from /usr/lib64/libusb-0.1.so.4.4.4 (0x3E99A00000)
--25685--    object doesn't have a symbol table
--25685-- Reading syms from /lib64/libm-2.5.so (0x3E99200000)
--25685-- Reading syms from /lib64/libdl-2.5.so (0x3E98E00000)
--25685-- Reading syms from /lib64/libpthread-2.5.so (0x3E9A200000)
--25685-- Reading syms from /lib64/libc-2.5.so (0x3E98A00000)
--25685-- REDIR: 0x3E98A79540 (memset) redirected to 0x4A06920 (memset)
--25685-- REDIR: 0x3E98A7A050 (memcpy) redirected to 0x4A06FF0 (memcpy)
--25685-- REDIR: 0x3E98A78690 (rindex) redirected to 0x4A06400 (rindex)
--25685-- REDIR: 0x3E98A72A80 (calloc) redirected to 0x4A04AAC (calloc)
--25685-- REDIR: 0x3E98A72E10 (malloc) redirected to 0x4A05787 (malloc)
--25685-- REDIR: 0x3E98A74BD0 (free) redirected to 0x4A05397 (free)
--25685-- REDIR: 0x3E98A77D20 (strcmp) redirected to 0x4A06790 (strcmp)
--25685-- REDIR: 0x3E98A78D90 (memchr) redirected to 0x4A06850 (memchr)
--25685-- REDIR: 0x3E98A7ACB0 (rawmemchr) redirected to 0x4A069E0 (rawmemchr)
--25685-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x380279E1 (???)
--25685-- REDIR: 0x3E98A782A0 (strlen) redirected to 0x4A066C0 (strlen)
--25685-- REDIR: 0x3E98A77B70 (index) redirected to 0x4A064F0 (index)
--25685-- REDIR: 0x3E98A78520 (strncmp) redirected to 0x4A06720 (strncmp)
--25685-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380279D7 (???)
--25685-- REDIR: 0x3E98A77D60 (strcpy) redirected to 0x4A06D90 (strcpy)
--25685-- Reading syms from /lib64/libgcc_s-4.1.2-20080102.so.1 (0x3E9BE00000)
--25685--    object doesn't have a symbol table
--25685-- REDIR: 0x3E98A785E0 (strncpy) redirected to 0x4A07170 (strncpy)
--25685-- REDIR: 0x3E98A779B0 (strcat) redirected to 0x4A06A00 (strcat)
--25685-- REDIR: 0x3E98A74DB0 (realloc) redirected to 0x4A05838 (realloc)
==25685== 
==25685== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 1)
--25685-- 
--25685-- supp:    4 Fedora-Core-6-hack3-ld25
==25685== malloc/free: in use at exit: 17,756 bytes in 108 blocks.
==25685== malloc/free: 6,908 allocs, 6,800 frees, 4,654,122 bytes allocated.
==25685== 
==25685== searching for pointers to 108 not-freed blocks.
==25685== checked 10,716,136 bytes.
==25685== 
==25685== 272 bytes in 1 blocks are possibly lost in loss record 7 of 10
==25685==    at 0x4A04B32: calloc (vg_replace_malloc.c:279)
==25685==    by 0x3E9860FEF2: _dl_allocate_tls (in /lib64/ld-2.5.so)
==25685==    by 0x3E9A206A33: pthread_create@@GLIBC_2.2.5 (in 
/lib64/libpthread-2.5.so)
==25685==    by 0x37A484B0A3: ServerProcess (ow_net_server.c:272)
==25685==    by 0x401BCD: main (owserver.c:153)
==25685== 
==25685== 
==25685== 15,840 bytes in 99 blocks are definitely lost in loss record 10 of 10
==25685==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
==25685==    by 0x37A484F04E: FS_OWQ_from_pn (ow_parseobject.c:87)
==25685==    by 0x37A484F13C: FS_OWQ_create_sibling (ow_parseobject.c:53)
==25685==    by 0x37A4853BFB: FS_r_sibling_F (ow_sibling.c:49)
==25685==    by 0x37A4826BCB: FS_slowtemp (ow_1820.c:282)
==25685==    by 0x37A485003C: FS_read_lump (ow_read.c:472)
==25685==    by 0x37A4850314: FS_r_local (ow_read.c:427)
==25685==    by 0x37A485088C: FS_r_given_bus (ow_read.c:232)
==25685==    by 0x37A48509AE: FS_read_distribute (ow_read.c:193)
==25685==    by 0x37A4850E4E: FS_read_postparse (ow_read.c:109)
==25685==    by 0x40278D: ReadHandler (read.c:86)
==25685==    by 0x403024: DataHandler (data.c:124)
==25685== 
==25685== LEAK SUMMARY:
==25685==    definitely lost: 15,840 bytes in 99 blocks.
==25685==      possibly lost: 272 bytes in 1 blocks.
==25685==    still reachable: 1,644 bytes in 8 blocks.
==25685==         suppressed: 0 bytes in 0 blocks.
==25685== Reachable blocks (those to which a pointer was found) are not shown.
==25685== To see them, rerun with: --show-reachable=yes
--25685--  memcheck: sanity checks: 3 cheap, 1 expensive
--25685--  memcheck: auxmaps: 272 auxmap entries (17408k, 17M) in use
--25685--  memcheck: auxmaps: 8082780 searches, 11084789 comparisons
--25685--  memcheck: SMs: n_issued      = 164 (2624k, 2M)
--25685--  memcheck: SMs: n_deissued    = 41 (656k, 0M)
--25685--  memcheck: SMs: max_noaccess  = 524287 (8388592k, 8191M)
--25685--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--25685--  memcheck: SMs: max_defined   = 3979 (63664k, 62M)
--25685--  memcheck: SMs: max_non_DSM   = 125 (2000k, 1M)
--25685--  memcheck: max sec V bit nodes:    893 (76k, 0M)
--25685--  memcheck: set_sec_vbits8 calls: 4191 (new: 893, updates: 3298)
--25685--  memcheck: max shadow mem size:   6220k, 6M
--25685-- translate:            fast SP updates identified: 4,432 ( 87.3%)
--25685-- translate:   generic_known SP updates identified: 508 ( 10.0%)
--25685-- translate: generic_unknown SP updates identified: 132 (  2.6%)
--25685--     tt/tc: 50,510 tt lookups requiring 54,144 probes
--25685--     tt/tc: 50,510 fast-cache updates, 5 flushes
--25685--  transtab: new        5,355 (123,842 -> 2,281,262; ratio 184:10) [0 
scs]
--25685--  transtab: dumped     0 (0 -> ??)
--25685--  transtab: discarded  13 (276 -> ??)
--25685-- scheduler: 4,253,351 jumps (bb entries).
--25685-- scheduler: 3/129,125 major/minor sched events.
--25685--    sanity: 4 cheap, 1 expensive checks.
--25685--    exectx: 30,011 lists, 1,254 contexts (avg 0 per list)
--25685--    exectx: 13,712 searches, 13,189 full compares (961 per 1000)
--25685--    exectx: 0 cmp2, 6 cmp4, 126 cmpAll
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to