Skip to content

Instantly share code, notes, and snippets.

@rdp
Last active July 26, 2026 06:12
Show Gist options
  • Select an option

  • Save rdp/f564c4adf09626e43867bd247fdd0235 to your computer and use it in GitHub Desktop.

Select an option

Save rdp/f564c4adf09626e43867bd247fdd0235 to your computer and use it in GitHub Desktop.
phusion passenger weirdness 5.0.7
attaching gdb to apache2 instances thread apply all bt
Thread 24 (Thread 0xb2f39b40 (LWP 1090)):
#0 0xb7743be0 in __kernel_vsyscall ()
#1 0xb764d67b in read () at ../sysdeps/unix/syscall-template.S:81
#2 0xb56539f2 in Passenger::bucket_read (bucket=0xb5b89248, str=0xb2f36988, len=0xb2f36984, block=APR_BLOCK_READ) at ext/apache2/Bucket.cpp:95
#3 0x800c909f in ap_content_length_filter ()
#4 0x800c5ed8 in ap_pass_brigade ()
#5 0x800f90c3 in ap_byterange_filter ()
#6 0x800c5ed8 in ap_pass_brigade ()
---Type <return> to continue, or q <return> to quit---
#7 0xb73963bb in ?? () from /usr/lib/apache2/modules/mod_filter.so
#8 0x800c5ed8 in ap_pass_brigade ()
#9 0xb5676690 in Hooks::handleRequest (this=0x80de0340, r=0xb5b2f058) at ext/apache2/Hooks.cpp:632
#10 0xb567af97 in Hooks::handleRequestWhenNotInHighPerformanceMode (this=0x80de0340, r=0xb5b2f058) at ext/apache2/Hooks.cpp:1475
#11 0xb5669931 in handle_request_when_not_in_high_performance_mode (r=0xb5b2f058) at ext/apache2/Hooks.cpp:1632
#12 0x800de467 in ap_run_handler ()
#13 0x800de998 in ap_invoke_handler ()
#14 0x800f461f in ap_process_async_request ()
#15 0x800f1040 in ?? ()
#16 0x800e7b07 in ap_run_process_connection ()
#17 0xb735a736 in ?? () from /usr/lib/apache2/modules/mod_mpm_event.so
#18 0xb7680a2e in ?? () from /usr/lib/i386-linux-gnu/libapr-1.so.0
#19 0xb76451aa in start_thread (arg=0xb2f39b40) at pthread_create.c:333
#20 0xb756dfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122
passenger-status --show=server | grep http_state
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
"http_state" : "PARSING_HEADERS",
apache error.log
[ 2026-07-25 21:42:36.2715 1058/b6139b40 Ser/Server.h:931 ]: [Client 1-806] Disconnecting client with error: client socket write error: Broken pipe (errno=32)
[Sat Jul 25 21:42:36.570493 2026] [core:notice] [pid 1052:tid 3074542208] AH00052: child pid 2102 exit signal Segmentation fault (11)
[ 2026-07-25 21:42:42.4826 1058/b6139b40 Ser/Server.h:931 ]: [Client 1-983] Disconnecting client with error: client socket write error: Broken pipe (errno=32)
"2-386" : {
"connected_at" : {
"local" : "Wed Dec 31 19:32:20 1969",
"relative" : "20660d 4h 36m 36s ago",
"timestamp" : 1785029003.068103
},
"connection_state" : "ACTIVE",
"current_request" : {
"app_sink_state" : {
"callback_in_progress" : false,
"initialized" : false,
"io_watcher_active" : false
},
"app_source_state" : {
"callback_in_progress" : true,
"initialized" : false,
"io_watcher_active" : false
},
"flags" : {
"dechunk_response" : false,
"https" : false,
"request_body_buffering" : false
},
"http_state" : "PARSING_HEADERS",
"refcount" : 1,
"session_checkout_try" : 0,
"state" : "ANALYZING_REQUEST",
"sticky_session" : false
},
"lingering_request_count" : 0,
"name" : "2-386",
"number" : 386,
"output_channel_state" : {
"bytes_buffered" : {
"bytes" : 0,
"human_readable" : "0 bytes"
},
"callback_in_progress" : false,
"mode" : "IN_MEMORY_MODE",
"nbuffers" : 0,
"reader_state" : "RS_INACTIVE"
},
"refcount" : 2,
"requests_begun" : 1
},
@rdp

rdp commented Jul 26, 2026

Copy link
Copy Markdown
Author

not buffer response
newer mod x 2
timeout?
kill passengers?
fix code?
PassengerBufferResponse should be off already...
new droplet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment