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.