gulp分段错误:11和中止陷阱:6 OSX优胜美地 [英] gulp Segmentation fault: 11 and Abort trap: 6 OSX Yosemite

查看:132
本文介绍了gulp分段错误:11和中止陷阱:6 OSX优胜美地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

We've been running on gulp with a set of tasks, with browser-sync and gulp.watch to reload the browser when files are changed. Increasingly I've been seeing more and more Segmentation fault: 11 and Abort trap: 6 intermittently on 2 different projects.

gulp任务布局是以下内容的派生形式: https://github.com/notbrain/viceroy

The gulp task layout is a derivative of this: https://github.com/notbrain/viceroy

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

I really have no idea where to start pinpointing the culprit besides whittling down the set of tasks to run until I run into the issue when only running a single task via watch and browser-sync.

因此,这主要是如果其他人看到了此问题,请寻求帮助

So, this is mainly a plea for help if someone else has seen this issue

中止陷阱6示例

Abort trap 6 example

[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个示例:

Segfault: 11 example:

[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错误,以至于我正在考虑迁移到

I've seen issues with similar end results when gulp-sass tried to parse empty .scss files, but we are using .less. Any guidance is greatly appreciated - while the project above is still usable, I have started another side project that has significantly fewer files but I see the Segfault: 11 bug so much that I'm considering a move to an npm script based workflow to work it out.

推荐答案

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

Reinstalling gulp locally in project folder helped for me, not sure why. However, since it's basically risk-free, one can give it a try:

npm install --save-dev gulp

这篇关于gulp分段错误:11和中止陷阱:6 OSX优胜美地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆