# Nginx core dump

**URL:** <https://www.ruby-forum.com/t/nginx-core-dump/194281>\
**Category:** NGINX\
**Created:** [September 2, 2010, 12:22am UTC](https://www.ruby-forum.com/t/nginx-core-dump/194281 "2010-09-02T00:22:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/46a35a/32.png) [@iceman](https://www.ruby-forum.com/u/iceman)\
**Post date:** [September 2, 2010, 12:22am UTC](https://www.ruby-forum.com/t/nginx-core-dump/194281/1 "2010-09-02T00:22:01Z")

</div>

Hi

We are using the nginx imap mail module and we are seeing coredumps

Copyright 2004 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 “amd64-marcel-freebsd”…  
Core was generated by `nginx’.  
Program terminated with signal 11, Segmentation fault.  
Reading symbols from /home/y/lib/libssl.so.3…done.  
Loaded symbols for /home/y/lib/libssl.so.3  
Reading symbols from /home/y/lib/libcrypto.so.3…done.  
Loaded symbols for /home/y/lib/libcrypto.so.3  
Reading symbols from /usr/lib32/compat/libc.so.4…done.  
Loaded symbols for /usr/lib32/compat/libc.so.4  
Reading symbols from /libexec/ld-elf32.so.1…done.  
Loaded symbols for /libexec/ld-elf32.so.1  
#0 0x0101f169 in ngx\_ssl\_write (c=0x1098040,  
data=0xffffffff , size=20532628)  
at src/event/ngx\_event\_openssl.c:1079  
1079 src/event/ngx\_event\_openssl.c: No such file or directory.  
in src/event/ngx\_event\_openssl.c  
(gdb) bt  
#0 0x0101f169 in ngx\_ssl\_write (c=0x1098040,  
data=0xffffffff , size=20532628)  
at src/event/ngx\_event\_openssl.c:1079  
#1 0x01022345 in ngx\_mail\_send (wev=0x1396e28)  
at src/mail/ngx\_mail\_handler.c:559  
#2 0x01025ad6 in ngx\_mail\_imap\_auth\_state (rev=0x126ae28)  
at src/mail/ngx\_mail\_imap\_handler.c:360  
#3 0x0101dcd9 in ngx\_kqueue\_process\_events (cycle=0x1050028, timer=500,

```
flags=1) at src/event/modules/ngx_kqueue_module.c:689

```

#4 0x01014ca9 in ngx\_process\_events\_and\_timers (cycle=0x1050028)  
at src/event/ngx\_event.c:245  
#5 0x0101b969 in ngx\_worker\_process\_cycle (cycle=0x1050028, data=0x0)  
at src/os/unix/ngx\_process\_cycle.c:791  
#6 0x01019ee7 in ngx\_spawn\_process (cycle=0x1050028,  
proc=0x101b89c , data=0x0,  
name=0x1030d3e “worker process”, respawn=Cannot access memory at  
address 0xffffdc18  
) at src/os/unix/ngx\_process.c:194  
#7 0x0101b66d in ngx\_reap\_children (cycle=0x1050028)  
at src/os/unix/ngx\_process\_cycle.c:612  
#8 0x0101abbb in ngx\_master\_process\_cycle (cycle=0x1050028)  
at src/os/unix/ngx\_process\_cycle.c:180  
#9 0x0100350a in main (argc=3, argv=0xffffde40) at  
src/core/nginx.c:396

'any ideas on debugging this?

thanks!

Posted at Nginx Forum:

> **[nginx core dump](https://forum.nginx.org/read.php?2,126146,126146#msg-126146)**
>
> Hi We are using the nginx imap mail module and we are seeing coredumps Copyright 2004 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...

---

<div class="post-metadata">

**Author:** ![iceman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/46a35a/32.png) [@iceman](https://www.ruby-forum.com/u/iceman)\
**Post date:** [September 2, 2010, 12:33am UTC](https://www.ruby-forum.com/t/nginx-core-dump/194281/2 "2010-09-02T00:33:08Z")

</div>

-bash-3.2$ nginx -V  
nginx version: nginx/0.7.65  
built by gcc 2.95.3 20010315 (release)  
TLS SNI support disabled  
configure arguments: --prefix=/home/y  
–conf-path=/home/y/conf/ymail\_nginx/nginx.conf  
–pid-path=/home/y/var/run/ymail\_nginx.pid  
–lock-path=/home/y/var/run/ymail\_nginx.lock  
–error-log-path=/home/y/logs/ymail\_nginx/error.log --without-http  
–without-http\_rewrite\_module --with-mail --with-mail\_ssl\_module  
–with-debug --user=nobody --with-cc=/home/y/bin/gcc  
–with-cc-opt=-I/home/y/include --with-ld-opt=‘-L/home/y/lib -Wl,-rpath  
/home/y/lib’

Posted at Nginx Forum:

> **[Re: nginx core dump](https://forum.nginx.org/read.php?2,126146,126149#msg-126149)**
>
> Hi We are using the nginx imap mail module and we are seeing coredumps Copyright 2004 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...

---

<div class="post-metadata">

**Author:** ![iceman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/46a35a/32.png) [@iceman](https://www.ruby-forum.com/u/iceman)\
**Post date:** [September 2, 2010, 2:22am UTC](https://www.ruby-forum.com/t/nginx-core-dump/194281/3 "2010-09-02T02:22:37Z")

</div>

Hello!

On Wed, Sep 01, 2010 at 06:20:42PM -0400, iceman wrote:

> We are using the nginx imap mail module and we are seeing coredumps

[…]

> (gdb) bt  
> #0 0x0101f169 in ngx\_ssl\_write (c=0x1098040,  
> data=0xffffffff , size=20532628)  
> at src/event/ngx\_event\_openssl.c:1079  
> #1 0x01022345 in ngx\_mail\_send (wev=0x1396e28)  
> at src/mail/ngx\_mail\_handler.c:559  
> #2 0x01025ad6 in ngx\_mail\_imap\_auth\_state (rev=0x126ae28)  
> at src/mail/ngx\_mail\_imap\_handler.c:360

In 0.7.65 (as you claim in next message)  
src/mail/ngx\_mail\_imap\_handler.c:360 isn’t in  
ngx\_mail\_imap\_auth\_state() function, it’s in  
ngx\_mail\_imap\_authenticate(). And the only call to  
ngx\_mail\_send() in ngx\_mail\_imap\_auth\_state() is at line 298.

Do you have any patches applied?

Maxim D.

---

<div class="post-metadata">

**Author:** ![iceman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/46a35a/32.png) [@iceman](https://www.ruby-forum.com/u/iceman)\
**Post date:** [September 2, 2010, 3:09am UTC](https://www.ruby-forum.com/t/nginx-core-dump/194281/4 "2010-09-02T03:09:27Z")

</div>

yes we have some changes.

#6 0x01019ee7 in ngx\_spawn\_process (cycle=0x1050028,  
proc=0x101b89c , data=0x0,  
name=0x1030d3e “worker process”, respawn=Cannot access memory at  
address 0xffffdbf8

what does this mean? is this similar to  
[http://nginx.org/pipermail/nginx-ru/2009-October/029210.html](http://nginx.org/pipermail/nginx-ru/2009-October/029210.html)

i can give you the dumps of any variables you would like us to examine.

thanks again for your help

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