segfault with Hint (InterpreterT)

My program segfaults the second time it run runInterpreterT. Just wondering if that's not supposed to be allowed. I'm actually not sure what triggers the segfault -- it's also doing some MIDI I/O. D

On 03/02/17 01:16, Dennis Raddle wrote:
My program segfaults the second time it run runInterpreterT. Just wondering if that's not supposed to be allowed. I'm actually not sure what triggers the segfault -- it's also doing some MIDI I/O.
D
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
Being able to see the code would be useful in order to help you in this case :) Anyway, from my experience, segfaults while using hint are usually caused by invalid type coercions. That's the first thing you should check.

You are right, I should try to construct a minimal example. I was hoping there might be some bit of information that could guide me in what to try, as far as taking my rather large program as-is and varying it. Constructing a minimal example will be, potentially a lot of work and may not even segfault -- but that is how it works, you are right, one must provide a minimal example or at least some actual code. D

There are also some other quick things you could try (unless you've done that already), e.g. making sure that all C code is compiled with `-g`, and use gdb to attach to the dying process (or the `core` dump file that your OS may write when the segfault happens) and use `bt` to check if the segfault is actually in the Haskell runtime or not. And then of course, if your code is open-source, you might also be able to provide it as a whole before putting in the effort to minimise it. Niklas On 03/02/17 15:19, Dennis Raddle wrote:
You are right, I should try to construct a minimal example. I was hoping there might be some bit of information that could guide me in what to try, as far as taking my rather large program as-is and varying it. Constructing a minimal example will be, potentially a lot of work and may not even segfault -- but that is how it works, you are right, one must provide a minimal example or at least some actual code.
participants (3)
-
Dennis Raddle
-
Lana Black
-
Niklas Hambüchen