node icon indicating copy to clipboard operation
node copied to clipboard

Regular expression operation case segmentation fault

Open gilb77 opened this issue 1 year ago • 2 comments

Version

22.6.0

Platform

Run docker container with image node:22.6.0-bullseye-slim in k8s

Subsystem

No response

What steps will reproduce the bug?

I don't know what the root cause for this bug

How often does it reproduce? Is there a required condition?

Reproduce every few hours without any reason

What do you see instead?

The nodejs crashed with the following stack trace:

/lib/x86_64-linux-gnu/libpthread.so.0(+0x13140)[0x7f26aa69c140] node(_ZN2v88internal10TickSample14GetStackSampleEPNS0_7IsolateEPNS_13RegisterStateENS1_17RecordCEntryFrameEPPvmPNS_10SampleInfoEPNS_8StateTagEb+0x74)[0x1834a44] node(_ZN2v88internal10TickSample4InitEPNS0_7IsolateERKNS_13RegisterStateENS1_17RecordCEntryFrameEbbNS_4base9TimeDeltaE+0x53)[0x1834da3] node(_ZN2v88internal10CpuSampler11SampleStackERKNS_13RegisterStateE+0xf7)[0x17ffcb7] node(_ZN2v87sampler14SamplerManager8DoSampleERKNS_13RegisterStateE+0xdf)[0x15b4c1f] node(_ZN2v87sampler13SignalHandler20HandleProfilerSignalEiP9siginfo_tPv+0x6b)[0x15b4c9b] /lib/x86_64-linux-gnu/libpthread.so.0(+0x13140)[0x7f26aa69c140] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0RS+0x279)[0x7f26aa8c5229] node[0x1845bb0] node(_ZN2v88internal34RegExpBytecodePeepholeOptimization16OptimizeBytecodeEPNS0_7IsolateEPNS0_4ZoneENS0_6HandleINS0_6StringEEEPKhiRKNS0_16ZoneUnorderedMapIiiNS_4base4hashIiEESt8equal_toIiEEE+0x297)[0x18466c7] node(_ZN2v88internal23RegExpBytecodeGenerator7GetCodeENS0_6HandleINS0_6StringEEE+0xf7)[0x1840447] node(_ZN2v88internal14RegExpCompiler8AssembleEPNS0_7IsolateEPNS0_20RegExpMacroAssemblerEPNS0_10RegExpNodeEiNS0_6HandleINS0_6StringEEE+0x1ce)[0x185830e] node(_ZN2v88internal10RegExpImpl7CompileEPNS0_7IsolateEPNS0_4ZoneEPNS0_17RegExpCompileDataENS_4base5FlagsINS0_10RegExpFlagEiiEENS0_6HandleINS0_6StringEEESE_bRj+0x329)[0x1883489] node(_ZN2v88internal10RegExpImpl15CompileIrregexpEPNS0_7IsolateENS0_6HandleINS0_8JSRegExpEEENS4_INS0_6StringEEEb+0x173)[0x1883ba3] node(_ZN2v88internal10RegExpImpl15IrregexpPrepareEPNS0_7IsolateENS0_6HandleINS0_8JSRegExpEEENS4_INS0_6StringEEE+0x147)[0x1884647] node(_ZN2v88internal10RegExpImpl12IrregexpExecEPNS0_7IsolateENS0_6HandleINS0_8JSRegExpEEENS4_INS0_6StringEEEiNS4_INS0_15RegExpMatchInfoEEENS0_6RegExp10ExecQuirksE+0x60)[0x1884780] node(_ZN2v88internal18Runtime_RegExpExecEiPmPNS0_7IsolateE+0x95)[0x18ac325] [0x7f2143eac576] Segmentation fault

Additional information

Something the nodejs crash with this error too: corrupted double-linked list

gilb77 avatar Dec 26 '24 15:12 gilb77

Do you have any reproduction, preferably not involving any third-party code? Without any minimal reproductions, it would be difficult to have any next steps on it.

joyeecheung avatar Jan 10 '25 18:01 joyeecheung

This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open.

github-actions[bot] avatar Jun 15 '25 14:06 github-actions[bot]

Closing this because it has stalled. Feel free to reopen if this issue/PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.

github-actions[bot] avatar Jul 16 '25 00:07 github-actions[bot]