Hi all,

trying to read registers on the BAE 910 chip I get a segmentation fault in
owhttpd (see below) and owfs. I have no problem reading other devices on the
bus.

When I try to read the BAE chip using owfs:

ls /mnt/1wire/FC.000000000022/910

it's the same, owfs is crashing with the same debug information.

owhttpd and owfs are connected to the 1wire bus via owserver, which is running
as:

owserver -p 2125 -d /dev/ttyS0

owserver is not affected of the crash.

My setup is:
System: Ubuntu 8.04.4 LTS Hardy
OWFS: compiled from owfs-2.8p2.tar.gz
Bus master: LinkOEM (same as Link45) at /dev/ttyS0


Any hints are welcome as I'm not used to debug c programs.

Best regards

Jan

================================================

$ gdb owhttpd
run -s 2125 -p 2121 --debug
<..cut..>
  DEBUG: owhttpd_handler.c:handle_GET(151) Simple GET request -- read a value
or directory
  DEBUG: ow_dir.c:FS_dir(63) path=/FC.000000000022/910
   CALL: ow_dir.c:FS_dir_both(98) path=/FC.000000000022/910
  DEBUG: ow_cache.c:Cache_Get_Internal(884) FC 00 00 00 00 00 22 DE size=4
  DEBUG: ow_parseobject.c:OWQ_create_from_path(29) /FC.000000000022/910
   CALL: ow_parsename.c:FS_ParsedName_anywhere(90) path=[/FC.000000000022/910]
  DEBUG: ow_cache.c:Cache_Get_Device(855) FC 00 00 00 00 00 22 DE
  DEBUG: ow_cache.c:Cache_Get_Common(1067) Get from cache sn FC 00 00 00 00 00
22 DE pointer=0xb7efc920 index=0 size=4
  DEBUG: ow_cache.c:Cache_Get_Common(1076) value found in cache. Remaining
life: 117 seconds.
  DEBUG: ow_presence.c:CheckPresence(75) Found device on bus 0
  DEBUG: ow_parseobject.c:OWQ_create_sibling(62) Create sibling device_type
from /FC.000000000022/910 as /FC.000000000022/device_type
  DEBUG: ow_parseobject.c:OWQ_create_from_path(29) /FC.000000000022/device_type
   CALL: ow_parsename.c:FS_ParsedName_anywhere(90)
path=[/FC.000000000022/device_type]
  DEBUG: ow_cache.c:Cache_Get_Device(855) FC 00 00 00 00 00 22 DE
  DEBUG: ow_cache.c:Cache_Get_Common(1067) Get from cache sn FC 00 00 00 00 00
22 DE pointer=0xb7efc920 index=0 size=4
  DEBUG: ow_cache.c:Cache_Get_Common(1076) value found in cache. Remaining
life: 117 seconds.
  DEBUG: ow_presence.c:CheckPresence(75) Found device on bus 0
  DEBUG: ow_read.c:adjust_file_size(333) file_length=12 offset=0 size=1
  DEBUG: ow_parseobject.c:OWQ_create_sibling(62) Create sibling typestate from
/FC.000000000022/device_type as /FC.000000000022/typestate
  DEBUG: ow_parseobject.c:OWQ_create_from_path(29) /FC.000000000022/typestate
   CALL: ow_parsename.c:FS_ParsedName_anywhere(90)
path=[/FC.000000000022/typestate]
  DEBUG: ow_cache.c:Cache_Get_Device(855) FC 00 00 00 00 00 22 DE
  DEBUG: ow_cache.c:Cache_Get_Common(1067) Get from cache sn FC 00 00 00 00 00
22 DE pointer=0xb7efc920 index=0 size=4
  DEBUG: ow_cache.c:Cache_Get_Common(1076) value found in cache. Remaining
life: 117 seconds.
  DEBUG: ow_presence.c:CheckPresence(75) Found device on bus 0
  DEBUG: ow_read.c:adjust_file_size(333) file_length=12 offset=0 size=1
  DEBUG: ow_cache.c:Cache_Get(783) FC 00 00 00 00 00 22 DE size=8 
IsUncachedDir=0
  DEBUG: ow_cache.c:Cache_Get_Common(1067) Get from cache sn FC 00 00 00 00 00
22 DE pointer=0xb7ef8a58 index=0 size=8
  DEBUG: ow_cache.c:Cache_Get_Common(1095) value not found in cache
  DEBUG: ow_select.c:BUS_select(72) Selecting a path (and device)
path=/FC.000000000022/typestate SN=FC 00 00 00 00 00 22 DE last path=FF 00
00 00 00 00 00 00
  DEBUG: ow_select.c:BUS_select(77) Clearing root branch

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7cbfb90 (LWP 19258)]
0x00000000 in ?? ()
(gdb)



------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to