middleman / middleman-syntax

Code syntax highlighting plugin via Rouge for Middleman
https://middlemanapp.com
MIT License
179 stars 57 forks source link

middleman-syntax enablement crashes server #2

Closed whitlockjc closed 11 years ago

whitlockjc commented 11 years ago

I have a middleman app (https://github.com/whitlockjc/thoughtspark.org) and it will generate my website perfect but if I try to run the local server and access /node/26, the server will crash and I get an error report on OS X. To reproduce:

You'll see that the server sends an empty response and the server dies. Below is my crash report (I'm using RVM and Ruby 1.9.x, 'x' because I tried this with 1.9.2 and 1.9.3). Also, if you disable the syntax extension, everything runs properly. I'm not sure if the issue with middleman-syntax or if it's related to pygments.rb but I figure if I'm running into it, others might as well. Now for the crash report:

Process:         ruby [83487]
Path:            /Users/USER/*/ruby
Identifier:      ruby
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [86929]

Date/Time:       2012-11-15 15:26:54.764 -0700
OS Version:      Mac OS X 10.7.5 (11G63)
Report Version:  9

Crashed Thread:  4

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
objc[83487]: garbage collection is OFF

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff8cf4ddf2 __select + 10
1   libruby.1.9.1.dylib             0x000000010e901d26 rb_fd_select + 177
2   libruby.1.9.1.dylib             0x000000010e901ecf do_select + 423
3   libruby.1.9.1.dylib             0x000000010e9022f9 rb_thread_fd_select + 184
4   libruby.1.9.1.dylib             0x000000010e7e4bd1 select_internal + 1200
5   libruby.1.9.1.dylib             0x000000010e7e50ee select_call + 73
6   libruby.1.9.1.dylib             0x000000010e7b8ec7 rb_ensure + 151
7   libruby.1.9.1.dylib             0x000000010e7e540a rb_f_select + 257
8   libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
9   libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
10  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
11  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
12  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
13  libruby.1.9.1.dylib             0x000000010e8fa20a rb_iseq_eval + 45
14  libruby.1.9.1.dylib             0x000000010e7baa99 rb_load_internal + 489
15  libruby.1.9.1.dylib             0x000000010e7bad09 rb_f_load + 193
16  libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
17  libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
18  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
19  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
20  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
21  libruby.1.9.1.dylib             0x000000010e8f5656 eval_string_with_cref + 1011
22  libruby.1.9.1.dylib             0x000000010e8f5a3b eval_string + 72
23  libruby.1.9.1.dylib             0x000000010e8f5bc1 rb_f_eval + 388
24  libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
25  libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
26  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
27  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
28  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
29  libruby.1.9.1.dylib             0x000000010e8fa249 rb_iseq_eval_main + 45
30  libruby.1.9.1.dylib             0x000000010e7b7b0b ruby_exec_internal + 193
31  libruby.1.9.1.dylib             0x000000010e7b7c2f ruby_exec_node + 30
32  libruby.1.9.1.dylib             0x000000010e7b7c02 ruby_run_node + 56
33  ruby                            0x000000010e776ee3 main + 79
34  ruby                            0x000000010e776e8c start + 52

Thread 1:
0   libsystem_kernel.dylib          0x00007fff8cf4ddf2 __select + 10
1   libruby.1.9.1.dylib             0x000000010e901d26 rb_fd_select + 177
2   libruby.1.9.1.dylib             0x000000010e901ecf do_select + 423
3   libruby.1.9.1.dylib             0x000000010e9022f9 rb_thread_fd_select + 184
4   libruby.1.9.1.dylib             0x000000010e7e4bd1 select_internal + 1200
5   libruby.1.9.1.dylib             0x000000010e7e50ee select_call + 73
6   libruby.1.9.1.dylib             0x000000010e7b8ec7 rb_ensure + 151
7   libruby.1.9.1.dylib             0x000000010e7e540a rb_f_select + 257
8   libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
9   libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
10  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
11  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
12  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
13  libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
14  libruby.1.9.1.dylib             0x000000010e8f84ce rb_vm_invoke_proc + 253
15  libruby.1.9.1.dylib             0x000000010e8fec65 thread_start_func_2 + 571
16  libruby.1.9.1.dylib             0x000000010e8fda27 thread_start_func_1 + 58
17  libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
18  libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 2:
0   libsystem_kernel.dylib          0x00007fff8cf4dbca __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff8ab64274 _pthread_cond_wait + 840
2   libruby.1.9.1.dylib             0x000000010e8fd6b4 native_cond_timedwait + 37
3   libruby.1.9.1.dylib             0x000000010e8fdd33 native_sleep + 298
4   libruby.1.9.1.dylib             0x000000010e8ffa9e sleep_timeval + 129
5   libruby.1.9.1.dylib             0x000000010e8ffc63 rb_thread_wait_for + 47
6   libruby.1.9.1.dylib             0x000000010e835130 rb_f_sleep + 97
7   libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
8   libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
9   libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
10  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
11  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
12  libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
13  libruby.1.9.1.dylib             0x000000010e8f84ce rb_vm_invoke_proc + 253
14  libruby.1.9.1.dylib             0x000000010e8fec65 thread_start_func_2 + 571
15  libruby.1.9.1.dylib             0x000000010e8fda27 thread_start_func_1 + 58
16  libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
17  libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff8cf4dbca __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff8ab64274 _pthread_cond_wait + 840
2   libruby.1.9.1.dylib             0x000000010e8fd6b4 native_cond_timedwait + 37
3   libruby.1.9.1.dylib             0x000000010e8fdd33 native_sleep + 298
4   libruby.1.9.1.dylib             0x000000010e8ffa9e sleep_timeval + 129
5   libruby.1.9.1.dylib             0x000000010e8ffc63 rb_thread_wait_for + 47
6   libruby.1.9.1.dylib             0x000000010e835130 rb_f_sleep + 97
7   libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
8   libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
9   libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
10  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
11  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
12  libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
13  libruby.1.9.1.dylib             0x000000010e8f84ce rb_vm_invoke_proc + 253
14  libruby.1.9.1.dylib             0x000000010e8fec65 thread_start_func_2 + 571
15  libruby.1.9.1.dylib             0x000000010e8fda27 thread_start_func_1 + 58
16  libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
17  libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 4 Crashed:
0   com.apple.CoreFoundation        0x00007fff95a7fedf __CFInitialize + 63
1   dyld                            0x00007fff6e385e6f ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) + 147
2   dyld                            0x00007fff6e385ae7 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 35
3   dyld                            0x00007fff6e3832e4 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 260
4   dyld                            0x00007fff6e38327d ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 157
5   dyld                            0x00007fff6e38327d ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 157
6   dyld                            0x00007fff6e3840b7 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 59
7   dyld                            0x00007fff6e3791b9 dyld::runInitializers(ImageLoader*) + 97
8   dyld                            0x00007fff6e37f657 dlopen + 540
9   libdyld.dylib                   0x00007fff8df5a95b dlopen + 57
10  libpython2.7.dylib              0x00000001101558c5 _PyImport_GetDynLoadFunc + 359
11  libpython2.7.dylib              0x0000000110141a96 _PyImport_LoadDynamicModule + 101
12  libpython2.7.dylib              0x0000000110140246 0x1100a6000 + 631366
13  libpython2.7.dylib              0x0000000110140454 0x1100a6000 + 631892
14  libpython2.7.dylib              0x0000000110141201 PyImport_ImportModuleLevel + 1137
15  libpython2.7.dylib              0x0000000110125506 0x1100a6000 + 521478
16  libpython2.7.dylib              0x00000001100add32 PyObject_Call + 97
17  libpython2.7.dylib              0x0000000110129c40 PyEval_CallObjectWithKeywords + 180
18  libpython2.7.dylib              0x000000011012f8d9 PyEval_EvalFrameEx + 20871
19  libpython2.7.dylib              0x0000000110130cd8 PyEval_EvalCodeEx + 1996
20  libpython2.7.dylib              0x0000000110130d4d PyEval_EvalCode + 54
21  libpython2.7.dylib              0x000000011013ef3a PyImport_ExecCodeModuleEx + 211
22  libpython2.7.dylib              0x000000011013f482 0x1100a6000 + 627842
23  libpython2.7.dylib              0x0000000110140246 0x1100a6000 + 631366
24  libpython2.7.dylib              0x0000000110140492 0x1100a6000 + 631954
25  libpython2.7.dylib              0x0000000110141201 PyImport_ImportModuleLevel + 1137
26  libpython2.7.dylib              0x0000000110125506 0x1100a6000 + 521478
27  libpython2.7.dylib              0x00000001100add32 PyObject_Call + 97
28  libpython2.7.dylib              0x0000000110129c40 PyEval_CallObjectWithKeywords + 180
29  libpython2.7.dylib              0x000000011012f8d9 PyEval_EvalFrameEx + 20871
30  libpython2.7.dylib              0x0000000110130cd8 PyEval_EvalCodeEx + 1996
31  libpython2.7.dylib              0x0000000110130d4d PyEval_EvalCode + 54
32  libpython2.7.dylib              0x000000011013ef3a PyImport_ExecCodeModuleEx + 211
33  libpython2.7.dylib              0x000000011013f482 0x1100a6000 + 627842
34  libpython2.7.dylib              0x0000000110140246 0x1100a6000 + 631366
35  libpython2.7.dylib              0x0000000110140454 0x1100a6000 + 631892
36  libpython2.7.dylib              0x0000000110141246 PyImport_ImportModuleLevel + 1206
37  libpython2.7.dylib              0x0000000110125506 0x1100a6000 + 521478
38  libpython2.7.dylib              0x00000001100add32 PyObject_Call + 97
39  libpython2.7.dylib              0x0000000110129c40 PyEval_CallObjectWithKeywords + 180
40  libpython2.7.dylib              0x000000011012f8d9 PyEval_EvalFrameEx + 20871
41  libpython2.7.dylib              0x0000000110130cd8 PyEval_EvalCodeEx + 1996
42  libpython2.7.dylib              0x0000000110130d4d PyEval_EvalCode + 54
43  libpython2.7.dylib              0x000000011013ef3a PyImport_ExecCodeModuleEx + 211
44  libpython2.7.dylib              0x000000011013f482 0x1100a6000 + 627842
45  libpython2.7.dylib              0x0000000110140246 0x1100a6000 + 631366
46  libpython2.7.dylib              0x0000000110140454 0x1100a6000 + 631892
47  libpython2.7.dylib              0x0000000110141246 PyImport_ImportModuleLevel + 1206
48  libpython2.7.dylib              0x0000000110125506 0x1100a6000 + 521478
49  libpython2.7.dylib              0x00000001100add32 PyObject_Call + 97
50  libpython2.7.dylib              0x0000000110129c40 PyEval_CallObjectWithKeywords + 180
51  libpython2.7.dylib              0x000000011012f8d9 PyEval_EvalFrameEx + 20871
52  libpython2.7.dylib              0x0000000110130cd8 PyEval_EvalCodeEx + 1996
53  libpython2.7.dylib              0x0000000110130d4d PyEval_EvalCode + 54
54  libpython2.7.dylib              0x000000011013ef3a PyImport_ExecCodeModuleEx + 211
55  libpython2.7.dylib              0x000000011013f482 0x1100a6000 + 627842
56  libpython2.7.dylib              0x0000000110140246 0x1100a6000 + 631366
57  libpython2.7.dylib              0x0000000110140454 0x1100a6000 + 631892
58  libpython2.7.dylib              0x0000000110141246 PyImport_ImportModuleLevel + 1206
59  libpython2.7.dylib              0x0000000110125506 0x1100a6000 + 521478
60  libpython2.7.dylib              0x000000011012dd77 PyEval_EvalFrameEx + 13861
61  libpython2.7.dylib              0x0000000110130df7 0x1100a6000 + 568823
62  libpython2.7.dylib              0x000000011012de0a PyEval_EvalFrameEx + 14008
63  libpython2.7.dylib              0x00000001100c57ac 0x1100a6000 + 128940
64  libpython2.7.dylib              0x000000011012aaea PyEval_EvalFrameEx + 920
65  libpython2.7.dylib              0x0000000110130cd8 PyEval_EvalCodeEx + 1996
66  libpython2.7.dylib              0x00000001100ceabf 0x1100a6000 + 166591
67  libpython2.7.dylib              0x00000001100add32 PyObject_Call + 97
68  ffi_c.bundle                    0x000000010f72c8b4 ffi_call_unix64 + 76
69  ffi_c.bundle                    0x000000010f72c265 ffi_call + 1152
70  ffi_c.bundle                    0x000000010f71e7d3 rbffi_CallFunction + 816
71  ffi_c.bundle                    0x000000010f72311f ffi_trampoline_end + 77
72  libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
73  libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
74  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
75  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
76  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
77  libruby.1.9.1.dylib             0x000000010e8f3077 vm_call0 + 484
78  libruby.1.9.1.dylib             0x000000010e8f4641 rb_call0 + 171
79  libruby.1.9.1.dylib             0x000000010e8f4594 rb_call + 59
80  libruby.1.9.1.dylib             0x000000010e8f48ac rb_funcall2 + 49
81  libruby.1.9.1.dylib             0x000000010e8f0801 vm_method_missing + 180
82  libruby.1.9.1.dylib             0x000000010e8ef6f4 vm_call_method + 2922
83  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
84  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
85  libruby.1.9.1.dylib             0x000000010e8f3077 vm_call0 + 484
86  libruby.1.9.1.dylib             0x000000010e8f4641 rb_call0 + 171
87  libruby.1.9.1.dylib             0x000000010e8f4594 rb_call + 59
88  libruby.1.9.1.dylib             0x000000010e8f4861 rb_funcall + 534
89  redcarpet.bundle                0x000000010f087cd4 rndr_blockcode + 216
90  redcarpet.bundle                0x000000010f084f9c parse_blockcode + 447
91  redcarpet.bundle                0x000000010f08666d parse_block + 582
92  redcarpet.bundle                0x000000010f087380 sd_markdown_render + 677
93  redcarpet.bundle                0x000000010f087ab8 rb_redcarpet_md_render + 401
94  libruby.1.9.1.dylib             0x000000010e8efd17 call_cfunc + 336
95  libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
96  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
97  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
98  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
99  libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
100 libruby.1.9.1.dylib             0x000000010e8f83cf vm_yield + 76
101 libruby.1.9.1.dylib             0x000000010e8f4afc rb_yield_0 + 37
102 libruby.1.9.1.dylib             0x000000010e8f6617 catch_i + 30
103 libruby.1.9.1.dylib             0x000000010e8f67b6 rb_catch_obj + 221
104 libruby.1.9.1.dylib             0x000000010e8f6674 rb_f_catch + 91
105 libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
106 libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
107 libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
108 libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
109 libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
110 libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
111 libruby.1.9.1.dylib             0x000000010e8f83cf vm_yield + 76
112 libruby.1.9.1.dylib             0x000000010e8f4afc rb_yield_0 + 37
113 libruby.1.9.1.dylib             0x000000010e8f4acd rb_yield + 57
114 libruby.1.9.1.dylib             0x000000010e785aa3 rb_ary_each + 146
115 libruby.1.9.1.dylib             0x000000010e8efcf8 call_cfunc + 305
116 libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
117 libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
118 libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
119 libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
120 libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
121 libruby.1.9.1.dylib             0x000000010e8f84ce rb_vm_invoke_proc + 253
122 libruby.1.9.1.dylib             0x000000010e8fec65 thread_start_func_2 + 571
123 libruby.1.9.1.dylib             0x000000010e8fda27 thread_start_func_1 + 58
124 libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
125 libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 5:
0   libsystem_kernel.dylib          0x00007fff8cf4ddf2 __select + 10
1   libruby.1.9.1.dylib             0x000000010e901d26 rb_fd_select + 177
2   libruby.1.9.1.dylib             0x000000010e901ecf do_select + 423
3   libruby.1.9.1.dylib             0x000000010e9022f9 rb_thread_fd_select + 184
4   libruby.1.9.1.dylib             0x000000010e7e4bd1 select_internal + 1200
5   libruby.1.9.1.dylib             0x000000010e7e50ee select_call + 73
6   libruby.1.9.1.dylib             0x000000010e7b8ec7 rb_ensure + 151
7   libruby.1.9.1.dylib             0x000000010e7e540a rb_f_select + 257
8   libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
9   libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
10  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
11  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
12  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
13  libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
14  libruby.1.9.1.dylib             0x000000010e8f84ce rb_vm_invoke_proc + 253
15  libruby.1.9.1.dylib             0x000000010e8fec65 thread_start_func_2 + 571
16  libruby.1.9.1.dylib             0x000000010e8fda27 thread_start_func_1 + 58
17  libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
18  libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 6:
0   libsystem_kernel.dylib          0x00007fff8cf4ddf2 __select + 10
1   libruby.1.9.1.dylib             0x000000010e901d26 rb_fd_select + 177
2   libruby.1.9.1.dylib             0x000000010e901ecf do_select + 423
3   libruby.1.9.1.dylib             0x000000010e9022f9 rb_thread_fd_select + 184
4   libruby.1.9.1.dylib             0x000000010e7e4bd1 select_internal + 1200
5   libruby.1.9.1.dylib             0x000000010e7e50ee select_call + 73
6   libruby.1.9.1.dylib             0x000000010e7b8ec7 rb_ensure + 151
7   libruby.1.9.1.dylib             0x000000010e7e540a rb_f_select + 257
8   libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
9   libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
10  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
11  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
12  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
13  libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
14  libruby.1.9.1.dylib             0x000000010e8f84ce rb_vm_invoke_proc + 253
15  libruby.1.9.1.dylib             0x000000010e8fec65 thread_start_func_2 + 571
16  libruby.1.9.1.dylib             0x000000010e8fda27 thread_start_func_1 + 58
17  libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
18  libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 7:
0   libsystem_kernel.dylib          0x00007fff8cf4ddf2 __select + 10
1   libruby.1.9.1.dylib             0x000000010e901d26 rb_fd_select + 177
2   libruby.1.9.1.dylib             0x000000010e901ecf do_select + 423
3   libruby.1.9.1.dylib             0x000000010e9022f9 rb_thread_fd_select + 184
4   libruby.1.9.1.dylib             0x000000010e7e4bd1 select_internal + 1200
5   libruby.1.9.1.dylib             0x000000010e7e50ee select_call + 73
6   libruby.1.9.1.dylib             0x000000010e7b8ec7 rb_ensure + 151
7   libruby.1.9.1.dylib             0x000000010e7e540a rb_f_select + 257
8   libruby.1.9.1.dylib             0x000000010e8efce0 call_cfunc + 281
9   libruby.1.9.1.dylib             0x000000010e8efb48 vm_call_cfunc + 287
10  libruby.1.9.1.dylib             0x000000010e8eecfc vm_call_method + 370
11  libruby.1.9.1.dylib             0x000000010e8e9945 vm_exec_core + 11533
12  libruby.1.9.1.dylib             0x000000010e8f9876 vm_exec + 147
13  libruby.1.9.1.dylib             0x000000010e8f8348 invoke_block_from_c + 584
14  libruby.1.9.1.dylib             0x000000010e8f84ce rb_vm_invoke_proc + 253
15  libruby.1.9.1.dylib             0x000000010e8fec65 thread_start_func_2 + 571
16  libruby.1.9.1.dylib             0x000000010e8fda27 thread_start_func_1 + 58
17  libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
18  libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 8:
0   libsystem_kernel.dylib          0x00007fff8cf4ddf2 __select + 10
1   libruby.1.9.1.dylib             0x000000010e8fe221 thread_timer + 238
2   libsystem_c.dylib               0x00007fff8ab608bf _pthread_start + 335
3   libsystem_c.dylib               0x00007fff8ab63b75 thread_start + 13

Thread 4 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fd9ade99010  rcx: 0x00007fff6e375738  rdx: 0x00007fff6e3755e0
  rdi: 0x0000000000000003  rsi: 0x00007fff6e3755c0  rbp: 0x000000010fa4efb0  rsp: 0x000000010fa4e780
   r8: 0x00007fff6e3ab1c0   r9: 0x000000010fa4ef58  r10: 0x0000000000000481  r11: 0x0000000034c10d01
  r12: 0x00007fff6e3ab110  r13: 0x00007fff95a7fea0  r14: 0x00007fff95a03c90  r15: 0x000000000000000a
  rip: 0x00007fff95a7fedf  rfl: 0x0000000000000246  cr2: 0x00007fff7baa77ca
Logical CPU: 0

Binary Images:
       0x10e776000 -        0x10e776fff +ruby (??? - ???) <E368E846-742A-3FB0-BCDC-845AB2BACA72> /Users/USER/*/ruby
       0x10e77b000 -        0x10e9a5fef +libruby.1.9.1.dylib (1.9.1 - compatibility 1.9.1) <482E530F-6F41-36AD-904C-A6D2878EB24E> /Users/USER/*/libruby.1.9.1.dylib
       0x10eac3000 -        0x10eac4fff +encdb.bundle (??? - ???) <1DE33307-5914-31AA-BDBB-FE3B689B0D42> /Users/USER/*/encdb.bundle
       0x10eac7000 -        0x10eac8fff +transdb.bundle (??? - ???) <39A28688-87C3-3DFB-95C1-1FC3E26CB591> /Users/USER/*/transdb.bundle
       0x10eacc000 -        0x10eacdfff +etc.bundle (??? - ???) <F4C485F6-39E3-359E-8DBB-270C284B4EE5> /Users/USER/*/etc.bundle
       0x10ead0000 -        0x10ead5fff +pathname.bundle (??? - ???) <B96E8B98-84DF-3484-AD75-B38D2D743B54> /Users/USER/*/pathname.bundle
       0x10eada000 -        0x10eadefff +psych.bundle (??? - ???) <BB17C74B-479D-3437-9243-F4F10485A130> /Users/USER/*/psych.bundle
       0x10eae3000 -        0x10eae8fff +stringio.bundle (??? - ???) <971DD092-1073-348F-9516-2FAF955B76CC> /Users/USER/*/stringio.bundle
       0x10eaec000 -        0x10eaf1fff +strscan.bundle (??? - ???) <73D28ACA-F87A-3FDF-B9C0-E4D685CEDD2A> /Users/USER/*/strscan.bundle
       0x10eaf7000 -        0x10eaf7fff +sha1.bundle (??? - ???) <0B4F9046-84D5-31D6-B310-FA890BE32978> /Users/USER/*/sha1.bundle
       0x10eafa000 -        0x10eafcfff +digest.bundle (??? - ???) <B66C93EA-8AB6-3962-AC96-D2C6B53FA0DB> /Users/USER/*/digest.bundle
       0x10ed00000 -        0x10ed1bfff +libyaml-0.2.dylib (3.2.0 - compatibility 3.0.0) <B9642F83-FB84-35B1-B0BD-90A4C8C8A68A> /Users/USER/*/libyaml-0.2.dylib
       0x10ed23000 -        0x10ed52fe7 +date_core.bundle (??? - ???) <C95A7FF9-5C6A-35B9-B429-DB3C44D2BFCE> /Users/USER/*/date_core.bundle
       0x10ed90000 -        0x10eeebfef +libcrypto.1.0.0.dylib (??? - ???) <7F5E228D-5EED-34AC-9F77-B4DAB3492ACB> /Users/USER/*/libcrypto.1.0.0.dylib
       0x10ef5c000 -        0x10efaffe7 +libssl.1.0.0.dylib (??? - ???) <FC787803-FE38-38AC-93F3-26E461B0F0A6> /Users/USER/*/libssl.1.0.0.dylib
       0x10efca000 -        0x10efcafef +iso_8859_1.bundle (??? - ???) <5A23599C-6A90-3164-8B25-A48C48E0F5E0> /Users/USER/*/iso_8859_1.bundle
       0x10efcd000 -        0x10efd9fff +zlib.bundle (??? - ???) <787BC16D-A8FC-3CFC-8A79-8D4F32522CD4> /Users/USER/*/zlib.bundle
       0x10efdf000 -        0x10f021fff +openssl.bundle (??? - ???) <97D4C53F-F8BF-39D9-91D6-19197CAD4D10> /Users/USER/*/openssl.bundle
       0x10f03e000 -        0x10f03efff +fcntl.bundle (??? - ???) <1004459D-2806-31DC-BBB5-C6CE8FB0CEF8> /Users/USER/*/fcntl.bundle
       0x10f041000 -        0x10f046ff7 +parser.bundle (??? - ???) <EDA9D86E-D618-3446-9FB9-3915BE1371B9> /Users/USER/*/parser.bundle
       0x10f04a000 -        0x10f04bfff +utf_16be.bundle (??? - ???) <2B0AA360-547F-31D3-B0CD-5D75E0CBF0C2> /Users/USER/*/utf_16be.bundle
       0x10f04e000 -        0x10f04ffff +utf_16le.bundle (??? - ???) <36EC9590-D221-3DF5-89CE-1D9AA9C9C237> /Users/USER/*/utf_16le.bundle
       0x10f052000 -        0x10f052fff +utf_32be.bundle (??? - ???) <A1751A4E-8E49-3030-AF28-F5D1122C6E31> /Users/USER/*/utf_32be.bundle
       0x10f055000 -        0x10f055fff +utf_32le.bundle (??? - ???) <1606E71B-3812-30D3-81A7-9810F0679FB1> /Users/USER/*/utf_32le.bundle
       0x10f058000 -        0x10f05efff +generator.bundle (??? - ???) <2AEDC4F2-39F9-3B7C-BF37-C316B6712C9F> /Users/USER/*/generator.bundle
       0x10f063000 -        0x10f074ff7 +bigdecimal.bundle (??? - ???) <283BE2E4-510F-32B8-86D5-CB3EEC8A4406> /Users/USER/*/bigdecimal.bundle
       0x10f079000 -        0x10f079fff +md5.bundle (??? - ???) <0FFEB4C3-62D6-3F7A-849A-602A7D24C7FF> /Users/USER/*/md5.bundle
       0x10f07c000 -        0x10f08dfef +redcarpet.bundle (??? - ???) <F23BE712-2D88-33A2-BE26-F19E4044F708> /Users/USER/*/redcarpet.bundle
       0x10f093000 -        0x10f0b7fff +socket.bundle (??? - ???) <72D30FC9-5498-3EDF-936F-0827B89C95E4> /Users/USER/*/socket.bundle
       0x10f714000 -        0x10f734ff7 +ffi_c.bundle (??? - ???) <3979D304-67B9-3A5F-84F5-3EC97FF178F6> /Users/USER/*/ffi_c.bundle
       0x10f740000 -        0x10f741fff  cStringIO.so (??? - ???) <CFF72182-B413-3F0E-9E85-6357705A064E> /usr/lib/python2.7/lib-dynload/cStringIO.so
       0x10f746000 -        0x10f749fff  strop.so (??? - ???) <C7B344AC-2B19-33D7-A4EC-08AAEED5175F> /usr/lib/python2.7/lib-dynload/strop.so
       0x10f74e000 -        0x10f74ffff  _functools.so (??? - ???) <6EF3FA09-56D3-3706-8AFB-76E6F5AD1353> /usr/lib/python2.7/lib-dynload/_functools.so
       0x10f753000 -        0x10f753fff  _bisect.so (??? - ???) <75BF5441-4BDE-3AD4-B257-66DE10F73886> /usr/lib/python2.7/lib-dynload/_bisect.so
       0x1100a6000 -        0x1101c1ff7  libpython2.7.dylib (2.7.1 - compatibility 2.7.0) <004F03CD-EB9B-3D50-AAE4-5D707D98727D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
       0x110510000 -        0x110516ff7  _socket.so (??? - ???) <6213F0D8-01D2-32B7-A595-5C629FF14402> /usr/lib/python2.7/lib-dynload/_socket.so
       0x11051e000 -        0x110522fff  _ssl.so (??? - ???) <B204A218-0D17-3658-A799-435C7BA3A762> /usr/lib/python2.7/lib-dynload/_ssl.so
       0x110528000 -        0x110529fff  time.so (??? - ???) <DA274462-B33A-33EB-90F7-BB9FB8120A5D> /usr/lib/python2.7/lib-dynload/time.so
       0x11052f000 -        0x110532fff  _collections.so (??? - ???) <8E22D1F8-A82A-3557-B2CB-4B764170AEEB> /usr/lib/python2.7/lib-dynload/_collections.so
       0x110538000 -        0x11053bfff  operator.so (??? - ???) <0E8CABA4-0095-3FE1-A553-7CD80C3065E1> /usr/lib/python2.7/lib-dynload/operator.so
       0x110541000 -        0x110547fff  itertools.so (??? - ???) <A6122009-AA70-3632-BDA1-D915A28E38A9> /usr/lib/python2.7/lib-dynload/itertools.so
       0x110590000 -        0x110591fff  _heapq.so (??? - ???) <CDF90B4F-3045-3AC3-BA39-9273FAB32386> /usr/lib/python2.7/lib-dynload/_heapq.so
       0x110596000 -        0x11059afff  _struct.so (??? - ???) <B2242559-29B9-3109-931D-7A8814CF9D71> /usr/lib/python2.7/lib-dynload/_struct.so
       0x1105a0000 -        0x1105a2ff7  binascii.so (??? - ???) <E06EB9B4-A6F7-3575-B0B5-5C5430350B1F> /usr/lib/python2.7/lib-dynload/binascii.so
       0x1105a6000 -        0x1105a6fff  _scproxy.so (??? - ???) <74EF3D5C-7751-35A9-A479-E41AB4DB7EEE> /usr/lib/python2.7/lib-dynload/_scproxy.so
    0x7fff6e376000 -     0x7fff6e3aabaf  dyld (195.6 - ???) <0CD1B35B-A28F-32DA-B72E-452EAD609613> /usr/lib/dyld
    0x7fff8a2d2000 -     0x7fff8a2d8ff7  libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
    0x7fff8a747000 -     0x7fff8a752ff7  libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
    0x7fff8ab12000 -     0x7fff8abeffef  libsystem_c.dylib (763.13.0 - compatibility 1.0.0) <41B43515-2806-3FBC-ACF1-A16F35B7E290> /usr/lib/system/libsystem_c.dylib
    0x7fff8c073000 -     0x7fff8c0aefff  libsystem_info.dylib (??? - ???) <35F90252-2AE1-32C5-8D34-782C614D9639> /usr/lib/system/libsystem_info.dylib
    0x7fff8c1fe000 -     0x7fff8c20cfff  libdispatch.dylib (187.10.0 - compatibility 1.0.0) <8E03C652-922A-3399-93DE-9EA0CBFA0039> /usr/lib/system/libdispatch.dylib
    0x7fff8ceca000 -     0x7fff8ced0fff  libmacho.dylib (800.0.0 - compatibility 1.0.0) <165514D7-1BFA-38EF-A151-676DCD21FB64> /usr/lib/system/libmacho.dylib
    0x7fff8cf37000 -     0x7fff8cf57fff  libsystem_kernel.dylib (1699.32.7 - compatibility 1.0.0) <66C9F9BD-C7B3-30D4-B1A0-03C8A6392351> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8d350000 -     0x7fff8d351ff7  libsystem_sandbox.dylib (??? - ???) <2A09E4DA-F47C-35CB-B70C-E0492BA9F20E> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8df59000 -     0x7fff8df5dfff  libdyld.dylib (195.5.0 - compatibility 1.0.0) <380C3F44-0CA7-3514-8080-46D1C9DF4FCD> /usr/lib/system/libdyld.dylib
    0x7fff8e55a000 -     0x7fff8e564ff7  liblaunch.dylib (392.39.0 - compatibility 1.0.0) <8C235D13-2928-30E5-9E12-2CC3D6324AE2> /usr/lib/system/liblaunch.dylib
    0x7fff8e9ba000 -     0x7fff8e9c2fff  libsystem_dnssd.dylib (??? - ???) <584B321E-5159-37CD-B2E7-82E069C70AFB> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8f206000 -     0x7fff8f208fff  com.apple.TrustEvaluationAgent (2.0 - 1) <1F31CAFF-C1C6-33D3-94E9-11B721761DDF> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff8feb6000 -     0x7fff8feeffe7  libssl.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <79AAEC98-1258-3DA4-B1C0-4120049D390B> /usr/lib/libssl.0.9.8.dylib
    0x7fff8ff97000 -     0x7fff8ff9efff  libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <0AB51EE2-E914-358C-AC19-47BC024BDAE7> /usr/lib/system/libcopyfile.dylib
    0x7fff908a0000 -     0x7fff908a9ff7  libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
    0x7fff9132c000 -     0x7fff9132dfff  libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff9197c000 -     0x7fff91a60e5f  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <871E688B-CF57-3BC7-80D6-F6476DFF109B> /usr/lib/libobjc.A.dylib
    0x7fff92245000 -     0x7fff92262fff  libxpc.dylib (77.19.0 - compatibility 1.0.0) <9F57891B-D7EF-3050-BEDD-21E7C6668248> /usr/lib/system/libxpc.dylib
    0x7fff92946000 -     0x7fff92992ff7  com.apple.SystemConfiguration (1.11.3 - 1.11) <0A7F1982-B4EA-3424-A0C7-FE46C6224F03> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff92cce000 -     0x7fff92ed0fff  libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <0176782F-9526-3905-813A-7A5676EC2C86> /usr/lib/libicucore.A.dylib
    0x7fff9352b000 -     0x7fff9353dff7  libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
    0x7fff937af000 -     0x7fff937b0ff7  libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
    0x7fff937f0000 -     0x7fff937f2fff  libquarantine.dylib (36.7.0 - compatibility 1.0.0) <8D9832F9-E4A9-38C3-B880-E5210B2353C7> /usr/lib/system/libquarantine.dylib
    0x7fff937f3000 -     0x7fff937f4fff  libdnsinfo.dylib (395.11.0 - compatibility 1.0.0) <853BAAA5-270F-3FDC-B025-D448DB72E1C3> /usr/lib/system/libdnsinfo.dylib
    0x7fff93983000 -     0x7fff939b0fe7  libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <7BEBB139-50BB-3112-947A-F4AA168F991C> /usr/lib/libSystem.B.dylib
    0x7fff93d2a000 -     0x7fff93d78fff  libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
    0x7fff93d79000 -     0x7fff93d7efff  libcache.dylib (47.0.0 - compatibility 1.0.0) <1571C3AB-BCB2-38CD-B3B2-C5FC3F927C6A> /usr/lib/system/libcache.dylib
    0x7fff9416f000 -     0x7fff941e5ff7  libc++.1.dylib (28.4.0 - compatibility 1.0.0) <A24FC3DA-4FFA-3DD2-9DCC-2B8D1B3BF97C> /usr/lib/libc++.1.dylib
    0x7fff94247000 -     0x7fff94353fff  libcrypto.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <3A8E1F89-5E26-3C8B-B538-81F5D61DBF8A> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff94354000 -     0x7fff94354fff  libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
    0x7fff945c4000 -     0x7fff945c9fff  libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
    0x7fff949a0000 -     0x7fff949a4fff  libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
    0x7fff959aa000 -     0x7fff959abfff  libunc.dylib (24.0.0 - compatibility 1.0.0) <337960EE-0A85-3DD0-A760-7134CF4C0AFF> /usr/lib/system/libunc.dylib
    0x7fff95a03000 -     0x7fff95bd7ff7  com.apple.CoreFoundation (6.7.2 - 635.21) <62A3402E-A4E7-391F-AD20-1EF20236CE1B> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff95cd1000 -     0x7fff95cd2ff7  libremovefile.dylib (21.1.0 - compatibility 1.0.0) <739E6C83-AA52-3C6C-A680-B37FE2888A04> /usr/lib/system/libremovefile.dylib
    0x7fff96e33000 -     0x7fff96e38ff7  libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
    0x7fff96f0a000 -     0x7fff96f7dfff  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
    0x7fff96f8c000 -     0x7fff96fceff7  libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <BB770C22-8C57-365A-8716-4A3C36AE7BFB> /usr/lib/system/libcommonCrypto.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 201900
    thread_create: 2
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=66.8M resident=55.3M(83%) swapped_out_or_unallocated=11.5M(17%)
Writable regions: Total=118.4M written=49.5M(42%) resident=72.8M(61%) swapped_out=0K(0%) unallocated=45.6M(39%)

REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                            103.8M
MALLOC guard page                    32K
MALLOC_LARGE (reserved)            2304K        reserved VM address space (unallocated)
STACK GUARD                        56.0M
Stack                              11.6M
VM_ALLOCATE                           8K
__DATA                             2052K
__LINKEDIT                         50.3M
__TEXT                             16.5M
__UNICODE                           544K
shared memory                        12K
===========                      =======
TOTAL                             243.0M
TOTAL, minus reserved VM space    240.8M
whitlockjc commented 11 years ago

This bug has become such a pain that in my project, I have middleman-syntax disabled by default and only enabled during the build step. So you'll need to activate the middleman-syntax extension to reproduce.

bhollis commented 11 years ago

That's a bummer. I've seen crashes from pygments.rb a few times (mostly related to not explicitly specifying a language and letting it try to autodetect). You could try middleman-syntax from master and the newer pygments.rb, it might work better. Let me know if you figure anything else out.

whitlockjc commented 11 years ago

It seems the problem with pygments.rb seg faulting with a null language was fixed in pygments.rb 0.3.0. I'm new to Ruby development so I'm not sure how to override the dependencies in the middleman-syntax gemspec so that I could even try to see if that fixes it. If it doesn't, we could just default to 'text' when the user doesn't specify a language instead of relying on pygments.rb to intelligently choose the language. Let me know if I can help.

nathanlong commented 11 years ago

I've also experienced a simliar issue. I'm using the following gemfile

source :rubygems

gem "middleman", "~>3.0.6"
gem "sass-media_query_combiner"
gem "middleman-blog"

# For feed.xml.builder
gem "builder", "~> 3.0.0"

# For code syntax
gem "redcarpet"
gem "middleman-syntax"
gem "pygments.rb", "~>0.2.13"

and this config.rb

###
# Compass
###

# Combine media queries at bottom of document
require 'sass-media_query_combiner'

# Change Compass configuration
compass_config do |config|
  config.output_style = :expanded
end

set :css_dir, 'css'
set :js_dir, 'js'
set :images_dir, 'img'
activate :directory_indexes

page "/feed.xml", :layout => false

# Build-specific configuration
configure :build do
  # For example, change the Compass output style for deployment
  # activate :minify_css

  # Minify Javascript on build
  # activate :minify_javascript

  # Enable cache buster
  # activate :cache_buster

  # Use relative URLs
  activate :relative_assets

  # Compress PNGs after build
  # First: gem install middleman-smusher
  # require "middleman-smusher"
  # activate :smusher

  # Or use a different image path
  # set :http_path, "/Content/images/"
end

# Blog Settings

activate :blog do |blog|
  blog.prefix = "blog"
  blog.permalink = ":year/:title.html"
  # blog.sources = ":year-:month-:day-:title.html"
  # blog.taglink = "tags/:tag.html"
  # blog.layout = "layout"
  # blog.summary_separator = /(READMORE)/
  # blog.summary_length = 250
  # blog.year_link = ":year.html"
  # blog.month_link = ":year/:month.html"
  # blog.day_link = ":year/:month/:day.html"
  # blog.default_extension = ".md"

  blog.tag_template = "tag.html"
  blog.calendar_template = "calendar.html"

  # blog.paginate = true
  # blog.per_page = 10
  # blog.page_link = "page/:num"
end

activate :syntax

set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true

I'm running rvm 1.16.17 with ruby 1.9.3p286

and I have the following gems installed:

*** LOCAL GEMS ***

activesupport (3.2.9, 3.2.8)
blankslate (3.1.2)
builder (3.0.4)
bundler (1.2.1)
chunky_png (1.2.6)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
compass (0.12.2)
compass-rgbapng (0.1.1)
execjs (1.4.0)
ffi (1.2.0, 1.1.5, 1.0.11)
fssm (0.2.9)
haml (3.1.7)
hike (1.2.1)
http_router (0.10.2)
i18n (0.6.1)
json (1.7.5)
listen (0.5.3)
localtunnel (0.3)
maruku (0.6.1)
middleman (3.0.6)
middleman-blog (3.1.1)
middleman-core (3.0.6)
middleman-more (3.0.6)
middleman-sprockets (3.0.4)
middleman-syntax (1.0.0)
multi_json (1.3.7)
net-ssh (2.6.1)
net-ssh-gateway (1.1.0)
padrino-core (0.10.7)
padrino-helpers (0.10.7)
posix-spawn (0.3.6)
pygments.rb (0.3.2, 0.2.13)
rack (1.4.1)
rack-protection (1.2.0)
rack-test (0.6.2)
rake (0.9.2.2)
rb-fsevent (0.9.2)
rb-inotify (0.8.8)
redcarpet (2.2.2)
rubygems-bundler (1.1.0)
rubypython (0.5.3)
rvm (1.11.3.5)
sass (3.2.3, 3.2.1)
sass-media_query_combiner (0.0.2)
sheet (0.2.2)
sinatra (1.3.3)
sprockets (2.4.5)
sprockets-sass (0.8.0)
syntax (1.0.0)
thor (0.15.4)
tilt (1.3.3)
tzinfo (0.3.35)
uglifier (1.2.7)
url_mount (0.2.1)
yajl-ruby (1.1.0)

Running middleman server from the root of the project will work properly, UNTIL you hit a blog page or any page that contains code highlighting, at which point the server dies.

It does work when the :activate syntax is placed into the build options.

Not really sure what's going on, but I'd be happy to supply some more info if you need it.

bhollis commented 11 years ago

middleman-syntax 1.0.1 has been released which requires the newer pygments.rb. Should work fine with that.

nathanlong commented 11 years ago

Worked like a charm. Thanks!