Welcome! Log In Create A New Profile

Advanced

hanging on ngx_free(file->name) in function ngx_close_cached_file()

YongFeng Wu
August 06, 2012 11:46AM
Hi All,



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:



(gdb) bt

#0 0x0000000800f5e7b9 in _pthread_mutex_init_calloc_cb () from
/lib/libc.so.7

#1 0x0000000800f62f4d in free () from /lib/libc.so.7

#2 0x0000000000423537 in ngx_close_cached_file (cache=0x8012495f8,
file=0x8090f1700, min_uses=0, log=0x8031bc160)

at src/core/ngx_open_file_cache.c:1021

#3 0x000000000042383e in ngx_expire_old_cached_files (cache=0x8012495f8,
n=2, log=0x8031bc160)

at src/core/ngx_open_file_cache.c:1090

#4 0x000000000042392b in ngx_open_file_cleanup (data=0x80527eee8) at
src/core/ngx_open_file_cache.c:973

#5 0x00000000004082ad in ngx_destroy_pool (pool=0x8032b9000) at
src/core/ngx_palloc.c:54

#6 0x00000000004512eb in ngx_http_free_request (r=0x801206000, rc=0) at
src/http/ngx_http_request.c:3196

...



The memory for file->name is perfect and not corrupted.



We are running on FreeBSD 7.4.



Anybody had the same problem or know anything about it?



Thank you very much

Yong





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

hanging on ngx_free(file->name) in function ngx_close_cached_file()

YongFeng Wu 958 August 06, 2012 11:46AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 167
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