View Issue Details

IDProjectCategoryView StatusLast Update
0005249Rocky-Linux-9nodejspublic2024-01-04 20:47
ReporterYurii B Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status newResolutionopen 
Summary0005249: Node.js Application Crashes with Memory Leak on Rocky Linux 9.3
DescriptionI'm encountering a critical issue where my Node.js application crashes after running for a period due to a memory leak. This problem persists across Node.js versions 18.19.0 and 18.18.2 on Rocky Linux 9.3 with glibc 2.34. The same application runs smoothly on Debian/CentOS with glibc 2.28. The correlation with glibc version suggests a potential compatibility problem, but the exact cause is unclear.
Additional InformationInstead of stable memory usage, the Node.js application on Rocky Linux 9.3 shows a continuous increase in memory consumption over time, which is not observed on Debian systems. Eventually, this escalating memory usage leads to a crash of the application. This behavior is unexpected and indicates a potential issue in memory management, possibly linked to environmental differences between Rocky Linux 9.3 and Debian, particularly concerning the glibc version.

Call stacks from core dump when process crashed:

threadCount: 21
thread: 0 - stack range: 0x00007fff334ce000-0x00007fff334ef000, size: 132 kB
0x00007fff334df9d0 0x000077dd5f6a154c libc.so.6!+0x7954c
(further unwinding failed, error: -8)
thread: 1 - stack range: 0x000077dd6006a000-0x000077dd60078000, size: 56 kB
0x000077dd60070c90 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 2 - stack range: 0x000077dd46400000-0x000077dd46cfa000, size: 9192 kB
0x000077dd46bfe9b0 0x000077dd5f69c39a libc.so.6!+0x7439a
0x000077dd46bfe9b8 0x000077dd46bfea00 !+0x0
thread: 3 - stack range: 0x000077dd5e5ff000-0x000077dd5edff000, size: 8192 kB
0x000077dd5edfd990 0x0000000000fe56bf node!v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::SweepingMode, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.177]+0xcff
0x000077dd5edfdb90 0x0000000000fe7462 node!v8::internal::Sweeper::ParallelSweepPage(v8::internal::Page*, v8::internal::AllocationSpace, v8::internal::Sweeper::SweepingMode) [clone .constprop.176]+0x92
0x000077dd5edfdbe0 0x0000000000fe7f49 node!v8::internal::Sweeper::SweeperJob::Run(v8::JobDelegate*)+0x2b9
0x000077dd5edfdca0 0x0000000001aeec34 node!v8::platform::DefaultJobWorker::Run()+0x84
0x000077dd5edfdcf0 0x0000000000c01625 node!node::(anonymous namespace)::PlatformWorkerThread(void*)+0x195
0x000077dd5edfdd60 0x000077dd5f69f802 libc.so.6!+0x77802
(further unwinding failed, error: -3)
thread: 4 - stack range: 0x000077dd5ee00000-0x000077dd5f628000, size: 8352 kB
0x000077dd5f5fbb70 0x000077dd5f74e84e libc.so.6!+0x12684e
0x000077dd5f5fbb80 0x0000000001671c7e node!uv_run+0x14e
0x000077dd5f5fed10 0x0000000000c061ab node!node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start()::{lambda(void*)#1}::_FUN(void*)+0x7b
0x000077dd5f5fed60 0x000077dd5f69f802 libc.so.6!+0x77802
(further unwinding failed, error: -3)
thread: 5 - stack range: 0x000077dd443fc000-0x000077dd44bfc000, size: 8192 kB
0x000077dd44bfa7b0 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 6 - stack range: 0x000077dd44bfd000-0x000077dd453fd000, size: 8192 kB
0x000077dd453fb7b0 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 7 - stack range: 0x000077dd5d5fd000-0x000077dd5ddfd000, size: 8192 kB
0x000077dd5ddfbbe0 0x000077dd5f69c39a libc.so.6!+0x7439a
0x000077dd5ddfbbe8 0x000077dd47e7a800 !+0x0
thread: 8 - stack range: 0x000077dd35ffd000-0x000077dd367fd000, size: 8192 kB
0x000077dd367fb960 0x000077dd5f69c39a libc.so.6!+0x7439a
0x000077dd367fb968 0x000077dd30000f30 !+0x0
thread: 9 - stack range: 0x000077dd17800000-0x000077dd1808a000, size: 8744 kB
0x000077dd17ffec20 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 10 - stack range: 0x000077dd36fff000-0x000077dd377ff000, size: 8192 kB
0x000077dd377fdc20 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 11 - stack range: 0x000077dd5cdfc000-0x000077dd5d5fc000, size: 8192 kB
0x000077dd5d5fa988 0x00000000011a8dc4 node!v8::internal::HeapObject::SizeFromMap(v8::internal::Map) const+0x4
0x000077dd5d5fa990 0x0000000000fe55dd node!v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::SweepingMode, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.177]+0xc1d
0x000077dd5d5fab90 0x0000000000fe7462 node!v8::internal::Sweeper::ParallelSweepPage(v8::internal::Page*, v8::internal::AllocationSpace, v8::internal::Sweeper::SweepingMode) [clone .constprop.176]+0x92
0x000077dd5d5fabe0 0x0000000000fe7f49 node!v8::internal::Sweeper::SweeperJob::Run(v8::JobDelegate*)+0x2b9
0x000077dd5d5faca0 0x0000000001aeec34 node!v8::platform::DefaultJobWorker::Run()+0x84
0x000077dd5d5facf0 0x0000000000c01625 node!node::(anonymous namespace)::PlatformWorkerThread(void*)+0x195
0x000077dd5d5fad60 0x000077dd5f69f802 libc.so.6!+0x77802
0x000077dd5d5fad68 0x0000000000fe55dd node!v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::SweepingMode, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.177]+0xc1d
(further unwinding failed, error: -3)
thread: 12 - stack range: 0x000077dd5ddfe000-0x000077dd5e5fe000, size: 8192 kB
0x000077dd5e5fc990 0x0000000000fe5614 node!v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::SweepingMode, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.177]+0xc54
0x000077dd5e5fcb90 0x0000000000fe7462 node!v8::internal::Sweeper::ParallelSweepPage(v8::internal::Page*, v8::internal::AllocationSpace, v8::internal::Sweeper::SweepingMode) [clone .constprop.176]+0x92
0x000077dd5e5fcbe0 0x0000000000fe7f49 node!v8::internal::Sweeper::SweeperJob::Run(v8::JobDelegate*)+0x2b9
0x000077dd5e5fcca0 0x0000000001aeec34 node!v8::platform::DefaultJobWorker::Run()+0x84
0x000077dd5e5fccf0 0x0000000000c01625 node!node::(anonymous namespace)::PlatformWorkerThread(void*)+0x195
0x000077dd5e5fcd60 0x000077dd5f69f802 libc.so.6!+0x77802
(further unwinding failed, error: -3)
thread: 13 - stack range: 0x000077dd347fa000-0x000077dd34ffa000, size: 8192 kB
0x000077dd34ff8c20 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 14 - stack range: 0x000077dd16fff000-0x000077dd177ff000, size: 8192 kB
0x000077dd177fdc20 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 15 - stack range: 0x000077dd45bff000-0x000077dd463ff000, size: 8192 kB
0x000077dd463fd9b0 0x000077dd5f69c39a libc.so.6!+0x7439a
0x000077dd463fd9b8 0x000077dd463fda00 !+0x0
thread: 16 - stack range: 0x000077dd453fe000-0x000077dd45bfe000, size: 8192 kB
0x000077dd45bfc8e0 0x000077dd5f69c39a libc.so.6!+0x7439a
0x000077dd45bfc8e8 0x000077dd240272c0 !+0x0
thread: 17 - stack range: 0x000077dd37800000-0x000077dd38021000, size: 8324 kB
0x000077dd37ffe7b0 0x000077dd5f69c39a libc.so.6!+0x7439a
0x000077dd37ffe7b8 0x000077dd37ffe870 !+0x0
thread: 18 - stack range: 0x000077dd357fc000-0x000077dd35ffc000, size: 8192 kB
0x000077dd35ffa7b0 0x000077dd5f69c39a libc.so.6!+0x7439a
(further unwinding failed, error: -3)
thread: 19 - stack range: 0x000077dd34ffb000-0x000077dd357fb000, size: 8192 kB
0x000077dd357f9980 0x000077dd5f69c39a libc.so.6!+0x7439a
0x000077dd357f9988 0x00000000053a8118 !+0x0
thread: 20 - stack range: 0x000077dd16bfe000-0x000077dd16ffe000, size: 4096 kB
0x000077dd16ff95e0 0x000077dd5f74e84e libc.so.6!+0x12684e
0x000077dd16ff95f0 0x0000000001671c7e node!uv_run+0x14e
0x000077dd16ffc780 0x0000000000ad1a8d node!node::SpinEventLoop(node::Environment*)+0x14d
0x000077dd16ffc830 0x0000000000c648da node!node::worker::Worker::Run()+0x11da
0x000077dd16ffcd20 0x0000000000c64eb8 node!node::worker::Worker::StartThread(v8::FunctionCallbackInfov8::Value const&)::{lambda(void*)#1}::_FUN(void*)+0x38
0x000077dd16ffcd60 0x000077dd5f69f802 libc.so.6!+0x77802
(further unwinding failed, error: -3)

mapped files:
0000000000400000-0000000005104000 0 /home/nodejs/.nvm/versions/node/v18.19.0/bin/node (GNU Build-Id: 5699991a211c9ef19f6b34e6b0417929d3a6468f)
0000000005304000-0000000005307000 4d04 /home/nodejs/.nvm/versions/node/v18.19.0/bin/node (GNU Build-Id: 5699991a211c9ef19f6b34e6b0417929d3a6468f)
0000000005307000-0000000005322000 4d07 /home/nodejs/.nvm/versions/node/v18.19.0/bin/node (GNU Build-Id: 5699991a211c9ef19f6b34e6b0417929d3a6468f)
000077dd46c00000-000077dd46cfa000 0 /opt/dynatrace/oneagent/agent/bin/1.279.166.20231201-090952/linux-x86-64/oneagentnode_108.node (1.279.166.20231201-090952)
000077dd46cfa000-000077dd47933000 fa /opt/dynatrace/oneagent/agent/bin/1.279.166.20231201-090952/linux-x86-64/oneagentnode_108.node (1.279.166.20231201-090952)
000077dd47933000-000077dd47cdf000 d33 /opt/dynatrace/oneagent/agent/bin/1.279.166.20231201-090952/linux-x86-64/oneagentnode_108.node (1.279.166.20231201-090952)
000077dd47cdf000-000077dd47ce0000 10df /opt/dynatrace/oneagent/agent/bin/1.279.166.20231201-090952/linux-x86-64/oneagentnode_108.node (1.279.166.20231201-090952)
000077dd47ce0000-000077dd47d71000 10df /opt/dynatrace/oneagent/agent/bin/1.279.166.20231201-090952/linux-x86-64/oneagentnode_108.node (1.279.166.20231201-090952)
000077dd47d71000-000077dd47d79000 1170 /opt/dynatrace/oneagent/agent/bin/1.279.166.20231201-090952/linux-x86-64/oneagentnode_108.node (1.279.166.20231201-090952)
000077dd5f600000-000077dd5f628000 0 /usr/lib64/libc.so.6 (GNU Build-Id: 65a29d0b1cd88c15b44cfda562dd904e2cf35435)
000077dd5f628000-000077dd5f79d000 28 /usr/lib64/libc.so.6 (GNU Build-Id: 65a29d0b1cd88c15b44cfda562dd904e2cf35435)
000077dd5f79d000-000077dd5f7f5000 19d /usr/lib64/libc.so.6 (GNU Build-Id: 65a29d0b1cd88c15b44cfda562dd904e2cf35435)
000077dd5f7f5000-000077dd5f7f6000 1f5 /usr/lib64/libc.so.6 (GNU Build-Id: 65a29d0b1cd88c15b44cfda562dd904e2cf35435)
000077dd5f7f6000-000077dd5f7fa000 1f5 /usr/lib64/libc.so.6 (GNU Build-Id: 65a29d0b1cd88c15b44cfda562dd904e2cf35435)
000077dd5f7fa000-000077dd5f7fc000 1f9 /usr/lib64/libc.so.6 (GNU Build-Id: 65a29d0b1cd88c15b44cfda562dd904e2cf35435)
000077dd5fa00000-000077dd5fa99000 0 /usr/lib64/libstdc++.so.6.0.29 (GNU Build-Id: 5657ddf16af349072a8656dd9e15cd4f7255d39d)
000077dd5fa99000-000077dd5fba3000 99 /usr/lib64/libstdc++.so.6.0.29 (GNU Build-Id: 5657ddf16af349072a8656dd9e15cd4f7255d39d)
000077dd5fba3000-000077dd5fc15000 1a3 /usr/lib64/libstdc++.so.6.0.29 (GNU Build-Id: 5657ddf16af349072a8656dd9e15cd4f7255d39d)
000077dd5fc15000-000077dd5fc16000 215 /usr/lib64/libstdc++.so.6.0.29 (GNU Build-Id: 5657ddf16af349072a8656dd9e15cd4f7255d39d)
000077dd5fc16000-000077dd5fc23000 215 /usr/lib64/libstdc++.so.6.0.29 (GNU Build-Id: 5657ddf16af349072a8656dd9e15cd4f7255d39d)
000077dd5fc23000-000077dd5fc24000 222 /usr/lib64/libstdc++.so.6.0.29 (GNU Build-Id: 5657ddf16af349072a8656dd9e15cd4f7255d39d)
000077dd5fe00000-000077dd5fe08000 0 /usr/lib64/liboneagentproc.so (1.279.166.20231201-090952)
000077dd5fe08000-000077dd5fea3000 8 /usr/lib64/liboneagentproc.so (1.279.166.20231201-090952)
000077dd5fea3000-000077dd5fede000 a3 /usr/lib64/liboneagentproc.so (1.279.166.20231201-090952)
000077dd5fede000-000077dd5fedf000 de /usr/lib64/liboneagentproc.so (1.279.166.20231201-090952)
000077dd5fedf000-000077dd5fee3000 de /usr/lib64/liboneagentproc.so (1.279.166.20231201-090952)
000077dd5fee3000-000077dd5fee4000 e2 /usr/lib64/liboneagentproc.so (1.279.166.20231201-090952)
000077dd6005a000-000077dd6005f000 0 /dev/zero (deleted) (n/a)
000077dd6005f000-000077dd60064000 0 /dev/zero (deleted) (n/a)
000077dd60064000-000077dd60065000 0 /usr/lib64/librt.so.1 (GNU Build-Id: 69e09be09c884e2a502054c8775e831d0efd6ae6)
000077dd60065000-000077dd60066000 1 /usr/lib64/librt.so.1 (GNU Build-Id: 69e09be09c884e2a502054c8775e831d0efd6ae6)
000077dd60066000-000077dd60067000 2 /usr/lib64/librt.so.1 (GNU Build-Id: 69e09be09c884e2a502054c8775e831d0efd6ae6)
000077dd60067000-000077dd60068000 2 /usr/lib64/librt.so.1 (GNU Build-Id: 69e09be09c884e2a502054c8775e831d0efd6ae6)
000077dd60068000-000077dd60069000 3 /usr/lib64/librt.so.1 (GNU Build-Id: 69e09be09c884e2a502054c8775e831d0efd6ae6)
000077dd60077000-000077dd60078000 0 /usr/lib64/libpthread.so.0 (GNU Build-Id: 224429e5c0fefcd1ab356a39da51e5aa6a7cb9b5)
000077dd60078000-000077dd60079000 1 /usr/lib64/libpthread.so.0 (GNU Build-Id: 224429e5c0fefcd1ab356a39da51e5aa6a7cb9b5)
000077dd60079000-000077dd6007a000 2 /usr/lib64/libpthread.so.0 (GNU Build-Id: 224429e5c0fefcd1ab356a39da51e5aa6a7cb9b5)
000077dd6007a000-000077dd6007b000 2 /usr/lib64/libpthread.so.0 (GNU Build-Id: 224429e5c0fefcd1ab356a39da51e5aa6a7cb9b5)
000077dd6007b000-000077dd6007c000 3 /usr/lib64/libpthread.so.0 (GNU Build-Id: 224429e5c0fefcd1ab356a39da51e5aa6a7cb9b5)
000077dd6007c000-000077dd6007f000 0 /usr/lib64/libgcc_s-11-20230605.so.1 (GNU Build-Id: b167aa2bd52b832128de92447c280e90420c9110)
000077dd6007f000-000077dd60091000 3 /usr/lib64/libgcc_s-11-20230605.so.1 (GNU Build-Id: b167aa2bd52b832128de92447c280e90420c9110)
000077dd60091000-000077dd60094000 15 /usr/lib64/libgcc_s-11-20230605.so.1 (GNU Build-Id: b167aa2bd52b832128de92447c280e90420c9110)
000077dd60094000-000077dd60095000 18 /usr/lib64/libgcc_s-11-20230605.so.1 (GNU Build-Id: b167aa2bd52b832128de92447c280e90420c9110)
000077dd60095000-000077dd60096000 18 /usr/lib64/libgcc_s-11-20230605.so.1 (GNU Build-Id: b167aa2bd52b832128de92447c280e90420c9110)
000077dd60096000-000077dd60097000 19 /usr/lib64/libgcc_s-11-20230605.so.1 (GNU Build-Id: b167aa2bd52b832128de92447c280e90420c9110)
000077dd60097000-000077dd600a4000 0 /usr/lib64/libm.so.6 (GNU Build-Id: cd380e0ffadfdf02b7c52962c32dd5c02929ec4c)
000077dd600a4000-000077dd60114000 d /usr/lib64/libm.so.6 (GNU Build-Id: cd380e0ffadfdf02b7c52962c32dd5c02929ec4c)
000077dd60114000-000077dd60170000 7d /usr/lib64/libm.so.6 (GNU Build-Id: cd380e0ffadfdf02b7c52962c32dd5c02929ec4c)
000077dd60170000-000077dd60171000 d8 /usr/lib64/libm.so.6 (GNU Build-Id: cd380e0ffadfdf02b7c52962c32dd5c02929ec4c)
000077dd60171000-000077dd60172000 d9 /usr/lib64/libm.so.6 (GNU Build-Id: cd380e0ffadfdf02b7c52962c32dd5c02929ec4c)
000077dd60172000-000077dd60173000 0 /usr/lib64/libdl.so.2 (GNU Build-Id: f2c37044b0cf5d2170e60fa4f0b92c5127dfddff)
000077dd60173000-000077dd60174000 1 /usr/lib64/libdl.so.2 (GNU Build-Id: f2c37044b0cf5d2170e60fa4f0b92c5127dfddff)
000077dd60174000-000077dd60175000 2 /usr/lib64/libdl.so.2 (GNU Build-Id: f2c37044b0cf5d2170e60fa4f0b92c5127dfddff)
000077dd60175000-000077dd60176000 2 /usr/lib64/libdl.so.2 (GNU Build-Id: f2c37044b0cf5d2170e60fa4f0b92c5127dfddff)
000077dd60176000-000077dd60177000 3 /usr/lib64/libdl.so.2 (GNU Build-Id: f2c37044b0cf5d2170e60fa4f0b92c5127dfddff)
000077dd60177000-000077dd60178000 0 /dev/zero (deleted) (n/a)
000077dd60178000-000077dd60179000 0 /dev/zero (deleted) (n/a)
000077dd60179000-000077dd6017a000 0 /dev/zero (deleted) (n/a)
TagsNo tags attached.
Attached Files
image.png (22,179 bytes)   
image.png (22,179 bytes)   

Activities

Issue History

Date Modified Username Field Change
2024-01-04 20:47 Yurii B New Issue
2024-01-04 20:47 Yurii B File Added: image.png