[Mono-bugs] [Bug 654883] mono loops in sem_wait() unless a signal is sent
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Dec 2 17:19:21 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=654883
https://bugzilla.novell.com/show_bug.cgi?id=654883#c10
--- Comment #10 from Robert Nagy <robert at humppa.hu> 2010-12-02 22:19:20 UTC ---
Hi
Gonzalo, I've implemented what you suggested but the same issue happens.
The diff I used is attached.
mono-semaphore.c:133: while ((res = read(sem[0], &one, 1 > 0) && errno ==
EINTR))
(gdb) run /home/robert/nant-0.90/bootstrap/NAnt.exe -h
Starting program: /home/robert/mono/mono/mini/mono
/home/robert/nant-0.90/bootstrap/NAnt.exe -h
MONO_SEM_INIT: 0xacc2a0
MONO_SEM_INIT: 0xacc2c8
MONO_SEM_INIT: 0xacc340
MONO_SEM_INIT: 0xacc368
MONO_SEM_INIT: 0x20dd32188
MONO_SEM_INIT: 0xacbba0
MONO_SEM_INIT: 0x20dd32328
MONO_SEM_INIT: 0x20dd323f8
[New process 16687, thread 0x210171000]
MONO_SEM_INIT: 0x20dd32668
^C
Program received signal SIGINT, Interrupt.
[Switching to process 16687, thread 0x210171000]
0x00000002041a575a in kevent () from /usr/lib/libc.so.58.0
(gdb) thread apply all bt
Thread 5 (process 16687, thread 0x207b9b000):
#0 _thread_kern_sched (scp=0x0) at
/usr/src/lib/libpthread/uthread/uthread_kern.c:482
#1 0x00000002016340db in read (fd=18, buf=0x20f84eebf, nbytes=1) at
/usr/src/lib/libpthread/uthread/uthread_read.c:83
#2 0x00000000005c4dd0 in mono_sem_wait (sem=0xacbba0, alertable=0) at
mono-semaphore.c:133
#3 0x0000000000512158 in finalizer_thread (unused=Variable "unused" is not
available.
) at gc.c:1050
#4 0x000000000058a9db in start_wrapper (data=Variable "data" is not available.
) at threads.c:770
#5 0x00000000005ba383 in thread_start_routine (args=0x20dd322f8) at
wthreads.c:285
#6 0x0000000201a697a8 in GC_inner_start_routine () from
/usr/local/lib/libgc.so.3.0
#7 0x0000000201a69824 in GC_start_routine () from /usr/local/lib/libgc.so.3.0
#8 0x0000000201637cfd in _thread_start () at
/usr/src/lib/libpthread/uthread/uthread_create.c:242
#9 0x000000000000002b in ?? ()
#10 0x0000000000000000 in ?? ()
Thread 4 (process 16687, thread 0x20e563800):
#0 _thread_kern_sched (scp=0x0) at
/usr/src/lib/libpthread/uthread/uthread_kern.c:482
#1 0x000000020163cba6 in pthread_cond_timedwait (cond=0x2018461d8,
mutex=0x2018461d0, abstime=0x20cfb3f90) at
/usr/src/lib/libpthread/uthread/uthread_cond.c:431
#2 0x00000002016382eb in _thread_gc (arg=Variable "arg" is not available.
) at /usr/src/lib/libpthread/uthread/uthread_gc.c:181
#3 0x0000000201637cfd in _thread_start () at
/usr/src/lib/libpthread/uthread/uthread_create.c:242
#4 0x000000000000002b in ?? ()
#5 0x0000000000000000 in ?? ()
Thread 3 (process 16687, thread 0x209e6d800):
#0 _thread_start () at /usr/src/lib/libpthread/uthread/uthread_create.c:235
#1 0x000000000000002b in ?? ()
Cannot access memory at address 0x20d784000
#0 0x00000002041a575a in kevent () from /usr/lib/libc.so.58.0
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list