[Pkg-javascript-devel] Bug#956211: nodejs 10 segfaults when running webpack on gitlab 12.9.2 - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Pirate Praveen praveen at onenetbeyond.org
Wed Apr 8 14:30:01 BST 2020


Package: nodejs
Version: 10.19.0~dfsg-3
Severity: grave
Control: notfound -1 12.13.1~dfsg-1


nodejs 10 crashed (retried again) and on the same machine nodejs 12 
worked.
This has been working upto gitlab 12.8.8 and the failure appeared when 
trying to update to 12.9.2 (just installing gitlab from experimental in 
an lxc container).

Error log:

Webpacking...

<--- Last few GCs --->

[24574:0x115ca70] 107413 ms: Mark-sweep 1198.8 (1412.3) -> 1198.8 
(1394.3) MB, 416.5 / 0.0 ms (average mu = 0.279, current mu = 0.173) 
allocation failure GC in old space requested
[24574:0x115ca70] 107885 ms: Mark-sweep 1198.8 (1394.3) -> 1198.7 
(1377.3) MB, 471.2 / 0.0 ms (average mu = 0.156, current mu = 0.000) 
allocation failure GC in old space requested


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x3a074a953601]
Security context: 0x2f623c1aee11 <JSObject>
    1: byteLength(aka byteLength) [0x2f084ce7fc21] [buffer.js:~508] 
[pc=0x3a074cfbb510](this=0x310243e825d9 
<undefined>,string=0x169dd7c44199 <Very long 
string[17095443]>,encoding=0x2f623c1f2a51 <String[4]: utf8>)
    2: arguments adaptor frame: 3->2
    3: fromString(aka fromString) [0xffe581cb31] [buffer.js:~333] 
[pc=0x3a074c17a1b7](this=0x310243e825d9 <un...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation 
failed - JavaScript heap out of memory
 1: 0x7f7c4fc60ea8 node::Abort() [/lib/x86_64-linux-gnu/libnode.so.64]
 2: 0x7f7c4fc60ef1 [/lib/x86_64-linux-gnu/libnode.so.64]
 3: 0x7f7c4fe89642 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, 
char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.64]
 4: 0x7f7c4fe89894 
v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char 
const*, bool) [/lib/x86_64-linux-gnu/libnode.so.64]
 5: 0x7f7c5021ad32 [/lib/x86_64-linux-gnu/libnode.so.64]
 6: 0x7f7c5022be43 
v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, 
v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.64]
 7: 0x7f7c5022c72c 
v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, 
v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) 
[/lib/x86_64-linux-gnu/libnode.so.64]
 8: 0x7f7c5022e6e5 v8::internal::Heap::AllocateRawWithLigthRetry(int, 
v8::internal::AllocationSpace, v8::internal::AllocationAlignment) 
[/lib/x86_64-linux-gnu/libnode.so.64]
 9: 0x7f7c5022e731 v8::internal::Heap::AllocateRawWithRetryOrFail(int, 
v8::internal::AllocationSpace, v8::internal::AllocationAlignment) 
[/lib/x86_64-linux-gnu/libnode.so.64]
10: 0x7f7c501fb149 
v8::internal::Factory::AllocateRawWithImmortalMap(int, 
v8::internal::PretenureFlag, v8::internal::Map*, 
v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.64]
11: 0x7f7c502036e0 v8::internal::Factory::NewRawTwoByteString(int, 
v8::internal::PretenureFlag) [/lib/x86_64-linux-gnu/libnode.so.64]
12: 0x7f7c5033fec5 
v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, 
v8::internal::PretenureFlag) [/lib/x86_64-linux-gnu/libnode.so.64]
13: 0x7f7c4fe93768 v8::String::Utf8Length() const 
[/lib/x86_64-linux-gnu/libnode.so.64]
14: 0x7f7c4fc7b6d5 [/lib/x86_64-linux-gnu/libnode.so.64]
15: 0x3a074a953601
Aborted
dpkg: error processing package gitlab (--install):



More information about the Pkg-javascript-devel mailing list