<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi All,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It’s not often, but sometimes an worker process can hang on the “ngx_free(file->name)” in function ngx_close_cached_file(). Following is part of GDB backtrace:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>(gdb) bt<o:p></o:p></p><p class=MsoNormal>#0 0x0000000800f5e7b9 in _pthread_mutex_init_calloc_cb () from /lib/libc.so.7<o:p></o:p></p><p class=MsoNormal>#1 0x0000000800f62f4d in free () from /lib/libc.so.7<o:p></o:p></p><p class=MsoNormal>#2 0x0000000000423537 in ngx_close_cached_file (cache=0x8012495f8, file=0x8090f1700, min_uses=0, log=0x8031bc160)<o:p></o:p></p><p class=MsoNormal> at src/core/ngx_open_file_cache.c:1021<o:p></o:p></p><p class=MsoNormal>#3 0x000000000042383e in ngx_expire_old_cached_files (cache=0x8012495f8, n=2, log=0x8031bc160)<o:p></o:p></p><p class=MsoNormal> at src/core/ngx_open_file_cache.c:1090<o:p></o:p></p><p class=MsoNormal>#4 0x000000000042392b in ngx_open_file_cleanup (data=0x80527eee8) at src/core/ngx_open_file_cache.c:973<o:p></o:p></p><p class=MsoNormal>#5 0x00000000004082ad in ngx_destroy_pool (pool=0x8032b9000) at src/core/ngx_palloc.c:54<o:p></o:p></p><p class=MsoNormal>#6 0x00000000004512eb in ngx_http_free_request (r=0x801206000, rc=0) at src/http/ngx_http_request.c:3196<o:p></o:p></p><p class=MsoNormal>……<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The memory for file->name is perfect and not corrupted. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We are running on FreeBSD 7.4. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anybody had the same problem or know anything about it?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you very much<o:p></o:p></p><p class=MsoNormal>Yong<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>