[GHC] #10375: arm: ghci hits an illegal instruction
GHC
ghc-devs at haskell.org
Tue May 26 04:51:05 UTC 2015
#10375: arm: ghci hits an illegal instruction
-------------------------------------+---------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.2
Component: GHCi | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: GHCi crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+---------------------------------
Comment (by erikd):
I smell a rat, or maybe its a red herring. Seem to be getting SIGSEGV
inside the call to `pthread_cond_init`. A bit of googling tells me that
AddressSanitizer intercepts calls to `pthread_cond_init` and can get it
wrong eg : https://code.google.com/p/address-
sanitizer/issues/detail?id=297 .
Sure enough, trivial C program:
{{{
#include <stdio.h>
#include <pthread.h>
int main (void)
{ pthread_cond_t cond;
pthread_cond_init(&cond, NULL);
return 0;
}
}}}
Works correctly when compiled and run (even under Valgrind) as:
{{{
gcc -Wall cond_init.c -o cond_init && valgrind ./cond_init
}}}
but crashes with a SIGSEGV when compiled and run as:
{{{
gcc -Wall -fsanitize=address cond_init.c -o cond_init && ./cond_init
}}}
Reported this as a bug in Debian's gcc : https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=786850
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10375#comment:27>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list