[Mono-dev] Random deadlocks when spawning via new Process
Jonathan Lima
greenboxal at gmail.com
Sat Aug 10 05:11:27 UTC 2013
Hi,
That isn't the Process class code, on the frame #3 you can see that the
thread received a signal, that is SGen trying to stop the world to perform
collection.
Maybe the deadlock is related to the GC itself as you can be putting it at
pressure by spawning many process.
On Sat, Aug 10, 2013 at 12:50 AM, gerber.matthew
<gerber.matthew at gmail.com>wrote:
> Hello,
>
> I'm getting random (as far as I can tell) deadlocks when spawning new
> Processes. My application spawns tons of new Process objects (always within
> a using block though). Sometimes it runs for a few minutes, and sometimes
> it
> runs for an hour. But it always seems to hang at Process.Start. I found the
> following in the gdp thread dump. It looks like it's forking the new
> process
> and then immediately suspending. Any ideas on what might be causing this?
>
> ===========================
>
> Thread 6 (Thread 0x7fb020e77700 (LWP 19763)):
> #0 0x00007fb02af877a4 in sigsuspend () from
> /lib/x86_64-linux-gnu/libc.so.6
> #1 0x00000000005c40fc in suspend_thread (info=0x7faffc003ca0,
> context=0x7fb020e75b80) at sgen-os-posix.c:113
> #2 0x00000000005c4265 in suspend_handler (sig=<optimized out>,
> siginfo=<optimized out>, context=0x7fb020e75b80) at sgen-os-posix.c:134
> #3 <signal handler called>
> #4 0x00007fb02b010936 in fork () from /lib/x86_64-linux-gnu/libc.so.6
> #5 0x0000000000608856 in CreateProcess (appname=<optimized out>,
> cmdline=<optimized out>, process_attrs=0x17, thread_attrs=0x7faffc01e850,
> inherit_handles=
> 1, create_flags=134218752, new_environ=0x0, cwd=0x0,
> startup=0x7fb020e76320, process_info=0x7fb020e76390) at processes.c:966
> #6 0x00000000005760d8 in
> ves_icall_System_Diagnostics_Process_CreateProcess_internal
> (proc_start_info=0x7fb029dfdd98, stdin_handle=<optimized out>,
> stdout_handle=<optimized out>, stderr_handle=<optimized out>,
> process_info=0x7fb020e76638) at process.c:760
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Random-deadlocks-when-spawning-via-new-Process-tp4660495.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
Thanks,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130810/58b86971/attachment.html>
More information about the Mono-devel-list
mailing list