Project

General

Profile

Actions

Bug #3735

closed

rgw: Crashes when using a fastCGI front end that doesn't set SCRIPT_URI

Added by Sylvain Munaut over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I'm using lighttpd as a Fast CGI front end for radosgw and it doesn't set SCRIPT_URI environment variable.

So the line 1123 in rgw/rgw_rest.cc :

s->script_uri = s->env->get("SCRIPT_URI");

Tries to assign NULL to s->script_uri which crashes with this
particularly unhelpful stack trace:

0 0x00007ffff4f27101 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x000000000044c456 in RGWREST::preprocess(req_state*, RGWClientIO*) ()
#2 0x000000000044d70f in RGWREST::get_handler(RGWRados*, req_state*,
RGWClientIO*, int*) ()
#3 0x00000000004730bb in RGWProcess::handle_request(RGWRequest*) ()
#4 0x0000000000474f66 in RGWProcess::RGWWQ::_process(RGWRequest*) ()
#5 0x00000000004908fc in ThreadPool::worker(ThreadPool::WorkThread*) ()
#6 0x0000000000492710 in ThreadPool::WorkThread::entry() ()
#7 0x00007ffff62aae9a in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007ffff4f91cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()


Files

Actions #1

Updated by Sylvain Munaut over 11 years ago

Here's the fix I used on my system to fix the problem. The S3 service is set at the root of the virtual server so "" is fine for me as a default value. If I needed another value, I could force the env ...

Actions #2

Updated by Ian Colle over 11 years ago

  • Assignee set to caleb miles
Actions #3

Updated by Sage Weil over 11 years ago

  • Priority changed from Normal to Urgent
Actions #4

Updated by Sage Weil over 11 years ago

commit:e1da85f286838cdd3a6329840cec748c6a11fd26

Actions #5

Updated by Ian Colle over 11 years ago

  • Status changed from New to Resolved
Actions #6

Updated by Ian Colle over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF