# Nginx1.0.0 have a kernel bug

**URL:** <https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358>\
**Category:** NGINX\
**Created:** [June 16, 2011, 3:55am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358 "2011-06-16T03:55:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 16, 2011, 3:55am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358/1 "2011-06-16T03:55:33Z")

</div>

OS is redhat5.5 ,nginx 1.0.0 ,libunwind-0.99…  
The /var/log/message frequently appear the follow messages:  
Jun 13 10:20:31 localhost kernel: nginx[14431]: segfault at 2a2 ip  
00007fa6b3a05eb6 sp 00007fff337d87e0 error 4 in  
libunwind.so.7.0.0[7fa6b39fb000+f000]  
Jun 13 16:01:09 localhost kernel: nginx[13794]: segfault at 2a2 ip  
00007fa6b3a05eb6 sp 00007fff337d87a0 error 4 in  
libunwind.so.7.0.0[7fa6b39fb000+f000]  
Jun 13 17:55:00 localhost kernel: nginx[13808]: segfault at 2a2 ip  
00007fa6b3a05eb6 sp 00007fff337d86e0 error 4 in  
libunwind.so.7.0.0[7fa6b39fb000+f000]  
Jun 14 01:13:48 localhost kernel: nginx[14592]: segfault at 2a2 ip  
00007fa6b3a05eb6 sp 00007fff337d87a0 error 4 in  
libunwind.so.7.0.0[7fa6b39fb000+f000]  
Jun 14 01:47:13 localhost kernel: nginx[13153]: segfault at 2a2 ip  
00007fa6b3a05eb6 sp 00007fff337d87e0 error 4 in  
libunwind.so.7.0.0[7fa6b39fb000+f000]  
Jun 14 09:09:28 localhost kernel: nginx[28921]: segfault at 8008 ip  
00007fa6b3a05eb6 sp 00007fff337d8c60 error 4 in  
libunwind.so.7.0.0[7fa6b39fb000+f000]  
Jun 14 15:47:33 localhost kernel: nginx[21295]: segfault at 2a2 ip  
00007fde9e837eb6 sp 00007fffc48594a0 error 4 in  
libunwind.so.7.0.0[7fde9e82d000+f000]

Can you help me solve it?

Posted at Nginx Forum:

> **[nginx1.0.0 have a kernel bug](https://forum.nginx.org/read.php?2,207390,207390#msg-207390)**
>
> OS is redhat5.5 ,nginx 1.0.0 ,libunwind-0.99... The /var/log/message frequently appear the follow messages: Jun 13 10:20:31 localhost kernel: nginx\[14431\]: segfault at 2a2 ip 00007fa6b3a05eb6 sp 00007fff337d87e0 error 4 in...

---

<div class="post-metadata">

**Author:** ![lys0212](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b3f665/32.png) [@lys0212](https://www.ruby-forum.com/u/lys0212)\
**Post date:** [June 16, 2011, 4:19am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358/2 "2011-06-16T04:19:37Z")

</div>

this is not a bug in the kernel, but the nginx is trying to access  
some memory that it is not allowed to access.

did you add any modules? what is libunwind used for?  
can you send the output of nginx -V

---

<div class="post-metadata">

**Author:** ![lys0212](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b3f665/32.png) [@lys0212](https://www.ruby-forum.com/u/lys0212)\
**Post date:** [June 16, 2011, 6:13am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358/3 "2011-06-16T06:13:50Z")

</div>

i think you should probably first find out which of all your  
additional modules is linking to libunwind.so.

then i would guess there must be a bug either in that module or in the  
libunwind.

if you compile nginx without any add-module i think it should not link  
to libunwind, so this must come from one of your via --add-module  
added modules.

---

<div class="post-metadata">

**Author:** ![lys0212](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b3f665/32.png) [@lys0212](https://www.ruby-forum.com/u/lys0212)\
**Post date:** [June 16, 2011, 4:46am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358/4 "2011-06-16T04:46:06Z")

</div>

Thanks！  
The output of nginx -V is:  
[root@localhost ~]# /web/software/nginx/sbin/nginx -V  
nginx: nginx version: nginx/1.0.0  
nginx: TLS SNI support enabled  
nginx: configure arguments: --prefix=/web/software/nginx  
–with-google\_perftools\_module --user=www --group=www  
–prefix=/web/software/nginx --with-http\_stub\_status\_module  
–with-http\_ssl\_module --with-pcre --add-module=…/ngx\_cache\_purge-1.3  
–add-module=…/ngx\_http\_redis-0.3.2  
–add-module=…/kkung-nginx-static-etags-ce0fdd4  
–add-module=…/agentzh-memc-nginx-module-25454a8  
–add-module=…/ngx\_http\_upstream\_keepalive-2ee28064a04a  
–add-module=…/simpl-ngx\_http\_set\_hash-cfdd587  
–add-module=…/simpl-ngx\_devel\_kit-7dbb4ce  
–with-ld-opt=‘-L/web/software/openssl/lib/ -L/web/software/zlib/lib/’

Posted at Nginx Forum:

> **[Re: nginx1.0.0 have a kernel bug](https://forum.nginx.org/read.php?2,207390,207397#msg-207397)**
>
> OS is redhat5.5 ,nginx 1.0.0 ,libunwind-0.99... The /var/log/message frequently appear the follow messages: Jun 13 10:20:31 localhost kernel: nginx\[14431\]: segfault at 2a2 ip 00007fa6b3a05eb6 sp 00007fff337d87e0 error 4 in...

---

<div class="post-metadata">

**Author:** ![lys0212](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b3f665/32.png) [@lys0212](https://www.ruby-forum.com/u/lys0212)\
**Post date:** [June 16, 2011, 8:17am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358/5 "2011-06-16T08:17:57Z")

</div>

I think the with-google\_perftools\_module will link to libunwind,but i  
don’t known how do prove and solve it.  
because google\_perftools need libunwind under the X86\_64 system .

Posted at Nginx Forum:

> **[Re: nginx1.0.0 have a kernel bug](https://forum.nginx.org/read.php?2,207390,207431#msg-207431)**
>
> OS is redhat5.5 ,nginx 1.0.0 ,libunwind-0.99... The /var/log/message frequently appear the follow messages: Jun 13 10:20:31 localhost kernel: nginx\[14431\]: segfault at 2a2 ip 00007fa6b3a05eb6 sp 00007fff337d87e0 error 4 in...

---

<div class="post-metadata">

**Author:** ![lys0212](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b3f665/32.png) [@lys0212](https://www.ruby-forum.com/u/lys0212)\
**Post date:** [June 16, 2011, 8:21am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358/6 "2011-06-16T08:21:40Z")

</div>

if you want to be sure, recompile the nginx without google\_perftools,  
then you do ldd on the nginx binary and see if it still links to  
libunwind.

once you are sure its coming from this module, you can start trying to  
find bugreports of this problem or try other versions of either the  
library or the nginx module.

---

<div class="post-metadata">

**Author:** ![lys0212](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b3f665/32.png) [@lys0212](https://www.ruby-forum.com/u/lys0212)\
**Post date:** [June 16, 2011, 8:37am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358/7 "2011-06-16T08:37:05Z")

</div>

## replay Wrote: i try to update nginx to 1.0.4 ,but i meet another problem,when i use nginx 1.0.1 or 1.0.4 after about10 hours or more ,the nginx don’t working i cant open the web or the nginx\_status information,Surprising that the nginx process still exist .if happen this ,i must restart nginx.when i back to use nginx 1.0.0, the problem willn’t appear.

> library or the nginx module.
> 
> > 
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,207390,207440#msg-207440](http://forum.nginx.org/read.php?2,207390,207440#msg-207440)
