Segmentation fault

My API receives about 100 requests per second, and same times, I have an error
Segmentation fault https://prnt.sc/vss3bl
PID 5159 received SIGSEGV for address: 0x190
/home/dev/cpanel/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x3216)[0x7f9b8d209216]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7f9b8ff0e730]
/lib/x86_64-linux-gnu/libc.so.6(+0x15c181)[0x7f9b8fe97181]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1fff)[0x7f9b8fd8c9ef]
/lib/x86_64-linux-gnu/libc.so.6(vsnprintf+0x90)[0x7f9b8fdb37a0]
/home/dev/cpanel/node_modules/couchbase/build/Release/couchbase_impl.node(_ZN9couchnode6Logger7handlerEjPKciS2_iS2_P13__va_list_tag+0xab)[0x7f9b76d00c4b]
/home/dev/cpanel/node_modules/couchbase/build/Release/couchbase_impl.node(_ZN9couchnode6Logger10lcbHandlerEPK11lcb_LOGGER_mPKc16lcb_LOG_SEVERITYS5_iS5_P13__va_list_tag+0x51)[0x7f9b76d011a1]
/home/dev/cpanel/node_modules/couchbase/build/Release/couchbase_impl.node(lcb_log+0x94)[0x7f9b76d76964]
/home/dev/cpanel/node_modules/couchbase/build/Release/couchbase_impl.node(_ZN3lcb5trace22ThresholdLoggingTracer11flush_queueERNS0_10FixedQueueINS0_12ReportedSpanEEEPKcb+0x6c2)[0x7f9b76d8fd12]
/home/dev/cpanel/node_modules/couchbase/build/Release/couchbase_impl.node(+0x7af2e)[0x7f9b76d1df2e]
node[0x1375dd5]
node(uv_run+0x75)[0x137a2d5]
node(_ZN4node16NodeMainInstance3RunEv+0x244)[0xa438d4]
node(_ZN4node5StartEiPPc+0x115)[0x9d1735]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f9b8fd5f09b]
node[0x96971c]

What is the reason for this?

I’m not sure I can reproduce this error without some more context and a look at your code that is causing this issue. Can you update the question with more details? I am not familiar with this error but if I can reproduce it I can get you an answer.

Hey @ericb, @Lenty_Me,
I started to look into this yesterday and there is another forum post here with a crash in the same place, along with a bug filed in JIRA. I’m having trouble reproducing the issue as it appears here though. Will let you know when there is an update. https://issues.couchbase.com/browse/JSCBC-815
Cheers, Brett

What kind of information do you need ? How can I help ?
I suppose the error occurs with frequent access to the couchbase. I make 4 n1ql requests in one api request : Insert, Select, Upsert and Select
I have ~100 requests in one second

Hey @Lenty_Me,

The issue has since been fixed and will be in the next release, which is scheduled for sometime later today.

Cheers, Brett

1 Like