September 15, 2017
On Friday, 15 September 2017 at 06:22:01 UTC, Swoorup Joshi wrote:
> On Wednesday, 13 September 2017 at 10:20:48 UTC, Thorsten Sommer wrote:
>> Dear Community,
>>
>> My student assistant and I working on an artificial intelligence library in D for a while. This library is part of my PhD thesis in order to perform several experiments to push the state of the art.
>>
>> [...]
>
> I had the same issue trying to use the std.experimental.xml library.
>
> * Ran an example
> * Crashes at some posix, C library writing to a file.
> * Gave up, now looking at other programming language (rust)

Try with this xml package
https://github.com/apz28/dlang-xml

Cheers
apz28

September 15, 2017
On Wednesday, 13 September 2017 at 10:20:48 UTC, Thorsten Sommer wrote:
> Besides the unit tests, the main program is now able to startup but crashes after a while without any message at all. No stack trace, no exception, nothing. Obviously, this makes it hard to debug anything...

You mention you're using Docker. https://github.com/moby/moby/issues/11740 has some info on how to generate core files inside a Docker container. You should be able to load that up in gdb and see exactly what's going on.
September 16, 2017
On Friday, 15 September 2017 at 06:17:33 UTC, Thorsten Sommer wrote:
> Thank you very much for the different approaches. Vladimir, I installed the GDB today and try to gain new insights with it. Rikki, we are aware of the advantages of LDC. But first of all we want the program to run with DMD. After that we would then switch to LDC.

Latest LDC (1.4.0) gives you AddressSanitizer which can catch bad memory accesses and reports them in a nice way. Use `-fsanitize=address` when compiling. Caveat: it doesn't catch memory bugs involving GC-(de)allocated memory yet (only _very_ bad ones). But it does catch malloc'ed memory bugs and stack bugs.

https://github.com/google/sanitizers/wiki/AddressSanitizer

- Johan

September 16, 2017
On Friday, 15 September 2017 at 12:58:19 UTC, Suliman wrote:
> On Friday, 15 September 2017 at 06:22:01 UTC, Swoorup Joshi wrote:
>> On Wednesday, 13 September 2017 at 10:20:48 UTC, Thorsten Sommer wrote:
>>> Dear Community,
>>>
>>> My student assistant and I working on an artificial intelligence library in D for a while. This library is part of my PhD thesis in order to perform several experiments to push the state of the art.
>>>
>>> [...]
>>
>> I had the same issue trying to use the std.experimental.xml library.
>>
>> * Ran an example
>> * Crashes at some posix, C library writing to a file.
>> * Gave up, now looking at other programming language (rust)
>
> What did you expect from unofficial alpha package?

That the xml experimental library is now abandoned by the author? Not much hope there
September 16, 2017
On Friday, 15 September 2017 at 06:22:01 UTC, Swoorup Joshi wrote:
> I had the same issue trying to use the std.experimental.xml library.

my dom.d works :P
September 16, 2017
Thank you all. In the meantime I found the cause: At one point in the code, null was used as a key in a map i.e. associative array.

It is really great that D has such a great community.
September 17, 2017
https://github.com/dlang-community/discussions/issues/ 23#issuecomment-318331816


https://github.com/Kozzi11/experimental.xml

Dne 16. 9. 2017 2:51 odpoledne napsal uživatel "Swoorup Joshi via Digitalmars-d" <digitalmars-d@puremagic.com>:

On Friday, 15 September 2017 at 12:58:19 UTC, Suliman wrote:

> On Friday, 15 September 2017 at 06:22:01 UTC, Swoorup Joshi wrote:
>
>> On Wednesday, 13 September 2017 at 10:20:48 UTC, Thorsten Sommer wrote:
>>
>>> Dear Community,
>>>
>>> My student assistant and I working on an artificial intelligence library in D for a while. This library is part of my PhD thesis in order to perform several experiments to push the state of the art.
>>>
>>> [...]
>>>
>>
>> I had the same issue trying to use the std.experimental.xml library.
>>
>> * Ran an example
>> * Crashes at some posix, C library writing to a file.
>> * Gave up, now looking at other programming language (rust)
>>
>
> What did you expect from unofficial alpha package?
>

That the xml experimental library is now abandoned by the author? Not much hope there


1 2
Next ›   Last »