I'm having trouble replicating your error after a number of attempts.

Can you try
./configure --enable-owtraffic
to better see where in the communication the segfault occurs?

Paul

On Tue, Jun 21, 2011 at 4:51 PM, Roberto Spadim <[email protected]> wrote:
> more information from gdb...
>
>
> [root@spadim1 bin]# gdb ./owserver
> GNU gdb (GDB) 7.2
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-unknown-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /opt/owfs/bin/owserver...done.
> (gdb) run  -d /dev/ttyUSB0 --debug
> Starting program: /opt/owfs/bin/owserver -d /dev/ttyUSB0 --debug
> [Thread debugging using libthread_db enabled]
>   DEBUG: ow_daemon.c:EnterBackground(166) main thread id = 140737354012416
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(75) Avahi support:
> libavahi-client loaded successfully
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(77) Avahi library function
> found: avahi_client_errno
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(78) Avahi library function
> found: avahi_client_free
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(79) Avahi library function
> found: avahi_client_new
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(80) Avahi library function
> found: avahi_client_get_domain_name
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(81) Avahi library function
> found: avahi_entry_group_add_service
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(82) Avahi library function
> found: avahi_entry_group_commit
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(83) Avahi library function
> found: avahi_entry_group_is_empty
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(84) Avahi library function
> found: avahi_entry_group_new
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(85) Avahi library function
> found: avahi_entry_group_reset
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(87) Avahi library function
> found: avahi_service_resolver_free
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(88) Avahi library function
> found: avahi_service_resolver_new
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(89) Avahi library function
> found: avahi_service_browser_free
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(90) Avahi library function
> found: avahi_service_browser_new
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(102) Avahi support:
> libavahi-common loaded successfully.
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(104) Avahi library function
> found: avahi_simple_poll_free
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(105) Avahi library function
> found: avahi_simple_poll_get
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(106) Avahi library function
> found: avahi_simple_poll_loop
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(107) Avahi library function
> found: avahi_simple_poll_new
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(108) Avahi library function
> found: avahi_simple_poll_quit
>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(109) Avahi library function
> found: avahi_strerror
>    CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[]
>   DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C 100C (for
> simulated adapters)
>   DEBUG: ow_ds9097U.c:DS2480_initialize_repeatedly(276) Attempt #0 to
> initialize the DS9097U
>   DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(365) Send the initial reset to
> the bus master.
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
> [New Thread 0x7ffff6072700 (LWP 18304)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7ffff6072700 (LWP 18304)]
> 0x0000000000607a60 in avahi_client_free ()
> (gdb) where
> #0  0x0000000000607a60 in avahi_client_free ()
> #1  0x00007ffff66ca445 in avahi_client_new () from
> /usr/lib/libavahi-client.so
> #2  0x00007ffff7b60247 in OW_Avahi_Announce (v=<value optimized out>) at
> ow_avahi_announce.c:249
> #3  0x00007ffff7268cb0 in start_thread () from /lib/libpthread.so.0
> #4  0x00007ffff6fd495d in clone () from /lib/libc.so.6
> #5  0x0000000000000000 in ?? ()
> (gdb) list
> 35                       e.g. 3001 or 10.183.180.101:3001 or /tmp/1wire
> 36      */
> 37
> 38      #include "owserver.h"
> 39
> 40      /* --- Prototypes ------------ */
> 41      static void SetupAntiloop(void);
> 42
> 43      int main(int argc, char **argv)
> 44      {
>
>
>
>
>
>
>
> 2011/6/21 Roberto Spadim <[email protected]>
>>
>> [root@spadim1 bin]# owserver -d /dev/ttyUSB0 --debug
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(75) Avahi support:
>> libavahi-client loaded successfully
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(77) Avahi library function
>> found: avahi_client_errno
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(78) Avahi library function
>> found: avahi_client_free
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(79) Avahi library function
>> found: avahi_client_new
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(80) Avahi library function
>> found: avahi_client_get_domain_name
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(81) Avahi library function
>> found: avahi_entry_group_add_service
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(82) Avahi library function
>> found: avahi_entry_group_commit
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(83) Avahi library function
>> found: avahi_entry_group_is_empty
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(84) Avahi library function
>> found: avahi_entry_group_new
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(85) Avahi library function
>> found: avahi_entry_group_reset
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(87) Avahi library function
>> found: avahi_service_resolver_free
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(88) Avahi library function
>> found: avahi_service_resolver_new
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(89) Avahi library function
>> found: avahi_service_browser_free
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(90) Avahi library function
>> found: avahi_service_browser_new
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(102) Avahi support:
>> libavahi-common loaded successfully.
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(104) Avahi library function
>> found: avahi_simple_poll_free
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(105) Avahi library function
>> found: avahi_simple_poll_get
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(106) Avahi library function
>> found: avahi_simple_poll_loop
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(107) Avahi library function
>> found: avahi_simple_poll_new
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(108) Avahi library function
>> found: avahi_simple_poll_quit
>>   DEBUG: ow_avahi_link.c:OW_Load_avahi_library(109) Avahi library function
>> found: avahi_strerror
>>    CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[]
>>   DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C 100C
>> (for simulated adapters)
>>   DEBUG: ow_ds9097U.c:DS2480_initialize_repeatedly(265) Attempt #0 to
>> initialize the DS9097U
>>   DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(354) Send the initial reset
>> to the bus master.
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
>>   DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
>>   DEBUG: owserver.c:main(152) main_threadid = 139878542669568
>> Falha de segmentação
>>
>> owserver[17637]: segfault at 607d20 ip 0000000000607d20 sp
>> 00007f3800e22e28 error 15
>>
>> [root@spadim1 bin]# ./owfs --version
>> ./owfs version:
>>         2.8p10
>> libow version:
>>         2.8p10
>>
>> Linux version 2.6.38-ARCH (tobias@T-POWA-LX) (gcc version 4.6.0 (GCC) ) #1
>> SMP PREEMPT Wed Mar 30 08:47:36 CEST 2011
>> Model name      : Intel(R) Core(TM)2 Duo CPU     E4600  @ 2.40GHz
>>
>> [root@spadim1 bin]# gcc --version
>> gcc (GCC) 4.5.2 20110127 (prerelease)
>> Copyright (C) 2010 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> PURPOSE.
>>
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to