This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/14484] sem_timedwait always return -1 with errno 110 (ETIMEDOUT).
- From: "tingw.liu at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 17 Aug 2012 06:21:19 +0000
- Subject: [Bug nptl/14484] sem_timedwait always return -1 with errno 110 (ETIMEDOUT).
- Auto-submitted: auto-generated
- References: <bug-14484-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14484
--- Comment #2 from tingweiliu <tingw.liu at gmail dot com> 2012-08-17 06:21:19 UTC ---
(In reply to comment #1)
> What output do you expect? Your test program is never posting the semaphore, so
> of course it's going to timeout. Actually when running it I get EINTR rather
> than ETIMEDOUT; I'm using a fairly old kernel so perhaps they fixed the kernel
> bug where timed semaphores error out with EINTR when receiving a signal instead
> of properly restarting the syscall.
Function return with errno 4 not 110. The expected output should like:
sem_timedwait ret=-1 failed.errno=4 Real timeout=3948us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3929us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3958us
sem_timedwait ret=-1 failed.errno=4 Real timeout=4149us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3967us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3818us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3978us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3965us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3994us
sem_timedwait ret=-1 failed.errno=4 Real timeout=4035us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3910us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3982us
sem_timedwait ret=-1 failed.errno=4 Real timeout=4045us
sem_timedwait ret=-1 failed.errno=4 Real timeout=3892us
Thanks!
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.