[Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

Tobias Müller troplin at bluewin.ch
Sun Mar 31 17:51:58 CEST 2013


Alfredo Di Napoli <alfredo.dinapoli at gmail.com> wrote:
> Fair enough :)
> Here is the gdb output:
> 
> (gdb) run Starting program:
> /Users/adinapoli/Library/Haskell/ghc-7.6.2/bin/threadscope Reading
> symbols for shared libraries
> ++++++++++++++++++.......................................................................................................................................................................
> done Reading symbols for shared libraries . done Reading symbols for
> shared libraries . done Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory. Reason:
> KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x0000000000000000 in ?? ()

That's a NULL-pointer exception.

> I have two hypothesis:
> 
> a) could be the RAM (tips about some RAM testing tool?)
> b) could be some programs which is writing in that portion of memory

Definitely an application error. NULL is never a valid memory address.
Missing NULL-pointer checks are a very common error source in low level
programming.

What do you mean by _some_ program? It's the program that you started
(threadscope).

Tobi




More information about the Haskell-Cafe mailing list