You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing lc_messages to C, the function is created with success. If I change lc_messages back to pt_BR.utf8 the functions fails to execute with the same error:
daniel=# set lc_messages to default;
SET
daniel=# show lc_messages ;
lc_messages
-------------
pt_BR.utf8
(1 linha)
daniel=# SELECT * FROM primes(100);
ERRO: /lib/x86_64-linux-gnu/libc.so: cabeçalho de ELF inválido
daniel=# set lc_messages to 'C';
SET
daniel=# SELECT * FROM primes(10);
n | p
----+----
1 | 2
2 | 3
3 | 5
4 | 7
5 | 11
6 | 13
7 | 17
8 | 19
9 | 23
10 | 29
(10 linhas)
It works with en_US.utf8:
daniel=# set lc_messages to 'en_US.utf8';
SET
daniel=# SELECT * FROM primes(10);
n | p
----+----
1 | 2
2 | 3
3 | 5
4 | 7
5 | 11
6 | 13
7 | 17
8 | 19
9 | 23
10 | 29
(10 linhas)
The text was updated successfully, but these errors were encountered:
I've done some investigating. The problem is with the Hint module that is used to interpret Haskell. I've submitted a bug report at [haskell-hint/hint/issues/172]. However, it looks like the issues is with the underlying GHC API.
I'll post when I know more.
I stumbled into an issue because my server is configured with lc_messages pt_BR.utf8 and it raises an error when creating functions:
ERRO: /lib/x86_64-linux-gnu/libc.so: cabeçalho de ELF inválido
which might be in English something like:
ERROR: /lib/x86_64-linux-gnu/libc.so: invalid ELF header
After changing lc_messages to C, the function is created with success. If I change lc_messages back to pt_BR.utf8 the functions fails to execute with the same error:
It works with en_US.utf8:
The text was updated successfully, but these errors were encountered: