Project

General

Profile

Actions

Bug #18240

closed

Random segfault on a local Rails server

Added by Benoit_Tigeot (Benoit Tigeot) 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:105558]

Description

Hello

I am having random segfault locally when rails a basic rails app.

The control frame is weird:

| -- Control frame information -----------------------------------------------
web | c:0073 p:---- s:0470 e:000469 CFUNC :append_features
web | c:0072 p:---- s:0467 e:000466 CFUNC :include


Files

Untitled.txt (724 KB) Untitled.txt Benoit_Tigeot (Benoit Tigeot), 10/05/2021 08:51 AM

Updated by jeremyevans0 (Jeremy Evans) 9 months ago

Unfortunately, I don't think there is enough information provided to help diagnose the specific cause of the issue (the general cause is likely to be memory corruption). The following 3rd party C-extensions are in use:

nio4r
bindex
byebug
stackprof
bcrypt
panko_serializer
oj
ffi
puma
pg
nokogiri
bootsnap
msgpack

A memory issue in any of those could cause a segfault in append_features. If it is possible to disable the use of all or most of the external C extensions and see if that makes that problem go away, that would be one way to go about diagnosing the problem.

Updated by Benoit_Tigeot (Benoit Tigeot) 9 months ago

Thanks Jeremy for your answer. We're gonna try to disable the C extensions one by one to identify if one behaves badly.

I think the ticket can be marked as closed, we will publish our result here.

Actions #3

Updated by jeremyevans0 (Jeremy Evans) 9 months ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF