www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - LDC 1.0 beat2 GC lock can not unlock

reply Dsby <dushibaiyu yahoo.com> writes:
(gdb) bt

/lib64/libpthread.so.0

/lib64/libpthread.so.0

/lib64/libpthread.so.0



collie.socket.selector.epoll.EpollLoop.delEvent(collie.socket
common.AsyncEvent*) ()

collie.socket.tcpsocket.TCPSocket.onClose() ()

collie.socket.tcpsocket.WriteSite.doCallBack() ()

collie.socket.tcpsocket.TCPSocket.onWrite() ()

Th80_D6collie7channel14handlercontext70__T11ContextImplTC6collie7channel16tcpsockethandler16TCPSocketHandlerZ11ContextImpl8__mixin
5writeMFAhDFAhkZvZv ()

Th64_D6collie7channel14handlercontext35__T11ContextImplTC3app10HttpServerZ11ContextImpl8__mixin39fi
eWriteMFAhDFAhkZvZv ()

collie.codec.http.handler.HTTPHandler.writeStection(collie.buffer.sectionb
ffer.SectionBuffer, bool, bool) ()

collie.codec.http.handler.HTTPHandler.write(collie.channel.handlercontext.HandlerContext!(collie.codec.http.
equest.HTTPRequest, ubyte[]).HandlerContext,
collie.codec.http.response.HTTPResponse,
void(collie.codec.http.response.HTTPResponse, uint) delegate) ()

collie.codec.http.handler.HTTPHandler.responseSent(collie.codec.http.re
ponse.HTTPResponse, immutable(char)[], ulong) ()

collie.codec.http.response.HTTPResponse.done() ()

collie.codec.http.handler.HTTPHandler.requestDone(collie.codec.http.
equest.HTTPRequest) ()

collie.codec.http.request.HTTPRequest.parserData(ubyte[]) ()

collie.codec.http.handler.HTTPHandler.read(collie.channel.handlercontext.HandlerContext!(collie.codec.http.
equest.HTTPRequest, ubyte[]).HandlerContext, ubyte[]) ()

Th72_D6collie7channel14handlercontext35__T11ContextImplTC3app10HttpServerZ11ContextImpl
__mixin44readMFAhZv ()

Th64_D6collie7channel14handlercontext70__T11ContextImplTC6collie7channel16tcpsockethandler16TCPSocketHandlerZ11ContextImpl8__m
xin48fireReadMFAhZv ()

collie.socket.tcpsocket.TCPSocket.onRead() ()

collie.socket.selector.epoll.EpollLoop.wait(int) ()

collie.socket.eventloop.EventLoopImpl!(collie.socket.selector.epoll.EpollLoop).Ev
ntLoopImpl.run(int) ()

collie.bootstrap.server.ServerBootstrap!(collie.channel.pipelin
.Pipeline!(ubyte[], collie.codec.http.response.HTTPResponse).Pipeline).ServerBoo
strap.waitForStop() ()



  ldc2 --version
LDC - the LLVM D compiler (1.0.0-beta2):
   based on DMD v2.070.2 and LLVM 3.8.0
   built with LDC - the LLVM D compiler (1.0.0-beta2)
   Default target: x86_64-unknown-linux-gnu
   Host CPU: haswell
   http://dlang.org - http://wiki.dlang.org/LDC

   Registered Targets:
     x86    - 32-bit X86: Pentium-Pro and above
     x86-64 - 64-bit X86: EM64T and AMD64


in this 
https://github.com/putao-dev/collie/tree/master/example/http/httpserver

in dmd 2.071, it work ok.
May 17 2016
parent Joakim <dlang joakim.fea.st> writes:
On Wednesday, 18 May 2016 at 02:58:25 UTC, Dsby wrote:
 [...]
Have you tried dmd 2.070.2? That's the frontend ldc 1.0 is based on. If you cannot reproduce with dmd 2.070, you can file an issue here: https://github.com/ldc-developers/ldc/issues If it's in dmd 2.070.2 too, you can file an issue here: https://issues.dlang.org Wherever you file, you should try to isolate the problem a bit more, so that others don't have to rebuild your entire codebase.
May 17 2016