Welcome! Log In Create A New Profile

Advanced

{module dev}include <sys/time.h> on 32bit linux cause segmentation fault?

Conan
May 25, 2011 11:38PM
hi, I'm wring a nginx module which is hooked at
NGX_HTTP_ACCESS_PHASE. Segmentation fault happened when calling
ngx_log_error(NGX_LOG_ERR, r->connection->log, "xxx") in my module's
handler(which will handle every request). I found r->connection->log = 0x0
when debug with gdb.

On 64bit centos/ubuntu/macos module works well. Segmentation fault seem
only occurs on 32bit linux(ubuntu).

When I comment out #include <sys/time.h>, segmentation fault disappeared.
Attachment is my module's skeleton.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

{module dev}include <sys/time.h> on 32bit linux cause segmentation fault? Attachments

Conan 2650 May 25, 2011 11:38PM

Re: {module dev}include <sys/time.h> on 32bit linux cause segmentation fault?

Igor Sysoev 1296 May 26, 2011 01:20AM



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

Online Users

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