michelson
(Miguel Michelson Martinez)
June 10, 2022, 3:06am
1
Hi there I’m getting a segmentation fault on production, I don’t know how to debug this or catch the error. This is the trace of the segfault it seems to be due to a to_json
encoding.
need some help to debug this. anyone has seen this on Rails 7 with Ruby 3.1 ?
gistfile1.txt
Use Ctrl-C to stop
[chaskiq-chaskiq] [2022-06-08 04:07:07] Geocoding API not responding fast enough (use Geocoder.configure(:timeout => ...) to set limit).
[chaskiq-chaskiq] [2022-06-09 00:20:19] Geocoding API not responding fast enough (use Geocoder.configure(:timeout => ...) to set limit).
[chaskiq-chaskiq] [2022-06-09 04:03:35] 2022-06-09 04:03:35 +0000 HTTP parse error, malformed request ("GET /libs/dam/merge/metadata.css/a.html" - (-)): #<Puma::HttpParserError: Invalid HTTP format, parsing fails. Are you trying to open an SSL connection to a non-SSL Puma?>
[chaskiq-chaskiq] [2022-06-09 04:48:22] /usr/local/lib/ruby/3.1.0/json/common.rb:312: [BUG] Segmentation fault at 0x00007fce75651018
[chaskiq-chaskiq] [2022-06-09 04:48:22] ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
[chaskiq-chaskiq] [2022-06-09 04:48:22]
[chaskiq-chaskiq] [2022-06-09 04:48:22] -- Control frame information -----------------------------------------------
[chaskiq-chaskiq] [2022-06-09 04:48:22] c:0017 p:---- s:0085 e:000084 CFUNC :generate
[chaskiq-chaskiq] [2022-06-09 04:48:22] c:0016 p:0117 s:0080 e:000079 METHOD /usr/local/lib/ruby/3.1.0/json/common.rb:312
This file has been truncated. show original
byroot
(Jean Boussier)
June 11, 2022, 1:12pm
2
Could you include the output after -- C level backtrace information
?
michelson
(Miguel Michelson Martinez)
June 13, 2022, 12:06am
3
sorry, I don’t have more traces than that. is what DigitalOcean apps give us
gustiando
(Gustavo Matias dos Santos)
January 9, 2023, 7:49pm
4
@michelson did you end up figuring out what’s going on? or at least how to get more info from the stacktrace?
michelson
(Miguel Michelson Martinez)
March 13, 2023, 5:09pm
5
Probably was an out-of-memory error, I had to rollback to 2.7 but now I’m running the app with 3.2.0 without any issues