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

2013-04-04 Thread Edsko de Vries
Hi Alfredo,

No dark magic as far as I recall (except in the actual bundling as a Mac
app, unfortunately that required some magic, the GTK libraries don't
relocate so easily :-( ). I didn't have any problems building. I compiled
it with ghc 7.6.1, with the GTK libraries installed manually (there are
some suggestions on how to do that at the very end of my Comprehensive
Haskell Sandboxes post,
http://www.edsko.net/2013/02/10/comprehensive-haskell-sandboxes/). It used
to be a lot more painful (requiring the latest versions of Haskell
libraries, with patches etc.) but these days the situation is a lot better.
(That's not so say that problems like the one you reported don't still crop
up from time to time, and can cause many a sleepless night..).

Edsko


On Wed, Apr 3, 2013 at 9:33 PM, Alfredo Di Napoli 
alfredo.dinap...@gmail.com wrote:

 Thanks Edsko, the app is awesome and it's starting just fine.
 Even though this fixes my problem, it doesn't solve the root, namely why
 it was failing.

 Can you tell me a bit more about the dark magic you used to make it work?
 Which GHC version did you use?

 Thanks a lot,
 A.


 On 3 April 2013 12:40, Edsko de Vries edskodevr...@gmail.com wrote:

 I provide a ThreadScope binary on my site (
 http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine for
 me on 10.8.3.

 -E


 On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz domi...@steinitz.orgwrote:

 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS X
 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:

 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-04-04 Thread Alfredo Di Napoli
Hi Edsko, thanks for the reply.
The only things that might affect the outcome are:

a) Ghc version: I'm running ghc 7.6.2 instead of 7.6.1
b) Don't know if you are using cabal-dev as sandboxing (like any good
Haskell programmer I'm too lazy to open your blog post :D ), whilst I'm
using hsenv
c) I've brewed GTK instead of manually installing it, but gtk-demo runs
just fine
d) Are you using XQuartz? If yes, which version?

Thanks again!
A.


On 4 April 2013 08:52, Edsko de Vries edskodevr...@gmail.com wrote:

 Hi Alfredo,

 No dark magic as far as I recall (except in the actual bundling as a Mac
 app, unfortunately that required some magic, the GTK libraries don't
 relocate so easily :-( ). I didn't have any problems building. I compiled
 it with ghc 7.6.1, with the GTK libraries installed manually (there are
 some suggestions on how to do that at the very end of my Comprehensive
 Haskell Sandboxes post,
 http://www.edsko.net/2013/02/10/comprehensive-haskell-sandboxes/). It
 used to be a lot more painful (requiring the latest versions of Haskell
 libraries, with patches etc.) but these days the situation is a lot better.
 (That's not so say that problems like the one you reported don't still crop
 up from time to time, and can cause many a sleepless night..).

 Edsko


 On Wed, Apr 3, 2013 at 9:33 PM, Alfredo Di Napoli 
 alfredo.dinap...@gmail.com wrote:

 Thanks Edsko, the app is awesome and it's starting just fine.
 Even though this fixes my problem, it doesn't solve the root, namely why
 it was failing.

 Can you tell me a bit more about the dark magic you used to make it work?
 Which GHC version did you use?

 Thanks a lot,
 A.


 On 3 April 2013 12:40, Edsko de Vries edskodevr...@gmail.com wrote:

 I provide a ThreadScope binary on my site (
 http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine for
 me on 10.8.3.

 -E


 On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz 
 domi...@steinitz.orgwrote:

 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS X
 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:


 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-04-04 Thread Edsko de Vries
a) 7.6.2 vs 7.6.1 seems unlike to be the issue, although theoretically
possible I guess.
b) Actually, the blog post is how to set things up by hand for better
control than either of those tools give you; but again, I don't think it's
relevant.
c) This might be a bigger difference. I don't know what version brew
installs, where it installs it, etc. etc.
d) And this might be related too; yes, I'm using XQuartz and have the GTK
compiled for it; currently using 2.7.4 but I don't know if I upgraded since
building.

-E


On Thu, Apr 4, 2013 at 9:07 AM, Alfredo Di Napoli 
alfredo.dinap...@gmail.com wrote:

 Hi Edsko, thanks for the reply.
 The only things that might affect the outcome are:

 a) Ghc version: I'm running ghc 7.6.2 instead of 7.6.1
 b) Don't know if you are using cabal-dev as sandboxing (like any good
 Haskell programmer I'm too lazy to open your blog post :D ), whilst I'm
 using hsenv
 c) I've brewed GTK instead of manually installing it, but gtk-demo runs
 just fine
 d) Are you using XQuartz? If yes, which version?

 Thanks again!
 A.


 On 4 April 2013 08:52, Edsko de Vries edskodevr...@gmail.com wrote:

 Hi Alfredo,

 No dark magic as far as I recall (except in the actual bundling as a Mac
 app, unfortunately that required some magic, the GTK libraries don't
 relocate so easily :-( ). I didn't have any problems building. I compiled
 it with ghc 7.6.1, with the GTK libraries installed manually (there are
 some suggestions on how to do that at the very end of my Comprehensive
 Haskell Sandboxes post,
 http://www.edsko.net/2013/02/10/comprehensive-haskell-sandboxes/). It
 used to be a lot more painful (requiring the latest versions of Haskell
 libraries, with patches etc.) but these days the situation is a lot better.
 (That's not so say that problems like the one you reported don't still crop
 up from time to time, and can cause many a sleepless night..).

 Edsko


 On Wed, Apr 3, 2013 at 9:33 PM, Alfredo Di Napoli 
 alfredo.dinap...@gmail.com wrote:

 Thanks Edsko, the app is awesome and it's starting just fine.
 Even though this fixes my problem, it doesn't solve the root, namely why
 it was failing.

 Can you tell me a bit more about the dark magic you used to make it work?
 Which GHC version did you use?

 Thanks a lot,
 A.


 On 3 April 2013 12:40, Edsko de Vries edskodevr...@gmail.com wrote:

 I provide a ThreadScope binary on my site (
 http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine
 for me on 10.8.3.

 -E


 On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz 
 domi...@steinitz.orgwrote:

 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS
 X 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:


 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe





___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-04-04 Thread Alfredo Di Napoli
Perfect, I will try to probe the ground for points c) and d), and I will
get back to all of you if I manage to shed some light to this mystery :D

A.


On 4 April 2013 09:12, Edsko de Vries edskodevr...@gmail.com wrote:

 a) 7.6.2 vs 7.6.1 seems unlike to be the issue, although theoretically
 possible I guess.
 b) Actually, the blog post is how to set things up by hand for better
 control than either of those tools give you; but again, I don't think it's
 relevant.
 c) This might be a bigger difference. I don't know what version brew
 installs, where it installs it, etc. etc.
 d) And this might be related too; yes, I'm using XQuartz and have the GTK
 compiled for it; currently using 2.7.4 but I don't know if I upgraded since
 building.

 -E


 On Thu, Apr 4, 2013 at 9:07 AM, Alfredo Di Napoli 
 alfredo.dinap...@gmail.com wrote:

 Hi Edsko, thanks for the reply.
 The only things that might affect the outcome are:

 a) Ghc version: I'm running ghc 7.6.2 instead of 7.6.1
 b) Don't know if you are using cabal-dev as sandboxing (like any good
 Haskell programmer I'm too lazy to open your blog post :D ), whilst I'm
 using hsenv
 c) I've brewed GTK instead of manually installing it, but gtk-demo runs
 just fine
 d) Are you using XQuartz? If yes, which version?

 Thanks again!
 A.


 On 4 April 2013 08:52, Edsko de Vries edskodevr...@gmail.com wrote:

 Hi Alfredo,

 No dark magic as far as I recall (except in the actual bundling as a Mac
 app, unfortunately that required some magic, the GTK libraries don't
 relocate so easily :-( ). I didn't have any problems building. I compiled
 it with ghc 7.6.1, with the GTK libraries installed manually (there are
 some suggestions on how to do that at the very end of my Comprehensive
 Haskell Sandboxes post,
 http://www.edsko.net/2013/02/10/comprehensive-haskell-sandboxes/). It
 used to be a lot more painful (requiring the latest versions of Haskell
 libraries, with patches etc.) but these days the situation is a lot better.
 (That's not so say that problems like the one you reported don't still crop
 up from time to time, and can cause many a sleepless night..).

 Edsko


 On Wed, Apr 3, 2013 at 9:33 PM, Alfredo Di Napoli 
 alfredo.dinap...@gmail.com wrote:

 Thanks Edsko, the app is awesome and it's starting just fine.
 Even though this fixes my problem, it doesn't solve the root, namely
 why it was failing.

 Can you tell me a bit more about the dark magic you used to make it
 work?
 Which GHC version did you use?

 Thanks a lot,
 A.


 On 3 April 2013 12:40, Edsko de Vries edskodevr...@gmail.com wrote:

 I provide a ThreadScope binary on my site (
 http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine
 for me on 10.8.3.

 -E


 On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz domi...@steinitz.org
  wrote:

 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS
 X 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:


 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe






___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-04-03 Thread Edsko de Vries
I provide a ThreadScope binary on my site (
http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine for me
on 10.8.3.

-E


On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz domi...@steinitz.orgwrote:

 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS X
 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:

 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-04-03 Thread Dominic Steinitz
Cool! Works for me. Many thanks, Dominic

On 3 Apr 2013, at 12:40, Edsko de Vries edskodevr...@gmail.com wrote:

 I provide a ThreadScope binary on my site 
 (http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine for me 
 on 10.8.3.
 
 -E
 
 
 On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz domi...@steinitz.org wrote:
 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:
 
 
  Said that,has someone had any luck in running Threadscope on Mac OS X 10.8 
  at all?
 
  Thanks,
  A.
 
 
 I think I have encountered the same problem:
 
 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ
 
 In my experience, anything that uses gtk is a problem on a MAC.
 
 I still intend to do some analysis *not* using threadscope but using 
 event-logs directly
 but that is at least a few weeks away.
 
 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe
 

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-04-03 Thread Alfredo Di Napoli
Thanks Edsko, the app is awesome and it's starting just fine.
Even though this fixes my problem, it doesn't solve the root, namely why it
was failing.

Can you tell me a bit more about the dark magic you used to make it work?
Which GHC version did you use?

Thanks a lot,
A.


On 3 April 2013 12:40, Edsko de Vries edskodevr...@gmail.com wrote:

 I provide a ThreadScope binary on my site (
 http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine for
 me on 10.8.3.

 -E


 On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz domi...@steinitz.orgwrote:

 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS X
 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:

 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-04-01 Thread Dominic Steinitz
Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
 Said that,has someone had any luck in running Threadscope on Mac OS X 10.8 at 
 all?
 
 Thanks,
 A.
 

I think I have encountered the same problem:

https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

In my experience, anything that uses gtk is a problem on a MAC.

I still intend to do some analysis *not* using threadscope but using event-logs 
directly
but that is at least a few weeks away.

Dominic.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-03-31 Thread Alfredo Di Napoli
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: 0x
0x in ?? ()

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, see:

https://discussions.apple.com/thread/3734077?start=0tstart=0


On 30 March 2013 15:19, John Wiegley jo...@fpcomplete.com wrote:

  Alfredo Di Napoli alfredo.dinap...@gmail.com writes:

  I know it's a bit difficult to debug this way, I can try debugging with
 gdb
  if it can help.

 Yes, can you show us a backtrace from gdb, and also look in your
 CrashReports
 log folder to see if it gives a bit more information on the state of the
 process at the time it died?

 Thanks,
 --
 John Wiegley
 FP Complete Haskell tools, training and consulting
 http://fpcomplete.com   johnw on #haskell/irc.freenode.net

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-03-31 Thread Tobias Müller
Alfredo Di Napoli alfredo.dinap...@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: 0x 0x 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


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-03-31 Thread Alfredo Di Napoli
Hi Tobias,

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

In a forum I've read that this error could be some third party app (for example 
one started at login or running as a daemon) which is conflicting and causing 
the error.
Unlikely, but i've reported the possibility for completeness.

Said that,has someone had any luck in running Threadscope on Mac OS X 10.8 at 
all?

Thanks,
A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-03-30 Thread Alfredo Di Napoli
Hi Cafè,

I've tried installing threadscope, but when I run it from console with
threadscope I get a laconic segmentation fault.
Some info to help the debugging:

* Installed gtk via brew
* gtk-demo runs correctly
* I'm using Mac Os X 10.8.3
* Running gtk and threadscope through a virtual environment (provided by
hsenv)
* Using XQuartz 2.7.4

I know it's a bit difficult to debug this way, I can try debugging with gdb
if it can help.

Cheers,

A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-03-30 Thread John Wiegley
 Alfredo Di Napoli alfredo.dinap...@gmail.com writes:

 I know it's a bit difficult to debug this way, I can try debugging with gdb
 if it can help.

Yes, can you show us a backtrace from gdb, and also look in your CrashReports
log folder to see if it gives a bit more information on the state of the
process at the time it died?

Thanks,
-- 
John Wiegley
FP Complete Haskell tools, training and consulting
http://fpcomplete.com   johnw on #haskell/irc.freenode.net

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe