Actions
Bug #59381
openlua: crash when using Request.CopyFrom
% Done:
0%
Source:
Community (user)
Tags:
backport_processed
Backport:
quincy, reef
Regression:
No
Severity:
3 - minor
Reviewed:
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
Updated by Yuval Lifshitz about 1 year ago
- Assignee set to Yuval Lifshitz
- Source set to Community (user)
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
Updated by Casey Bodley about 1 year ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 1 year ago
- Copied to Backport #59498: reef: lua: crash when using Request.CopyFrom added
Updated by Backport Bot about 1 year ago
- Copied to Backport #59499: quincy: lua: crash when using Request.CopyFrom added
Actions