I haven't follows all latest updates, but I found one pointer bug in 
ow_presence.c:ReCheckPresence()
CheckThisConnection() should not have an integer as in input-argument, it 
should be a connection_in pointer.
I haven't checked in the fix, but this might fix the problem. Perhaps Paul can 
verify if this is how it was supposed to work.

/Christian


RCS file: /cvsroot/owfs/owfs/module/owlib/src/c/ow_presence.c,v
retrieving revision 1.29
diff -u -r1.29 ow_presence.c
--- ow_presence.c       23 May 2009 19:25:54 -0000      1.29
+++ ow_presence.c       24 May 2009 12:33:52 -0000
@@ -95,7 +95,8 @@
 int ReCheckPresence(struct parsedname *pn)
 {
        int bus_nr;
-
+       struct connection_in *in;
+
        if (NotRealDir(pn)) {
                return 0;
        }
@@ -106,14 +107,16 @@
        }

        if (KnownBus(pn)) {
-               if ( CheckThisConnection(pn->known_bus->index,pn) >= 0 ) {
+               in = find_connection_in(pn->known_bus->index);
+               if ( CheckThisConnection(in,pn) >= 0 ) {
                        return pn->known_bus->index ;
                }
        }

        if (Cache_Get_Device(&bus_nr, pn) == 0) {
+               in = find_connection_in(bus_nr);
                LEVEL_DEBUG("Found device on bus %d\n",bus_nr);
-               if ( CheckThisConnection(bus_nr,pn) >= 0 ) {
+               if ( CheckThisConnection(in, pn) >= 0 ) {
                        SetKnownBus(bus_nr, pn);
                        return bus_nr ;
                }


-----Original Message-----
From: Jan Kandziora [mailto:j...@gmx.de] 
Sent: den 24 maj 2009 12:47
To: owfs-developers@lists.sourceforge.net
Subject: Re: [Owfs-developers] /simultaneous bug was: Revisited: OWFS "forgets" 
chips after a while.

Am Samstag, 23. Mai 2009 schrieb Paul Alfille:
> Jan, can you try again? I've cleaned up the handling of device 
> presence, I think any read/write error was causing problems. Still, I 
> don't have your setup to test.
>
Now I get a segmentation fault in the client application after 10 minutes. 
Please see the new owserver log (10 times ok, one time fail).

Kind regards

        Jan
--
Linux, Playboy Edition: nichts als die nackte Kommandozeile...

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to