Hi,

I run into an issue: it's SIGUSR1 in clock_nanosleep()

---------------------------
...
[New Thread 0x7ffff0ae0700 (LWP 36860)]
[New Thread 0x7fffcbfff700 (LWP 36861)]
[Detaching after fork from child process 36862]
[New Thread 0x7fffd2eff700 (LWP 36863)]
[New Thread 0x7fffd26fe700 (LWP 36864)]
[New Thread 0x7fffd1efd700 (LWP 36865)]
[New Thread 0x7fffd16fc700 (LWP 36866)]

Thread 10 "lt" received signal SIGUSR1, User defined signal 1.
[Switching to Thread 0x7ffff0ae0700 (LWP 36860)]
0x00007ffff5d99361 in clock_nanosleep () from /usr/lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00007ffff5d99361 in clock_nanosleep () from /usr/lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff5d9eeb7 in nanosleep () from /usr/lib/x86_64-linux-gnu/libc.so.6 #2 0x000055555585cb89 in _D4core6thread8osthread6Thread5sleepFNbNiSQBo4time8DurationZv () #3 0x00005555555d42b2 in ....checktatus() (this=0x7ffff1262170) at ttt.d:1368
#4  0x0000555555612ee5 in ....xxxThread() () at aaa.d:88
#5 0x00005555555d736f in _D3std11concurrency__T6_spawnTPFZvZQnFbQjZ4execMFZv () at .../ldc2-1.23.0-linux-x86_64/bin/../import/std/concurrency.d:556
#6  0x000055555585c32a in thread_entryPoint ()
#7 0x00007ffff6020609 in start_thread (arg=<optimized out>) at pthread_create.c:477 #8 0x00007ffff5ddb103 in clone () from /usr/lib/x86_64-linux-gnu/libc.so.6
---------------------------


I tried some simple example which is similar to my app structure, e.g.
----------------------
void threadFunc() {
  foreach (i; 0..10) {
    auto stats = core.memory.GC.stats();
    writeln(stats);
    Thread.sleep( dur!("msecs")( 50 ) );
  }
}

void main() {
  spawn(&threadFunc);
  spawn(&threadFunc);
  thread_joinAll();
}
----------------------

however, it runs fine.


Anyone has some suggestions on how to isolate this issue?

Thanks.

Reply via email to