LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "FUTEX WAIT EAGAIN (Resource temporarily unavailable )" (http://www.linuxquestions.org/questions/linux-newbie-8/futex-wait-eagain-resource-temporarily-unavailable-777373/)

jungbg 12-22-2009 12:15 AM

"FUTEX WAIT EAGAIN (Resource temporarily unavailable )"
 
Hi, All.

I'd met problem using Windriver Linux 2.6.21.7
When I using pthread_cond_timewait(), There were no returns. so I've tried strace -p [pid].

The result is endless loop in pthread_cond_timewait() itself with 'FUTEX WATI'.

please guide me to solve this issue or what could be reason for above
things.
Is it kernel bug or Application bug ? (example: memory crash ?)

------ result of strace -------
lock_gettime(CLOCK_REALTIME, {1261375176, 407341206}) = 0
futex(0x124696fb0, FUTEX_WAKE, 1) = 1
futex(0x124696fb4, FUTEX_WAIT, 2301283074, {0, 871980794}) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_REALTIME, {1261375176, 414540524}) = 0
futex(0x124696fb0, FUTEX_WAKE, 1) = 1
futex(0x124696fb4, FUTEX_WAIT, 2301283074, {0, 864781476}) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_REALTIME, {1261375176, 415002233}) = 0
futex(0x124696fb0, FUTEX_WAKE, 1) = 1
futex(0x124696fb4, FUTEX_WAIT, 2301283074, {0, 864319767}) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x124696fb0, FUTEX_WAIT, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_REALTIME, {1261375176, 415685235}) = 0
futex(0x124696fb0, FUTEX_WAKE, 1) = 1
futex(0x124696fb4, FUTEX_WAIT, 2301283074, {0, 863636765}) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_REALTIME, {1261375176, 416180778}) = 0
futex(0x124696fb0, FUTEX_WAKE, 1) = 1
futex(0x124696fb4, FUTEX_WAIT, 2301283074, {0, 863141222}) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_REALTIME, {1261375176, 420972302}) = 0
futex(0x124696fb0, FUTEX_WAKE, 1) = 1
futex(0x124696fb4, FUTEX_WAIT, 2301283077, {0, 858349698}) = -1 EAGAIN (Resource temporarily unavailable)

TB0ne 12-22-2009 05:07 PM

Quote:

Originally Posted by jungbg (Post 3800826)
Hi, All.

I'd met problem using Windriver Linux 2.6.21.7
When I using pthread_cond_timewait(), There were no returns. so I've tried strace -p [pid].

The result is endless loop in pthread_cond_timewait() itself with 'FUTEX WATI'.

please guide me to solve this issue or what could be reason for above
things.
Is it kernel bug or Application bug ? (example: memory crash ?)

Since you don't post any of your code, or say what you're doing when this error occurs, how can we tell??

I'll "guide you", to look at your code again, and perhaps contact Wind River for help.


All times are GMT -5. The time now is 06:42 AM.