Debugging silent exit of threads in Phobos calls

Russel Winder russel at winder.org.uk
Fri Jun 1 14:43:56 UTC 2018


On Fri, 2018-06-01 at 09:31 -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
> On 6/1/18 7:12 AM, Russel Winder wrote:
> > So I had a play and gdb seems to be useless for trying to find out
> > why
> > calls to std.concurrency.receive exit silently.
> > 
> > Obviously std.concurrency.receive should never terminate a thread,
> > and
> > it should never terminate a thread silently, but given that it
> > clearly
> > does (using dmd 2.080 from d-apt on Debian Sid) how is one to find
> > out
> > useful information as to why it is exiting silently.
> 
> I remember something like a receive thread that throws terminates 
> silently. Do a try/catch to see if it's that.

Tried to catch Exception but that failed to work, fortunately
remembered to catch Throwable and it turned out to be a 

receive threw an exception core.exception.AssertError@/usr/include/dmd/phobos/std/variant.d(323):

It seems that the type frontend_manager.FrontendAppeared is not the
same as frontend_manager.FrontendAppeared. :-( Who knew.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20180601/140316d5/attachment.sig>


More information about the Digitalmars-d-learn mailing list