bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assertion fault. on loggin


From: Paul Edwards
Subject: Re: assertion fault. on loggin
Date: Tue, 16 Sep 2003 13:32:20 GMT

"Pierre" <address@hidden> wrote in message news:address@hidden
> >
> > If it lasts 1000 times, ie maybe 4 hours, without getting an
> > assertion error, let me know that too.
>
> 1000 times :
>
> early fstat of 4
> survived early fstat
> Le sous-programme assert a ÚchouÚ : fstat ( fileno (bc->fp), &s ) != -1, 
> fichier
>  buffer.c, ligne 1386
> cvs [login aborted]: received abort signal

Ok, so it takes more than 1, but less than 1000 goes, to get this
error, correct?  Please confirm, then apply the next patch, and
repeat 1000 goes, once again, you can stop on the first
assertion failure.

> I haved relaunch the test script with an infinite loop, perhaps tomorrow 
> morning...

Don't bother doing this, I just want to know approximately when the
assertion error happens, ie either:

1. after first go.
2. sometime in the first 1000 goes.
3. infinity, no sign of any bug.

BFN.  Paul.


Index: buffer.c
===================================================================
RCS file: /cvs/ccvs/src/buffer.c,v
retrieving revision 1.21.4.1
diff -c -r1.21.4.1 buffer.c
*** buffer.c 17 Feb 2003 21:19:12 -0000 1.21.4.1
--- buffer.c 16 Sep 2003 13:29:01 -0000
***************
*** 1371,1376 ****
--- 1371,1377 ----
  }


+ extern struct stdio_buffer_closure *ugly_hack;

  static int
  stdio_buffer_shutdown (buf)
***************
*** 1380,1385 ****
--- 1381,1387 ----
      struct stat s;
      int closefp = 1;

+     sleep(5);
      /* Must be a pipe or a socket.  What could go wrong? */
      assert (fstat ( fileno (bc->fp), &s ) != -1);

***************
*** 1390,1395 ****
--- 1392,1398 ----
   buf->flush = NULL;
      }

+     /* no probs here */
      if (buf->input)
      {
   if ( !buf_empty_p (buf) )
***************
*** 1462,1467 ****
--- 1465,1478 ----
  # endif /* NO_SOCKET_TO_FD */

   buf->output = NULL;
+     }
+
+     if (ugly_hack != NULL)
+     {
+         printf("early fstat of %d\n", fileno(ugly_hack->fp));
+         sleep(5);
+         assert (fstat ( fileno (ugly_hack->fp), &s ) != -1);
+         printf("survived early fstat\n");
      }

      if (closefp && fclose (bc->fp) == EOF)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]