CGI handler bug and death processes #98

Closed
Borkason opened this Issue Mar 24, 2013 · 2 comments

Projects

None yet

1 participant

Member

Original author: alobbs (October 16, 2007 15:15:24)

Here is the backtrace of one of those processes:

​0 0xb7ee5199 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0

​1 0xb7ee1f07 in _L_mutex_lock_29 () from /lib/tls/libpthread.so.0

​2 0x081d623b in ?? ()

​3 0xb6c7ae18 in ?? ()

​4 0x0809010e in match (eptr=0x80e22e0 "\002", ecode=0x2 <Address 0x2 out

of bounds>, mstart=0x0, offset_top=192, md=0xb6c7b1cc, ims=3066540572,
eptrb=0x6,
flags=0, rdepth=2) at pcre/pcre_exec.c:4187

​5 0x08062928 in cherokee_logger_flush (logger=0x80e2220) at logger.c:101

​6 0x0805eadf in flush_logs (srv=0x80b7008) at server.c:1175

​7 0x08060441 in cherokee_server_handle_TERM (srv=0x80b7008) at server.c:1887

​8 0x08055015 in prepare_to_die (code=15) at main.c:67

​9 <signal handler called>

​10 0xb7ee5199 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0

​11 0xb7ee1f07 in _L_mutex_lock_29 () from /lib/tls/libpthread.so.0

​12 0xb6c7afc8 in ?? ()

​13 0x08072c74 in cherokee_handler_cgi_add_env_pair (cgi_base=0x80e22e0,

name=0x0, name_len=1, content=0xb7ee9ff4 "Ðî", content_len=134920584) at
handler_cgi.c:307

​14 0x08062a87 in cherokee_logger_write_string (logger=0x80e2220,

format=0x80ab9be "couldn't execute '%s': %s") at logger.c:167

​15 0x08073348 in manage_child_cgi_process (cgi=0x8214080,

pipe_cgi=0xb6c7b27c, pipe_server=0xb6c7b284) at handler_cgi.c:575

​16 0x08073401 in fork_and_execute_cgi_unix (cgi=0x8214080) at

handler_cgi.c:616

​17 0x08072f70 in cherokee_handler_cgi_init (cgi=0x8214080) at

handler_cgi.c:417

​18 0x0807f845 in cherokee_handler_init (hdl=0x8214080) at handler.c:89

​19 0x0807f4f4 in cherokee_connection_open_request (conn=0x8105800) at

connection.c:1871

​20 0x08064746 in process_active_connections (thd=0x80d04f0) at thread.c:1091

​21 0x08065d75 in cherokee_thread_step_MULTI_THREAD (thd=0x80d04f0,

dont_block=false) at thread.c:2006

​22 0x08062df6 in thread_routine (data=0x80d04f0) at thread.c:144

​23 0xb7ee0ced in start_thread () from /lib/tls/libpthread.so.0

​24 0xb7d6ddee in clone () from /lib/tls/libc.so.6

And here is how it looks when the server fails like in that way:

5383 ? Sl 4:07 _ /home/alo/cherokee-trunk/cherokee/cherokee
-C /var/web/etc/cherokee.conf
12065 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
20620 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
20900 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
22198 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
22199 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
22378 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
22880 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
22881 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
22988 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf
23055 ? S 0:00 _
/home/alo/cherokee-trunk/cherokee/cherokee -C /var/web/etc/cherokee.conf

... etc.

Original issue: http://code.google.com/p/cherokee/issues/detail?id=23

Member

From alobbs on October 16, 2007 15:26:50
r937 tries to fix.
I need a couple of days to confirm that it does work.

Member

From alobbs on January 05, 2008 12:51:08
As long as we do not use the logger from the fork()ed process everything should be okay.

Since I committed the patch this bug hasn't shown up, therefore I am closing this
issue report as "Fixed".

@Borkason Borkason closed this Mar 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment