Got some problemmes with new version of compiler 2.090

uranuz neuranuz at
Sun Jan 19 08:54:43 UTC 2020

Hello! I have got some problemmes with new compiler version that 
I am trying to debug already for several days, because I cannot 
locate the source of bug using GDB, because there are no useful 
The first problemme was `Memory allocation failed`.
I was executing my code step by step. And it was failing with 
such error near where I was using std.exception: enforce.
I need to say that I running server in threaded mode using 
TaskPool class. But when running in `plain` mode without threads 
all goes just fine.
What changes are made in enforce, TaskPool or memory allocation 
that can be a source of such bug?

And another error that I have encountered just recently:
Signal        Stop	Print	Pass to program	Description
SIGUSR1       No	No	Yes		User defined signal 1
Signal        Stop	Print	Pass to program	Description
SIGUSR2       No	No	Yes		User defined signal 2
Source directories searched: 
Source directories searched: 
Source directories searched: 
Source directories searched: 
Source directories searched: 
Running executable
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
[New Thread 0x7ffff7ff6700 (LWP 14697)]
[New Thread 0x7ffff7ff1700 (LWP 14698)]
[New Thread 0x7ffff7fec700 (LWP 14699)]
[New Thread 0x7ffff7fe7700 (LWP 14700)]
[New Thread 0x7ffff7fe2700 (LWP 14701)]
[New Thread 0x7ffff7fdd700 (LWP 14702)]
[New Thread 0x7ffff7fd8700 (LWP 14703)]
[New Thread 0x7ffff7fbc700 (LWP 14704)]
[New Thread 0x7ffff7fb7700 (LWP 14705)]
[New Thread 0x7ffff7fb2700 (LWP 14706)]
[New Thread 0x7ffff7fad700 (LWP 14707)]
[New Thread 0x7ffff7fa8700 (LWP 14708)]
[New Thread 0x7ffff7fa3700 (LWP 14709)]
[New Thread 0x7ffff7f9e700 (LWP 14710)]
[New Thread 0x7ffff7f99700 (LWP 14711)]
warning: Error removing breakpoint 1
warning: Error removing breakpoint 2
warning: Error removing breakpoint 3
warning: Error removing breakpoint 4
warning: Error removing breakpoint 5
warning: Error removing breakpoint 6
warning: Error removing breakpoint 7
[New Thread 0x7ffff177a700 (LWP 14790)]

1 "mkk_main_servic" received signal SIGTRAP, Trace/breakpoint 
0x0000555555ce9cd8 in 
(this=0x7ffff7e9c660) at 
61					if( client is null )
[Switching to thread 17 (Thread 0x7ffff177a700 (LWP 

17 "mkk_main_servic" received signal SIGTRAP, Trace/breakpoint 
[Switching to Thread 0x7ffff177a700 (LWP 14790)]
0x0000555555d3b79b in 
_D7webtank3net6server6common14processRequestFC3std6socket6SocketCQClQCgQCf5iface10IWebServerZv (server=0x7ffff7e9c670, sock=0x7ffff7f044c0) at ../webtank/src/webtank/net/server/common.d:95
95		HTTPOutput response = new HTTPOutput();

17 "mkk_main_servic" received signal SIGSEGV, Segmentation fault.
0x0000555555deda1e in _d_newclass ()
#0  0x0000555555deda1e in _d_newclass ()
#1  0x0000555555d3b7a6 in 
_D7webtank3net6server6common14processRequestFC3std6socket6SocketCQClQCgQCf5iface10IWebServerZv (server=0x7ffff7e9c670, sock=0x7ffff7f044c0) at ../webtank/src/webtank/net/server/common.d:95
#2  0x0000555555cea5ef in 
_D3std11parallelism__T3runTPFCQBc6socket6SocketC7webtank3net6server5iface10IWebServerZvTQChTCQBtQBoQBn11thread_pool16ThreadPoolServerZQEiFQEhKQEjKQCcZv (_param_2=@0x7ffff7f005e8: 0x7ffff7e9c660, _param_1=@0x7ffff7f005e0: 0x7ffff7f044c0, fpOrDelegate=0x555555d3b780 <_D7webtank3net6server6common14processRequestFC3std6socket6SocketCQClQCgQCf5iface10IWebServerZv>) at /usr/include/dmd/phobos/std/parallelism.d:761
#3  0x0000555555ce9f91 in 
_D3std11parallelism__T4TaskSQBaQz3runTPFCQBn6socket6SocketC7webtank3net6server5iface10IWebServerZvTQChTCQBtQBoQBn11thread_pool16ThreadPoolServerZQEt4implFPvZv (myTask=0x7ffff7f005a0) at /usr/include/dmd/phobos/std/parallelism.d:444
#4  0x0000555555dfe363 in std.parallelism.AbstractTask.job() ()
#5  0x0000555555dfe4b4 in 
_D3std11parallelism8TaskPool5doJobMFPSQBkQBj12AbstractTaskZv ()
#6  0x0000555555dfe62a in 
std.parallelism.TaskPool.executeWorkLoop() ()
#7  0x0000555555dfe5d0 in 
std.parallelism.TaskPool.startWorkLoop() ()
#8  0x0000555555dea41e in ()
#9  0x0000555555e2bf56 in thread_entryPoint ()
#10 0x00007ffff720b6db in start_thread (arg=0x7ffff177a700) at 
#11 0x00007ffff657288f in clone () at 

Seems that some error occured when allocating new class instance. 
It is very weird

More information about the Digitalmars-d mailing list