Using an async buffer

bioinfornatics bioinfornatics at fedoraproject.org
Thu Nov 7 15:07:44 UTC 2019


Dear,

I try to use the async buffer describe into std.parallelism 
documentation but my test code core dump!

documentation: 
https://dlang.org/phobos/std_parallelism.html#.TaskPool.asyncBuf.2

snipptet: 
https://paste.fedoraproject.org/paste/K5W1O1dLzZ0sPV8NeGztUg

Trace:

$ gdb test
(gdb) r
Starting program: 
/env/export/v_home/q_unix/jmercier/Projets/wc/test
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
nb octets: 10485760
nb iterations: 10240
Done
[New Thread 0x7ffff681f700 (LWP 34340)]
[New Thread 0x7ffff601e700 (LWP 34341)]
[New Thread 0x7ffff581d700 (LWP 34342)]
[New Thread 0x7ffff501c700 (LWP 34343)]
[New Thread 0x7ffff481b700 (LWP 34344)]
[New Thread 0x7fffdffff700 (LWP 34345)]
[New Thread 0x7fffdf7fe700 (LWP 34346)]
[New Thread 0x7fffdeffd700 (LWP 34347)]

Program received signal SIGUSR1, User defined signal 1.
[Switching to Thread 0x7fffdeffd700 (LWP 34347)]
0x00007ffff72119f5 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib64/libpthread.so.0
Missing separate debuginfos, use: debuginfo-install 
glibc-2.17-292.el7.x86_64 libgcc-4.8.5-39.el7.x86_64
(gdb) bt
#0  0x00007ffff72119f5 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib64/libpthread.so.0
#1  0x00007ffff7f2cae0 in core.sync.condition.Condition.wait() ()
    from 
/env/ig/soft/ig/ldc2-1.18.0/el7-x86_64-generic/lib64/libdruntime-ldc-shared.so.88
#2  0x00007ffff7addd06 in std.parallelism.TaskPool.pop() ()
    from 
/env/ig/soft/ig/ldc2-1.18.0/el7-x86_64-generic/lib64/libphobos2-ldc-shared.so.88
#3  0x00007ffff7addbcf in 
std.parallelism.TaskPool.startWorkLoop() ()
    from 
/env/ig/soft/ig/ldc2-1.18.0/el7-x86_64-generic/lib64/libphobos2-ldc-shared.so.88
#4  0x00007ffff7f2e8bc in thread_entryPoint ()
    from 
/env/ig/soft/ig/ldc2-1.18.0/el7-x86_64-generic/lib64/libdruntime-ldc-shared.so.88
#5  0x00007ffff720de65 in start_thread () from 
/lib64/libpthread.so.0
#6  0x00007ffff6a1e88d in clone () from /lib64/libc.so.6


Thanks for your help

Best regards



More information about the Digitalmars-d-learn mailing list