Project

General

Profile

Actions

Bug #59381

open

lua: crash when using Request.CopyFrom

Added by Yuval Lifshitz about 1 year ago. Updated about 1 year ago.

Status:
Pending Backport
Priority:
High
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
backport_processed
Backport:
quincy, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

crash in: CopyFromMetaTable::IndexClosure()

create_metatable<ObjectMetaTable>(L, false, s->src_object);

since "s" is a null pointer.

to reproduce use a vstart cluster, and the following lua file:

$ cat test.lua
function print_object(msg, object)
  RGWDebugLog("  Title: " .. msg)
  RGWDebugLog("  Name: " .. object.Name)
  RGWDebugLog("  Instance: " .. object.Instance)
  RGWDebugLog("  Id: " .. object.Id)
  RGWDebugLog("  Size: " .. object.Size)
  RGWDebugLog("  MTime: " .. object.MTime)
end

RGWDebugLog("This is a log message!")

Request.Log()
if Request.CopyFrom then
  print_object("copy from", Request.CopyFrom.Object)
  if Request.CopyFrom.Object then
    print_object("copy from-object" ,Request.CopyFrom.Object)
  end
end

if Request.Object then
  print_object("Object" ,Request.Object)
end

then run:

$ aws --endpoint-url http://localhost:8000 s3 mb s3://fish
$ aws --endpoint-url http://localhost:8000 s3 mb s3://fish1
$ bin/radosgw-admin script put --infile test.lua --context=postrequest
$ aws --endpoint-url http://localhost:8000 s3 cp compile_commands.json s3://fish
$ aws --endpoint-url http://localhost:8000 s3 cp s3://fish/compile_commands.json s3://fish1/compile_commands.json


Related issues 2 (2 open0 closed)

Copied to rgw - Backport #59498: reef: lua: crash when using Request.CopyFromIn ProgressYuval LifshitzActions
Copied to rgw - Backport #59499: quincy: lua: crash when using Request.CopyFromNewYuval LifshitzActions
Actions #1

Updated by Yuval Lifshitz about 1 year ago

  • Assignee set to Yuval Lifshitz
  • Source set to Community (user)
Actions #2

Updated by Yuval Lifshitz about 1 year ago

  • Backport set to quincy, reef
Actions #3

Updated by Yuval Lifshitz about 1 year ago

  • Status changed from New to Fix Under Review
  • Priority changed from Normal to High
  • Pull request ID set to 50975
Actions #4

Updated by Casey Bodley about 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59498: reef: lua: crash when using Request.CopyFrom added
Actions #6

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59499: quincy: lua: crash when using Request.CopyFrom added
Actions #7

Updated by Backport Bot about 1 year ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF