nginx large POST body under Solaris

Wil Tan wil at mojipage.com
Wed Mar 26 11:45:15 MSK 2008


Hi Igor,

Thank you so much for your help. The variables that you asked for are  
included at the bottom.

=wil

On Mar 26, 2008, at 2:46 AM, Igor Sysoev wrote:

> On Tue, Mar 25, 2008 at 06:42:05PM -0400, Wil Tan wrote:
>
>> Hello Igor,
>>
>> Thank you for your quick response. I've installed gdb and enabled
>> global setuid core and reproduced the scenario for 0.6.29. Here's the
>> backtrace:
>>
>> [moji at d9b60282 /opt/local/src]$ sudo gdb /opt/local/nginx/sbin/ 
>> nginx /
>> var/core/core.nginx.12427
>> GNU gdb 6.6
>> Copyright (C) 2006 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and
>> you are
>> welcome to change it and/or distribute copies of it under certain
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for
>> details.
>> This GDB was configured as "i386-pc-solaris2.10"...
>> Reading symbols from /lib/libsocket.so.1...done.
>> Loaded symbols for /lib/libsocket.so.1
>> Reading symbols from /lib/libnsl.so.1...done.
>> Loaded symbols for /lib/libnsl.so.1
>> Reading symbols from /lib/librt.so.1...
>> warning: Lowest section in /lib/librt.so.1 is .dynamic at 00000074
>> done.
>> Loaded symbols for /lib/librt.so.1
>> Reading symbols from /lib/libsendfile.so.1...done.
>> Loaded symbols for /lib/libsendfile.so.1
>> Reading symbols from /opt/local/lib/libpcre.so.0...done.
>> Loaded symbols for /usr/local/lib/libpcre.so.0
>> Reading symbols from /opt/local/lib/libz.so.1...done.
>> Loaded symbols for /usr/local/lib/libz.so.1
>> Reading symbols from /lib/libc.so.1...done.
>> Loaded symbols for /lib/libc.so.1
>> Reading symbols from /usr/sfw/lib/libgcc_s.so.1...done.
>> Loaded symbols for /usr/sfw/lib/libgcc_s.so.1
>> Reading symbols from /lib/ld.so.1...done.
>> Loaded symbols for /lib/ld.so.1
>> Core was generated by `/opt/local/nginx/sbin/nginx'.
>> Program terminated with signal 11, Segmentation fault.
>> #0  ngx_writev_chain (c=0x810e830, in=0x80d7d74, limit=2147479551)
>>     at src/os/unix/ngx_writev_chain.c:92
>> 92                      iov->iov_len += size;
>> (gdb) where
>> #0  ngx_writev_chain (c=0x810e830, in=0x80d7d74, limit=2147479551)
>>     at src/os/unix/ngx_writev_chain.c:92
>
> p iov
> p *cl->buf
> p prev_send
> p send
> p size
>

(gdb) p iov
$1 = (struct iovec *) 0x0
(gdb) p *cl->buf
$2 = {pos = 0x0, last = 0x0, file_pos = 196608, file_last = 229376,  
start = 0x0, end = 0x0,
   tag = 0x0, file = 0x80db9b8, shadow = 0x0, temporary = 0, memory =  
0, mmap = 0, recycled = 0,
   in_file = 1, flush = 0, sync = 0, last_buf = 0, last_in_chain = 0,  
last_shadow = 0,
   temp_file = 0, zerocopy_busy = 0, num = 0}
(gdb) p prev_send
$3 = 1416
(gdb) p send
$4 = 1416
(gdb) p size
$5 = 0






More information about the nginx mailing list