ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx-0.7.36



On Sat, Feb 21, 2009 at 07:55:13PM +0500, Владислав Щапов wrote:

> #0  0x080c552c in ngx_http_fastcgi_pass (cf=0xbfe81c1c, cmd=0x80df320,
> conf=0x8104e30) at src/http/modules/ngx_http_fastcgi_module.c:2294
> 2294        flcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0);
> (gdb) p u
> $1 = {url = {len = 46, data = 0x81050f6
> "unix:/var/spool/php-fpm/sockets/localhost.sock"}, host = {len = 41,
>     data = 0x81050fb "/var/spool/php-fpm/sockets/localhost.sock"}, port_text
> = {len = 0, data = 0x0}, uri = {len = 0, data = 0x0},
>   port = 0, default_port = 0, family = 1, listen = 0, uri_part = 0,
> no_resolve = 1, one_addr = 0, no_port = 0, wildcard = 0, addr = {
>     in_addr = 0}, socklen = 110, sockaddr = "\001\000/var/spool/php", addrs
> = 0x8105128, naddrs = 1,
>   err = 0x7374656b <Address 0x7374656b out of bounds>}
> (gdb) p *flcf
> Cannot access memory at address 0x636f6c2f
> (gdb)

Патч.


> 2009/2/21 Igor Sysoev <is@xxxxxxxxxxxxx>
> 
> > On Sat, Feb 21, 2009 at 03:24:32PM +0500, Владислав Щапов wrote:
> >
> > > Можно:
> > >
> > > Core was generated by `./nginx -t'.
> > > Program terminated with signal 11, Segmentation fault.
> > > [New process 9284]
> > > #0  0x080c552c in ngx_http_fastcgi_pass (cf=0xbffcc56c, cmd=0x80df320,
> > > conf=0x8104e30) at src/http/modules/ngx_http_fastcgi_module.c:2294
> > > 2294        flcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0);
> > > (gdb) bt
> > > #0  0x080c552c in ngx_http_fastcgi_pass (cf=0xbffcc56c, cmd=0x80df320,
> > > conf=0x8104e30) at src/http/modules/ngx_http_fastcgi_module.c:2294
> >
> > p u
> > p *flcf
> >
> >
> > --
> > Игорь Сысоев
> > http://sysoev.ru
> >
> >

-- 
Игорь Сысоев
http://sysoev.ru
Index: src/core/ngx_inet.h
===================================================================
--- src/core/ngx_inet.h (revision 1840)
+++ src/core/ngx_inet.h (working copy)
@@ -22,14 +22,15 @@
 /*
  * TODO: autoconfigure NGX_SOCKADDRLEN as
  *       sizeof(struct sockaddr_storage)
+ *       sizeof(struct sockaddr_un)
  *       sizeof(struct sockaddr_in6)
  *       sizeof(struct sockaddr_in)
  */
 
-#if (NGX_HAVE_INET6)
-#define NGX_SOCKADDRLEN       sizeof(struct sockaddr_in6)
+#if (NGX_HAVE_UNIX_DOMAIN)
+#define NGX_SOCKADDRLEN       sizeof(struct sockaddr_un)
 #else
-#define NGX_SOCKADDRLEN       sizeof(struct sockaddr_in)
+#define NGX_SOCKADDRLEN       512
 #endif
 
 


 




Copyright © Lexa Software, 1996-2009.