<div dir="ltr"><div><div><div>Hi,<br><br></div>I had the same bug with a single static binary in a initramfs. I fixed GHC.IO.Encoding to avoid using Iconv for the default (ASCII) charmap used with static binaries and now it works. Patch is in my comment on <a href="https://ghc.haskell.org/trac/ghc/ticket/10298">https://ghc.haskell.org/trac/ghc/ticket/10298</a><br><br></div>If the default LC_CTYPE value is the DEFAULT_CHARMAP from glibc/locale/programs/config.h, it is set to "ANSI_X3.4-1968" since 2000 and was set to "POSIX" before. Maybe we should match this one too?<br><br></div>Sylvain<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-20 6:34 GMT+02:00 Michael Snoyman <span dir="ltr"><<a href="mailto:michael@snoyman.com" target="_blank">michael@snoyman.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the update Simon.<br></div><br><div class="gmail_quote"><div><div class="h5">On Sun, Apr 19, 2015 at 10:54 PM Simon Marlow <<a href="mailto:marlowsd@gmail.com" target="_blank">marlowsd@gmail.com</a>> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi Michael,<br>
<br>
This rang a bell for me. It might be the same as these:<br>
<a href="https://ghc.haskell.org/trac/ghc/ticket/7695" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/7695</a><br>
<a href="https://ghc.haskell.org/trac/ghc/ticket/8928" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/8928</a><br>
<br>
I think the conclusion was that the IO library is failing to start<br>
iconv, and printing the error messages causes it to retry loading iconv,<br>
ad infinitum (or something like that). There's no fix yet, but it<br>
probably isn't hard to fix, just that nobody got around to it yet.<br>
<br>
Cheers,<br>
Simon<br>
<br>
On 13/04/2015 11:50, Michael Snoyman wrote:<br>
> I'm not sure if this issue would show up, but I can try it in Fedora<br>
> tomorrow. I didn't address the linker warning at all right now, it seems<br>
> to not have been triggered, though I suppose it is possible that it's<br>
> the cause of this issue.<br>
><br>
> On Mon, Apr 13, 2015 at 7:10 PM Greg Weber <<a href="mailto:greg@gregweber.info" target="_blank">greg@gregweber.info</a><br>
> <mailto:<a href="mailto:greg@gregweber.info" target="_blank">greg@gregweber.info</a>>> wrote:<br>
><br>
> Haskell is not that great at producing statically linked libraries<br>
> independent of the OS.<br>
> The issue you are running into would likely show up in another<br>
> non-ubuntu image (or even possibly a different version of an ubuntu<br>
> image), so you could probably use a Fedora image that has tracing.<br>
><br>
> How are you addressing the linker warning about needing a particular<br>
> glibc version at runtime?<br>
><br>
> On Mon, Apr 13, 2015 at 3:28 AM, Sharif Olorin<br>
> <<a href="mailto:sharif.olorin@gmail.com" target="_blank">sharif.olorin@gmail.com</a> <mailto:<a href="mailto:sharif.olorin@gmail.com" target="_blank">sharif.olorin@gmail.com</a>>> wrote:<br>
><br>
> Unfortunately, strace and ltrace aren't available in that<br>
> Docker image, but it's a good idea to see if I can get them<br>
> running there somehow.<br>
><br>
><br>
> Failing that, you might be able to get useful information of the<br>
> same kind by running docker (the server, not the `docker run`<br>
> command) under perf[0] and then running your busybox container.<br>
> It should at least give you an idea of what it's doing when it<br>
> explodes.<br>
><br>
> Sharif<br>
><br>
> [0]: <a href="https://perf.wiki.kernel.org/index.php/Tutorial" target="_blank">https://perf.wiki.kernel.org/index.php/Tutorial</a><br>
><br>
> --<br>
> You received this message because you are subscribed to the<br>
> Google Groups "Commercial Haskell" group.<br>
> To unsubscribe from this group and stop receiving emails from<br>
> it, send an email to<br>
> <a href="mailto:commercialhaskell%2Bunsubscribe@googlegroups.com" target="_blank">commercialhaskell+unsubscribe@googlegroups.com</a><br>
> <mailto:<a href="mailto:commercialhaskell%2Bunsubscribe@googlegroups.com" target="_blank">commercialhaskell+unsubscribe@googlegroups.com</a>>.<br>
> To post to this group, send email to<br>
> <a href="mailto:commercialhaskell@googlegroups.com" target="_blank">commercialhaskell@googlegroups.com</a><br>
> <mailto:<a href="mailto:commercialhaskell@googlegroups.com" target="_blank">commercialhaskell@googlegroups.com</a>>.<br>
> To view this discussion on the web visit<br>
> <a href="https://groups.google.com/d/msgid/commercialhaskell/86ca2603-37f2-4645-9cd2-f09703f2be67%40googlegroups.com" target="_blank">https://groups.google.com/d/msgid/commercialhaskell/86ca2603-37f2-4645-9cd2-f09703f2be67%40googlegroups.com</a><br>
> <<a href="https://groups.google.com/d/msgid/commercialhaskell/86ca2603-37f2-4645-9cd2-f09703f2be67%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/commercialhaskell/86ca2603-37f2-4645-9cd2-f09703f2be67%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.<br>
><br>
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
><br>
><br>
> --<br>
> You received this message because you are subscribed to the Google<br>
> Groups "Commercial Haskell" group.<br>
> To unsubscribe from this group and stop receiving emails from it, send<br>
> an email to <a href="mailto:commercialhaskell%2Bunsubscribe@googlegroups.com" target="_blank">commercialhaskell+unsubscribe@googlegroups.com</a><br>
> <mailto:<a href="mailto:commercialhaskell%2Bunsubscribe@googlegroups.com" target="_blank">commercialhaskell+unsubscribe@googlegroups.com</a>>.<br>
> To post to this group, send email to <a href="mailto:commercialhaskell@googlegroups.com" target="_blank">commercialhaskell@googlegroups.com</a><br>
> <mailto:<a href="mailto:commercialhaskell@googlegroups.com" target="_blank">commercialhaskell@googlegroups.com</a>>.<br>
> To view this discussion on the web visit<br>
> <a href="https://groups.google.com/d/msgid/commercialhaskell/CAKA2Jg%2B%3DzJiXmak2FU_5GWPO1Dcn%2BvwsiB_xWj%2B8GfHvMkoBjw%40mail.gmail.com" target="_blank">https://groups.google.com/d/msgid/commercialhaskell/CAKA2Jg%2B%3DzJiXmak2FU_5GWPO1Dcn%2BvwsiB_xWj%2B8GfHvMkoBjw%40mail.gmail.com</a><br>
> <<a href="https://groups.google.com/d/msgid/commercialhaskell/CAKA2Jg%2B%3DzJiXmak2FU_5GWPO1Dcn%2BvwsiB_xWj%2B8GfHvMkoBjw%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/commercialhaskell/CAKA2Jg%2B%3DzJiXmak2FU_5GWPO1Dcn%2BvwsiB_xWj%2B8GfHvMkoBjw%40mail.gmail.com?utm_medium=email&utm_source=footer</a>>.<br>
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
<br>
--<br>
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.<br></div></div>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:commercialhaskell%2Bunsubscribe@googlegroups.com" target="_blank">commercialhaskell+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:commercialhaskell@googlegroups.com" target="_blank">commercialhaskell@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/commercialhaskell/553407EF.1030303%40gmail.com" target="_blank">https://groups.google.com/d/msgid/commercialhaskell/553407EF.1030303%40gmail.com</a>.<span class=""><br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</span></blockquote></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>