Welcome! Log In Create A New Profile

Advanced

Re: zero size buf in output(Bug?)

October 10, 2012 09:44AM
On Wed, Oct 10, 2012 at 3:01 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> Hello!
>
> On Wed, Oct 10, 2012 at 02:07:43AM +0400, Andrey Feldman wrote:
>
>> Tried your patch, but after few minutes workers starts crashing.
>> GDB:
>>
>> Core was generated by `nginx: worker process '.
>> Program terminated with signal 11, Segmentation fault.
>> #0 0x000000000040ab19 in ngx_vslprintf (buf=0x7fff9e5f2785 <Address
>> 0x7fff9e5f2785 out of bounds>,
>> last=0x7fff9e5f2f50 <Address 0x7fff9e5f2f50 out of bounds>,
>> fmt=<value optimized out>, args=0x7fff9e5f2730) at
>> src/core/ngx_string.c:178
>> 178 while (*fmt >= '0' && *fmt <= '9') {
>
> Strange. What's in backtrace?

Backtrace in attach.

--
--
Andrey Feldman
Core was generated by `nginx: worker process '.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000040ab19 in ngx_vslprintf (buf=0x7fffefda6605 "", last=0x7fffefda6dd0 "\020", fmt=<value optimized out>, args=0x7fffefda65b0)
at src/core/ngx_string.c:178
178 while (*fmt >= '0' && *fmt <= '9') {
(gdb) bt
#0 0x000000000040ab19 in ngx_vslprintf (buf=0x7fffefda6605 "", last=0x7fffefda6dd0 "\020", fmt=<value optimized out>, args=0x7fffefda65b0)
at src/core/ngx_string.c:178
#1 0x000000000040692e in ngx_log_error_core (level=3, log=0x14143930, err=14, fmt=0x473e4a "\307", <incomplete sequence \320>)
at src/core/ngx_log.c:108
#2 0x000000000040dfb2 in ngx_conf_set_path_slot (cf=0x14224fe8, cmd=<value optimized out>, conf=<value optimized out>)
at src/core/ngx_file.c:267
#3 0x00000000141439b8 in ?? ()
#4 0x0000000014225850 in ?? ()
#5 0x00002b87720e8250 in ?? ()
#6 0x0000000014154770 in ?? ()
#7 0x0000000000449e6f in ngx_http_upstream_send_response (r=0x0, u=0x1) at src/http/ngx_http_upstream.c:2124
#8 ngx_http_upstream_process_header (r=0x0, u=0x1) at src/http/ngx_http_upstream.c:1644
#9 0x00000000141439b8 in ?? ()
#10 0x0000000000000078 in ?? ()
#11 0x4a8da000006b3500 in ?? ()
#12 0x0000000050757962 in ?? ()
#13 0x00000000141439b8 in ?? ()
#14 0x00000000141439b8 in ?? ()
#15 0xfffffffffffffffe in ?? ()
#16 0x0000000000000078 in ?? ()
#17 0x00000000141d7828 in ?? ()
#18 0x0000000050757962 in ?? ()
#19 0x000000000045106a in ngx_http_file_cache_exists (cache=0x4742a1, c=0x40aa1c) at src/http/ngx_http_file_cache.c:690
#20 0x0000000300000010 in ?? ()
#21 0x0000000014143930 in ?? ()
#22 0x000000000068c2c0 in ?? ()
#23 0x00000000141439b8 in ?? ()
#24 0x0000000014224c80 in ?? ()
#25 0x00000000141439b8 in ?? ()
#26 0x0000000014224a00 in ?? ()
#27 0x00002b87720e8250 in ?? ()
#28 0x00000000141d6798 in ?? ()
#29 0x0000000000000001 in ?? ()
#30 0x00000000004409d6 in ngx_http_variable_sent_keep_alive (r=<value optimized out>, v=0x78, data=<value optimized out>)
at src/http/ngx_http_variables.c:1654
#31 0x000000000000012e in ?? ()
#32 0x0000000014224c80 in ?? ()
#33 0x0000000014224c80 in ?? ()
#34 0x00000000141439b8 in ?? ()
#35 0x00000000141439b8 in ?? ()
#36 0x00002b87720e8250 in ?? ()
#37 0x00000000141d6798 in ?? ()
#38 0x0000000014224a00 in ?? ()
#39 0x0000000014224c80 in ?? ()
#40 0x00000000141439b8 in ?? ()
#41 0x00002b87720e8250 in ?? ()
#42 0x00000000141d6798 in ?? ()
#43 0x000000000044321c in ngx_http_script_regex_start_code (e=0x1) at src/http/ngx_http_script.c:974
#44 0x00000000140610d0 in ?? ()
#45 0x00000000004762c9 in ngx_http_modern_browser (cf=0x7fffefda6605, cmd=0x0, conf=0x7fffefda6e00)
at src/http/modules/ngx_http_browser_module.c:553
#46 0x0000000000000089 in ?? ()
---Type <return> to continue, or q <return> to quit---
#47 0x00000000000019b0 in ?? ()
#48 0xfffffffffffffffc in ?? ()
#49 0x000000000041fee0 in ngx_event_pipe_read_upstream (p=0x0, do_write=<value optimized out>) at src/event/ngx_event_pipe.c:382
#50 ngx_event_pipe (p=0x0, do_write=<value optimized out>) at src/event/ngx_event_pipe.c:49
#51 0x0000000000001260 in ?? ()
#52 0x0000000000000062 in ?? ()
#53 0x00000000004220e9 in ngx_signal_handler (signo=25593) at src/os/unix/ngx_process.c:316
#54 0x0000000000000000 in ?? ()

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

zero size buf in output(Bug?)

Priority1 October 09, 2012 10:52AM

Re: zero size buf in output(Bug?)

Maxim Dounin October 09, 2012 03:38PM

Re: zero size buf in output(Bug?)

Priority1 October 09, 2012 06:08PM

Re: zero size buf in output(Bug?)

Maxim Dounin October 10, 2012 07:02AM

Re: zero size buf in output(Bug?)

Priority1 October 10, 2012 09:44AM

Re: zero size buf in output(Bug?)

Maxim Dounin October 10, 2012 12:52PM

Re: zero size buf in output(Bug?)

Andre Jaenisch October 10, 2012 02:08PM

Re: zero size buf in output(Bug?)

Maxim Dounin October 10, 2012 02:30PM

Re: zero size buf in output(Bug?)

Priority1 October 10, 2012 02:32PM

Re: zero size buf in output(Bug?)

Priority1 October 10, 2012 03:06PM

Re: zero size buf in output(Bug?)

Maxim Dounin October 10, 2012 05:18PM

Re: zero size buf in output(Bug?)

VBart October 10, 2012 02:30PM

Re: zero size buf in output(Bug?)

milordk August 27, 2013 09:37AM

Re: zero size buf in output(Bug?)

milordk August 27, 2013 09:43AM

Re: zero size buf in output(Bug?)

B.R. August 27, 2013 12:50PM

Re: zero size buf in output(Bug?)

Richard Stanway August 27, 2013 05:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 258
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready