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

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

问题描述

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

gulp 任务布局是这样派生的:https://github.com/notbrain/viceroy

我真的不知道从哪里开始找出罪魁祸首,除了减少要运行的任务集,直到我只通过手表和浏览器同步运行单个任务时遇到问题.

所以,如果其他人看到这个问题,这主要是请求帮助

<块引用>

中止陷阱 6 示例

[BS] 文件已更改:build/views/admin/dashboard/adminSailingCalls.html[BS] 文件已更改:build/views/admin/dashboard/adminSailingLanes.html[BS] 文件已更改:build/views/admin/dashboard/adminUsers.html[BS] 文件已更改:build/views/admin/dashboard/index.html[16:58:32] 开始'html-index'...[16:58:32] 1.3 毫秒后完成html-index"[16:58:32] 开始'html'...[16:58:33] 74 毫秒后完成html"[16:58:33] 开始'html-index'...[16:58:33] 1.88 毫秒后完成html-index"[16:58:33] 开始'html'...gulp(79700,0x1094e8000) malloc: *** 对象 0x108f19bc0 错误:释放对象的校验和不正确 - 对象在释放后可能被修改.*** 在 malloc_error_break 中设置断点进行调试中止陷阱:6

<块引用>

段错误:11 个示例:

[BS] 文件已更改:build/views/sailingsSearchStep1.html[BS] 文件已更改:build/views/sailingsSearchStep2.html[BS] 文件已更改:build/views/sailingsSearchStep3Container.html[BS] 文件已更改:build/views/sailingsSearchStep3Weight.html[BS] 文件已更改:build/views/searchSubmitted.html[BS] 文件已更改:build/views/signup.html[BS] 文件已更改:build/views/signupStep1.html[BS] 文件已更改:build/views/signupStep2.html[BS] 文件已更改:build/views/signupStep3.html分段错误:11

当 gulp-sass 尝试解析空的 .scss 文件时,我看到了类似最终结果的问题,但我们使用的是 .less.非常感谢任何指导 - 虽然上面的项目仍然可用,但我已经启动了另一个文件明显更少的辅助项目,但我看到 Segfault: 11 错误如此之多,以至于我正在考虑转移到基于 npm 脚本的工作流程算了.

解决方案

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

npm install --save-dev gulp

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.

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

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 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

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.

解决方案

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 Yosemite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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