Project

General

Profile

Actions

Bug #75306

closed
NB NB

RGW crash in Lua code when D4N is enabled

Bug #75306: RGW crash in Lua code when D4N is enabled

Added by Nithya Balachandran 9 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
High
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-6040-g7f3756dba9
Released In:
v21.2.0~1050
Upkeep Timestamp:
2026-10-24T01:49:20+00:00

Description

2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout:2026-02-26T13:28:10.456+0000 7f7884d1d640 -1 *** Caught signal (Segmentation fault) **
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: in thread 7f7884d1d640 thread_name:io_context_pool
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout:
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: ceph version 20.3.0-5545-gb5fe6fa3 (b5fe6fa3c402f13534cbddbeab274f7b331abb92) tentacle (dev - RelWithDebInfo)
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 1: /lib64/libc.so.6(+0x3fc30) [0x7f798a23fc30]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 2: radosgw() [0x1599442]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 3: radosgw() [0x8fda72]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 4: (rgw::lua::Background::get_script_bytecode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<char, std::allocator<char> >&)+0x70) [0xcf4610]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 5: (rgw::sal::RadosLuaManager::get_script_or_bytecode(DoutPrefixProvider const*, optional_yield, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x1b6) [0xe52746]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 6: (rgw::sal::FilterLuaManager::get_script_or_bytecode(DoutPrefixProvider const*, optional_yield, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x26) [0xc7ca06]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 7: (rgw::lua::read_script_or_bytecode(DoutPrefixProvider const*, rgw::sal::LuaManager*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, optional_yield, rgw::lua::context)+0x5e) [0xcde65e]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 8: (process_request(RGWProcessEnv const&, RGWRequest*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, RGWRestfulIO*, optional_yield, rgw::dmclock::Scheduler*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> >*, int*)+0xc22) [0x9fa3e2]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 9: radosgw() [0x14a09c4]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 10: radosgw() [0x944518]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 11: radosgw() [0x92bed3]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: 12: radosgw() [0x15db37f]
2026-02-26T13:28:10.460 INFO:tasks.rgw.client.0.trial069.stdout: NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.


Related issues 1 (0 open — 1 closed)

Copied to rgw - Backport #76659: tentacle: RGW crash in Lua code when D4N is enabledResolvedNithya Balachandran

Actions

NB Updated by Nithya Balachandran 9 months ago Actions #1

Steps to reproduce the issue:
1. Install and start redis.
2. Create a vstart cluster with D4N enabled

MON=1 OSD=1 MDS=0 MGR=0 RGW=1 ../src/vstart.sh -n --nolockdep --rgw_port 7777 --bluestore -o "rgw_filter=d4n" -o "rgw_d4n_local_rgw_address=127.0.0.1:7777"

3. Create a bucket.

NB Updated by Nithya Balachandran 9 months ago Actions #2

Root Cause:

The AppMain init_lua() function assumes that env.driver is the rados driver. However, when when rgw_filter is set to "d4n", env.driver is set to the D4N Filter driver.

The issue exists when rgw_filter is not none.

NB Updated by Nithya Balachandran 9 months ago Actions #3

  • Severity changed from 2 - major to 3 - minor

NB Updated by Nithya Balachandran 9 months ago Actions #4

  • Pull request ID set to 67638

NB Updated by Nithya Balachandran 9 months ago Actions #5

  • Status changed from New to In Progress

NB Updated by Nithya Balachandran 9 months ago Actions #6

  • Status changed from In Progress to Fix Under Review

UB Updated by Upkeep Bot 9 months ago Actions #7

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 7f3756dba9260878ba7e629428a76dc02eed94ca
  • Fixed In set to v20.3.0-6040-g7f3756dba9
  • Upkeep Timestamp set to 2026-03-12T15:48:17+00:00

NB Updated by Nithya Balachandran 7 months ago Actions #8

  • Status changed from Resolved to Pending Backport
  • Backport set to tentacle

UB Updated by Upkeep Bot 7 months ago Actions #9

  • Copied to Backport #76659: tentacle: RGW crash in Lua code when D4N is enabled added

UB Updated by Upkeep Bot 7 months ago Actions #10

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #11

  • Status changed from Pending Backport to Resolved
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-03-12T15:48:17+00:00 to 2026-08-27T18:27:52+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #12

  • Released In set to v21.2.0~1050
  • Upkeep Timestamp changed from 2026-08-27T18:27:52+00:00 to 2026-10-24T01:49:20+00:00
Actions

Also available in: PDF Atom