I have worked with the signal handling and made some adjustments... But I recently found out some bad free() calls in owserver/owlib. It only occurs when I start owserver & owhttpd. (owserver & owdir works fine!?!)
owserver --foreground --error_level=9 --fake 10,10 -p 3011 owhttpd --foreground --error_level=9 -s 3011 -p 3012 View a sensor directory and you will get some errors in owserver about: "free(): invalid pointer 0x8b66eb8!" And after that I can't stop the process correctly. I don't have time to search for the problem right now, and I'm not sure if I will have much spare time this weekend either... that's why I send an email about it. /Christian (gdb) run --foreground --error_level=9 --fake 10,10 -p 192.168.3.2:3011 Starting program: /usr/opt/owfs/bin/owserver --foreground --error_level=9 --fake 10,10 -p 192.168.3.2:3011 [Thread debugging using libthread_db enabled] [New Thread -1084926656 (LWP 15449)] CONNECT: Setting up Simulated (Fake) Bus Master (0) [New Thread 24677296 (LWP 15460)] ServerAddr: [192.168.3.2] [3011] DEBUG: OW_Announce: 1 DEBUG: OW_Announce: 2 [New Thread 116980656 (LWP 15461)] DEBUG: OW_Announce: end DEBUG: Announce: 1 DEBUG: Announce: err=0 DEBUG: Announce: 2 [New Thread 75656112 (LWP 15462)] DEBUG: RegisterBack: DETAIL: RegisterBack ref=146173304 flags=0 error=0 name=OWFS (1-wire) Server (3) type=_owserver._tcp. domain=local. DEBUG: RegisterBack: 1 DEBUG: RegisterBack: done DEBUG: Announce: 3 DEBUG: Announce: end [New Thread 57977776 (LWP 15509)] CALL: owserver: parse path=/10.67C6697351FF/temperature CALL: PARSENAME path=[/10.67C6697351FF/temperature] DEBUG: Get from cache sn 10 67 C6 69 73 51 FF 8D in=(nil) index=-1 size=7201904 DEBUG: Not found in cache DETAIL: Checking presence of /10.67C6697351FF/temperature DEBUG: Add to cache sn 10 67 C6 69 73 51 FF 8D in=(nil) index=-1 size=4 CALL: Presence message on /10.67C6697351FF/temperature bus_nr=0 DEBUG: ParsedName_destroy /10.67C6697351FF/temperature DEBUG: RealHandler: FS_ParsedName_destroy done DEBUG: RealHandler: cm.ret=0 DEBUG: RealHandler: done CALL: owserver: parse path=/10.67C6697351FF/temperature CALL: PARSENAME path=[/10.67C6697351FF/temperature] DEBUG: Get from cache sn 10 67 C6 69 73 51 FF 8D in=(nil) index=-1 size=0 DEBUG: Found in cache CALL: Read message DEBUG: ReadHandler: cm->payload=0 cm->size=0 cm->offset=0 DEBUG: ReadHandler: sm->payload=29 sm->size=12 sm->offset=0 DEBUG: READ_POSTPARSE /10.67C6697351FF/temperature DEBUG: READ_POSTPOSTPARSE /10.67C6697351FF/temperature DEBUG: READSEEK DEBUG: Get from cache sn 10 67 C6 69 73 51 FF 8D in=0x48734c index=0 size=4808336 DEBUG: Not found in cache DEBUG: READSEEK2 pid=15449 not found in cache DEBUG: FS_parse_readfake: (temperature) 36.4784 free(): invalid pointer 0x8b66eb8! DEBUG: Add to cache sn 10 67 C6 69 73 51 FF 8D in=0x48734c index=0 size=12 DEBUG: READ_POSTPOSTPARSE: /10.67C6697351FF/temperature return 12 DEBUG: READ_POSTPARSE /10.67C6697351FF/temperature return 12 DEBUG: Read message done retbuffer=0x8b66ea8 DEBUG: ParsedName_destroy /10.67C6697351FF/temperature DEBUG: RealHandler: FS_ParsedName_destroy done DEBUG: RealHandler: cm.ret=12 DEBUG: RealHandler: done [New Thread 45513648 (LWP 15511)] CALL: owserver: parse path=/uncached/10.67C6697351FF/temperature CALL: PARSENAME path=[/uncached/10.67C6697351FF/temperature] DEBUG: Get from cache sn 10 67 C6 69 73 51 FF 8D in=(nil) index=-1 size=8522656 DEBUG: Found in cache CALL: Read message DEBUG: ReadHandler: cm->payload=0 cm->size=0 cm->offset=0 DEBUG: ReadHandler: sm->payload=38 sm->size=12 sm->offset=0 DEBUG: READ_POSTPARSE /uncached/10.67C6697351FF/temperature DEBUG: READ_POSTPOSTPARSE /uncached/10.67C6697351FF/temperature DEBUG: READSEEK DEBUG: READSEEK2 pid=15449 not found in cache DEBUG: FS_parse_readfake: (temperature) 51.3401 DEBUG: Add to cache sn 10 67 C6 69 73 51 FF 8D in=0x48734c index=0 size=12 DEBUG: READ_POSTPOSTPARSE: /uncached/10.67C6697351FF/temperature return 12 DEBUG: READ_POSTPARSE /uncached/10.67C6697351FF/temperature return 12 DEBUG: Read message done retbuffer=0x8b66e98 DEBUG: ParsedName_destroy /uncached/10.67C6697351FF/temperature free(): invalid pointer 0x8b66ea8! DEBUG: RealHandler: FS_ParsedName_destroy done DEBUG: RealHandler: cm.ret=12 DEBUG: RealHandler: done Cannot get thread event message: generic error ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
