# Nginx 0.8.34 segmentation fault

**URL:** <https://www.ruby-forum.com/t/nginx-0-8-34-segmentation-fault/184905>\
**Category:** NGINX\
**Created:** [March 10, 2010, 9:38am UTC](https://www.ruby-forum.com/t/nginx-0-8-34-segmentation-fault/184905 "2010-03-10T09:38:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vnjug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vnjug](https://www.ruby-forum.com/u/vnjug)\
**Post date:** [March 10, 2010, 9:38am UTC](https://www.ruby-forum.com/t/nginx-0-8-34-segmentation-fault/184905/1 "2010-03-10T09:38:36Z")

</div>

Hi all,

I tried to put the following directive into http {}

```
proxy_cache_path /usr/local/nginx/proxy_temp levels=1:2

```

keys\_zone=wlcstaticfiles:10m inactive=7d max\_size=200m;  
proxy\_temp\_path /usr/local/nginx/proxy\_temp; # must be on the  
same filesystem as cache

When I tried to test the configuration to see if there were something  
wrong, it crashed

[sys@k78-web1 ~]# /usr/local/nginx/sbin/nginx -t  
Segmentation fault

If I removed the above mentioned directives,  
“/usr/local/nginx/sbin/nginx -t” said it was OK.

Am I doing anything wrong?

Regards,

Hoang

---

<div class="post-metadata">

**Author:** ![vnjug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vnjug](https://www.ruby-forum.com/u/vnjug)\
**Post date:** [March 10, 2010, 9:45am UTC](https://www.ruby-forum.com/t/nginx-0-8-34-segmentation-fault/184905/2 "2010-03-10T09:45:25Z")

</div>

Hoang Hoang wrote:

> Hi all,
> 
> I tried to put the following directive into http {}
> 
> ```
> proxy_cache_path /usr/local/nginx/proxy_temp levels=1:2
> 
> ```

Hi Igor

Here is the backtrace I get from gdb

(gdb) run  
Starting program: /usr/local/nginx/sbin/nginx -t  
[Thread debugging using libthread\_db enabled]  
[New Thread 182896549120 (LWP 31420)]

Program received signal SIGSEGV, Segmentation fault.  
[Switching to Thread 182896549120 (LWP 31420)]  
ngx\_vslprintf (buf=0x7fbfffec64 “”, last=0x7fbffff030 “`Ã•`K7”,  
fmt=0x46b77c “s:%ui has the different levels than”, args=0x7fbfffec10)  
at src/core/ngx\_string.c:256  
256 \*buf++ = \*p++;

Regards,

Hoang

---

<div class="post-metadata">

**Author:** ![vnjug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vnjug](https://www.ruby-forum.com/u/vnjug)\
**Post date:** [March 25, 2010, 3:37am UTC](https://www.ruby-forum.com/t/nginx-0-8-34-segmentation-fault/184905/3 "2010-03-25T03:37:06Z")

</div>

Hello!

On Wed, Mar 10, 2010 at 09:45:25AM +0100, Hoang Hoang wrote:

> 256 \*buf++ = \*p++;  
> Patch attached.

Maxim D.
