PATCH: Re: Is something wrong with glibc and kernel 2.4.5? (also a patch)
H . J . Lu
hjl@lucon.org
Fri Jun 15 13:25:00 GMT 2001
On Fri, Jun 15, 2001 at 11:21:04AM -0700, H . J . Lu wrote:
> I have serious problems with glibc on i686 running 2.4.5. When I do
>
> # make subdirs=rt check
>
> I get
>
> Didn't expect signal from child: got `File size limit exceeded'
>
> on tst-aio3 and tst-aio4. If I remove RLIMIT_CORE in test-skeleton.c,
> they are ok. Has anyone seen it?
>
I have no ideas how those tests worked before. Could someone pelease
tell me why cb.aio_offset is not initialized?
H.J.
---
2001-06-15 H.J. Lu <hjl@gnu.org>
* rt/tst-aio2.c (do_test): Initialize cb.aio_offset to 0.
* rt/tst-aio3.c (do_test): Likewise.
* rt/tst-aio4.c (do_test): Likewise.
* rt/tst-aio5.c (do_test): Likewise.
* rt/tst-aio6.c (do_test): Likewise.
Index: rt/tst-aio2.c
===================================================================
RCS file: /cvs/glibc/libc/rt/tst-aio2.c,v
retrieving revision 1.2
diff -u -p -r1.2 tst-aio2.c
--- rt/tst-aio2.c 2000/12/27 20:00:06 1.2
+++ rt/tst-aio2.c 2001/06/15 20:19:37
@@ -59,6 +59,7 @@ do_test (int argc, char *argv[])
cb.aio_reqprio = 0;
cb.aio_buf = (void *) buf;
cb.aio_nbytes = sizeof (buf) - 1;
+ cb.aio_offset = 0;
cb.aio_sigevent.sigev_notify = SIGEV_THREAD;
cb.aio_sigevent.sigev_notify_function = thrfct;
cb.aio_sigevent.sigev_notify_attributes = NULL;
Index: rt/tst-aio3.c
===================================================================
RCS file: /cvs/glibc/libc/rt/tst-aio3.c,v
retrieving revision 1.2
diff -u -p -r1.2 tst-aio3.c
--- rt/tst-aio3.c 2000/12/27 20:00:06 1.2
+++ rt/tst-aio3.c 2001/06/15 20:19:37
@@ -58,6 +58,7 @@ do_test (int argc, char *argv[])
cb.aio_reqprio = 0;
cb.aio_buf = (void *) buf;
cb.aio_nbytes = sizeof (buf) - 1;
+ cb.aio_offset = 0;
cb.aio_sigevent.sigev_notify = SIGEV_THREAD;
cb.aio_sigevent.sigev_notify_function = thrfct;
cb.aio_sigevent.sigev_notify_attributes = NULL;
Index: rt/tst-aio4.c
===================================================================
RCS file: /cvs/glibc/libc/rt/tst-aio4.c,v
retrieving revision 1.4
diff -u -p -r1.4 tst-aio4.c
--- rt/tst-aio4.c 2001/06/11 08:14:20 1.4
+++ rt/tst-aio4.c 2001/06/15 20:19:38
@@ -96,6 +96,7 @@ do_test (int argc, char *argv[])
cb.aio_reqprio = 0;
cb.aio_buf = (void *) buf;
cb.aio_nbytes = sizeof (buf) - 1;
+ cb.aio_offset = 0;
cb.aio_sigevent.sigev_notify = SIGEV_SIGNAL;
cb.aio_sigevent.sigev_notify_function = NULL;
cb.aio_sigevent.sigev_notify_attributes = NULL;
Index: rt/tst-aio5.c
===================================================================
RCS file: /cvs/glibc/libc/rt/tst-aio5.c,v
retrieving revision 1.2
diff -u -p -r1.2 tst-aio5.c
--- rt/tst-aio5.c 2000/12/27 20:00:06 1.2
+++ rt/tst-aio5.c 2001/06/15 20:19:38
@@ -82,6 +82,7 @@ do_test (int argc, char *argv[])
cb.aio_reqprio = 0;
cb.aio_buf = (void *) buf;
cb.aio_nbytes = sizeof (buf) - 1;
+ cb.aio_offset = 0;
cb.aio_sigevent.sigev_notify = SIGEV_THREAD;
cb.aio_sigevent.sigev_notify_function = callback;
cb.aio_sigevent.sigev_notify_attributes = NULL;
Index: rt/tst-aio6.c
===================================================================
RCS file: /cvs/glibc/libc/rt/tst-aio6.c,v
retrieving revision 1.2
diff -u -p -r1.2 tst-aio6.c
--- rt/tst-aio6.c 2000/11/24 23:38:52 1.2
+++ rt/tst-aio6.c 2001/06/15 20:19:38
@@ -54,6 +54,7 @@ do_test (void)
cb.aio_reqprio = 0;
cb.aio_buf = (void *) buf;
cb.aio_nbytes = sizeof (buf) - 1;
+ cb.aio_offset = 0;
cb.aio_sigevent.sigev_notify = SIGEV_NONE;
/* Try to read from stdin where nothing will be available. */
More information about the Libc-alpha
mailing list