segfault

Steven Schveighoffer schveiguy at yahoo.com
Thu Nov 11 04:47:01 PST 2010


On Wed, 10 Nov 2010 07:13:21 -0500, spir <denis.spir at gmail.com> wrote:

> Hello D programmers,
>
>
> I'm blocked by a mysterious segfault I seem to be unable to diagnose.  
> There is probably some point of D I have not yet understood. Below  
> relevant piece of code; "***" marks debug instructions.

This is not enough code to understand the problem.  For instance,  
writefln(pattern) prints a class, but we don't see Pattern's toString  
function.  We don't see the code that creates the object and then calls  
check.  Maybe something happens between calls?

It's impossible to diagnose something like this without a working example,  
so you need to trim it down to something that still compiles and fails,  
and then share that entire code.

-Steve


More information about the Digitalmars-d-learn mailing list