gulp Segmentation fault:11和Abort trap:6 OSX Yosemite

时间:2015-07-15 18:06:34

标签: node.js macos gulp browser-sync

我们一直在运行一系列任务,使用browser-sync和gulp.watch在文件更改时重新加载浏览器。我越来越多地在2个不同的项目中间歇性地看到越来越多的Segmentation fault: 11Abort trap: 6

gulp任务布局是这个的衍生物:https://github.com/notbrain/viceroy

我真的不知道在哪里开始查明罪魁祸首,除了削减要运行的任务集,直到遇到只通过监视和浏览器同步运行单个任务的问题时。

所以,如果有其他人看过这个问题,这主要是求助

  

中止陷阱6示例

[BS] File changed: build/views/admin/dashboard/adminSailingCalls.html
[BS] File changed: build/views/admin/dashboard/adminSailingLanes.html
[BS] File changed: build/views/admin/dashboard/adminUsers.html
[BS] File changed: build/views/admin/dashboard/index.html
[16:58:32] Starting 'html-index'...
[16:58:32] Finished 'html-index' after 1.3 ms
[16:58:32] Starting 'html'...
[16:58:33] Finished 'html' after 74 ms
[16:58:33] Starting 'html-index'...
[16:58:33] Finished 'html-index' after 1.88 ms
[16:58:33] Starting 'html'...
gulp(79700,0x1094e8000) malloc: *** error for object 0x108f19bc0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
  

Segfault:11例:

[BS] File changed: build/views/sailingsSearchStep1.html
[BS] File changed: build/views/sailingsSearchStep2.html
[BS] File changed: build/views/sailingsSearchStep3Container.html
[BS] File changed: build/views/sailingsSearchStep3Weight.html
[BS] File changed: build/views/searchSubmitted.html
[BS] File changed: build/views/signup.html
[BS] File changed: build/views/signupStep1.html
[BS] File changed: build/views/signupStep2.html
[BS] File changed: build/views/signupStep3.html
Segmentation fault: 11

当gulp-sass尝试解析空的.scss文件时,我看到了类似最终结果的问题,但我们正在使用.less。任何指导都非常感谢 - 虽然上面的项目仍然可用,但我已经启动了另一个项目,文件明显更少,但我看到了Segfault: 11错误,以至于我正在考虑迁移到{{3}解决它。

1 个答案:

答案 0 :(得分:0)

在项目文件夹中本地重新安装gulp对我有帮助,不知道为什么。但是,由于它基本上是无风险的,因此可以尝试一下:

npm install --save-dev gulp