segfault in ghci

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
$ ghci-gdb -package-conf ./cabal-dev/packages-7.0.3.conf/ -no-user-package-conf
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done

warning: Could not find object file "/Users/ian/zz64/ghc-7.0.3/libffi/dist-install/build/libHSffi.a(prep_cif.o)" - no debug information available for "src/prep_cif.c".


warning: Could not find object file "/Users/ian/zz64/ghc-7.0.3/libffi/dist-install/build/libHSffi.a(types.o)" - no debug information available for "src/types.c".


warning: Could not find object file "/Users/ian/zz64/ghc-7.0.3/libffi/dist-install/build/libHSffi.a(ffi64.o)" - no debug information available for "src/x86/ffi64.c".


(gdb) :m + Graphics.UI.GLFW
Undefined command: "".  Try "help".
(gdb) run
Starting program: /Library/Frameworks/GHC.framework/Versions/7.0.3-x86_64/usr/lib/ghc-7.0.3/ghc -B/Library/Frameworks/GHC.framework/Versions/7.0.3-x86_64/usr/lib/ghc-7.0.3 -pgmc /Developer/usr/bin/gcc -pgma /Developer/usr/bin/gcc -pgml /Developer/usr/bin/gcc -pgmP /Developer/usr/bin/gcc\ -E\ -undef\ -traditional --interactive -package-conf ./cabal-dev/packages-7.0.3.conf/ -no-user-package-conf
Reading symbols for shared libraries +++. done
GHCi, version 7.0.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :m + Graphics.UI.GLFW 
Prelude Graphics.UI.GLFW> initialize 
Loading package GLFW-b-0.0.2.6 ... Reading symbols for shared libraries ............................................................................................ done
Reading symbols for shared libraries .... done
Reading symbols for shared libraries warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_enable.o" - no debug information available for "glfw/lib/cocoa/cocoa_enable.m".

warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_fullscreen.o" - no debug information available for "glfw/lib/cocoa/cocoa_fullscreen.m".

warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_glext.o" - no debug information available for "glfw/lib/cocoa/cocoa_glext.m".

warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_init.o" - no debug information available for "glfw/lib/cocoa/cocoa_init.m".

warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_joystick.o" - no debug information available for "glfw/lib/cocoa/cocoa_joystick.m".

warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_time.o" - no debug information available for "glfw/lib/cocoa/cocoa_time.m".

warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_window.o" - no debug information available for "glfw/lib/cocoa/cocoa_window.m".

warning: Could not find object file "/private/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-/GLFW-b-0.0.2.644512/GLFW-b-0.0.2.6/build/glfw/lib/cocoa/cocoa_thread.o" - no debug information available for "glfw/lib/cocoa/cocoa_thread.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccDmr21k.o" - no debug information available for "glfw/lib/enable.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//cctUtaDu.o" - no debug information available for "glfw/lib/fullscreen.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccsG3BcV.o" - no debug information available for "glfw/lib/glext.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccbcd98C.o" - no debug information available for "glfw/lib/image.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//cctwEE1b.o" - no debug information available for "glfw/lib/init.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccnxp7HB.o" - no debug information available for "glfw/lib/input.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//cczg6NVw.o" - no debug information available for "glfw/lib/joystick.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccR0IaOf.o" - no debug information available for "glfw/lib/stream.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccwVbp0Z.o" - no debug information available for "glfw/lib/tga.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccJx2tYA.o" - no debug information available for "glfw/lib/thread.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccY04Wv3.o" - no debug information available for "glfw/lib/time.c".

warning: Could not find object file "/var/folders/si/siLubu9IHBKduPktsT+tm++++TM/-Tmp-//ccKCmuq8.o" - no debug information available for "glfw/lib/window.c".

. done
linking ... done.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000204000650
[Switching to process 44979]
0x0000000107028623 in ?? ()
(gdb) bt
#0  0x0000000107028623 in ?? ()
#1  0x0000000107026a5f in ?? ()
#2  0x000000010700f2c3 in ?? ()
#3  0x00000001048cca60 in ?? ()
#4  0x058d481c77000000 in ?? ()
(gdb) where
#0  0x0000000107028623 in ?? ()
#1  0x0000000107026a5f in ?? ()
#2  0x000000010700f2c3 in ?? ()
#3  0x00000001048cca60 in ?? ()
#4  0x058d481c77000000 in ?? ()
(gdb)