[Issue 11981] unittest 'host' deadlock
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 8 18:15:48 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11981
--- Comment #6 from Stanislav Blinov <stanislav.blinov at gmail.com> 2014-02-08 18:15:46 PST ---
Another run, this time replaced GC.collect() with
thread_suspendAll()/thread_resumeAll() in plugin.d:
--- plugin.d 2014-02-09 01:52:48.944214965 +0400
+++ plugin_.d 2014-02-09 06:11:44.677437500 +0400
@@ -21,7 +21,9 @@
assert(tdtor >= 0);
// test some runtime functionality
launchThread();
- GC.collect();
+ //GC.collect();
+ thread_suspendAll();
+ thread_resumeAll();
joinThread();
}
catch (Throwable)
stack trace:
Thread 19 (Thread 0x7ffff6a05700 (LWP 16354)):
#0 __lll_lock_wait_private () at
../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95
#1 0x00007ffff7675c3c in _L_lock_152 () at malloc.c:5151
#2 0x00007ffff766e81b in get_free_list () at arena.c:774
#3 0x00007ffff76735e5 in arena_get2 (avoid_arena=<optimized out>,
size=<optimized out>, a_tsd=<optimized out>) at arena.c:838
#4 __GI___libc_malloc (bytes=88) at malloc.c:2856
#5 0x00007ffff7ddb2cd in allocate_and_init (map=0x603080) at dl-tls.c:529
#6 tls_get_addr_tail (ti=0x7ffff73dcb28, dtv=0x611d00, the_map=0x603080) at
dl-tls.c:742
#7 0x00007ffff71816e4 in core.thread.thread_suspendHandler() (this=0x0,
sp=0x7ffff6a04640) at src/core/thread.d:1069
#8 0x00007ffff718387f in core.thread.callWithStackShell() (fn=...) at
src/core/thread.d:2085
#9 0x00007ffff71816bd in thread_suspendHandler (sig=10) at
src/core/thread.d:411
#10 <signal handler called>
#11 get_free_list () at arena.c:776
#12 0x00007ffff76735e5 in arena_get2 (avoid_arena=<optimized out>,
size=<optimized out>, a_tsd=<optimized out>) at arena.c:838
#13 __GI___libc_malloc (bytes=32) at malloc.c:2856
#14 0x00007ffff79c2bbf in pthread_getattr_np (thread_id=140737331091200,
attr=0x7ffff6a04d88) at pthread_getattr_np.c:167
#15 0x00007ffff718116a in thread_entryPoint (arg=0x0) at src/core/thread.d:2715
#16 0x00007ffff79c0f8e in start_thread (arg=0x7ffff6a05700) at
pthread_create.c:311
#17 0x00007ffff76eaa0d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Thread 1 (Thread 0x7ffff7fc8740 (LWP 16333)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1 0x00007ffff7183940 in core.thread.suspend() (t=0x7ffff7ec8900) at
src/core/thread.d:2244
#2 0x00007ffff7183bcd in thread_suspendAll () at src/core/thread.d:2322
#3 0x00007ffff73ee489 in runTests () at plugin.d:25
#4 0x0000000000400bc2 in main (argc=1, argv=0x7fffffffdcc8) at host.c:44
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list