Can you try with latest mod_wsgi source code and see whether it exists in that
version also?
The latest version is 4.4.10.
I am pretty sure I saw an issue where it would crash initially but on second
time was okay. This came up recently in discussion with someone else about
something but when I went looking for change description I couldn't find it. Is
possible it was during development of a specific version when I was making
changes for some one.
Can you also find where the Apache header files are installed and find httpd.h.
Look for the request_rec stricture and send me the last part of it.
/** remote address information from conn_rec, can be overridden if
* necessary by a module.
* This is the address that originated the request.
*/
apr_sockaddr_t *useragent_addr;
char *useragent_ip;
};
I want to see if the Linux distro has perhaps back ported a change to which
changed the ABI without an Apache MMN bump. The latest mod_wsgi version should
cope with it, but maybe it isn't.
Graham
On 13/03/2015, at 10:29 AM, Chris Brinker <[email protected]> wrote:
> Hello,
>
> We have been wanting to use some of the latest features around chunked
> encoding support so we recently went down the path of compiling our own
> mod_wsgi for usage with the pre-compiled apache 2.4 that ships with amazon
> linux. We also use AWS Elastic Beanstalk for our deployments, and for some
> reason we are seeing a single segfault during the deployment process that
> goes away after the first most request. Subsequent restarts of the apache
> process do not re-exhibit this behavior, the only way to watch it is during a
> (re)deploy of code.
>
> Any hints as to what could be the issue, or better ways to debug than we
> have already employed, would be greatly appreciated.
>
> Some syslog context around the event:
>
> Mar 12 20:19:46 prod-speech-2-85bb5279 httpd[15427]: [Thu Mar 12
> 20:19:46.718654 2015] [mpm_prefork:notice] [pid 15418] AH00163: Apache/2.4.10
> (Amazon) mod_wsgi/4.4.7 Python/2.7.8 OpenSSL/1.0.1k-fips configured --
> resuming normal operations
> Mar 12 20:19:46 prod-speech-2-85bb5279 httpd[15427]: [Thu Mar 12
> 20:19:46.718679 2015] [core:notice] [pid 15418] AH00094: Command line:
> '/usr/sbin/httpd -D FOREGROUND'
> Mar 12 20:19:49 prod-speech-2-85bb5279 kernel: [ 3585.331469] traps:
> httpd[15439] general protection ip:7f4c352195d8 sp:7f4c311beb10 error:0 in
> libpython2.7.so.1.0[7f4c3510e000+175000]
> Mar 12 20:19:49 prod-speech-2-85bb5279 httpd[15427]: [Thu Mar 12
> 20:19:49.319937 2015] [wsgi:error] [pid 15436] [client 127.0.0.1:57494]
> Truncated or oversized response headers received from daemon process 'wsgi':
> /opt/python/current/app/application.py
> Mar 12 20:19:49 prod-speech-2-85bb5279 httpd[15430]: 127.0.0.1 - -
> [12/Mar/2015:20:19:49 +0000] "GET / HTTP/1.1" 500 527 "-" "Python-urllib/2.6"
> \Mar 12 20:19:49 prod-speech-2-85bb5279 httpd[15427]: [Thu Mar 12
> 20:19:49.721978 2015] [core:notice] [pid 15418] AH00051: child pid 15431 exit
> signal Segmentation fault (11), possible coredump in /tmp
>
> As mentioned in the syslog I was able to get a core dump during this issue,
> but unfortunately it isn't obvious what the issue is. Am I reading that there
> is a problem with select()? That doesn't sound right at all:
>
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Core was generated by `(wsgi:wsgi) -DFOREGROUND'.
> Program terminated with signal 11, Segmentation fault.
> #0 0x00007f4c3b599923 in select () at ../sysdeps/unix/syscall-template.S:81
> 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
>
> Here is the script we are running to compile and install mod_wsgi (looks
> pretty straightforward, but maybe there is a hint in here?):
>
> yum erase -y mod24_wsgi*
> yum install -y httpd24-devel
> wget https://github.com/GrahamDumpleton/mod_wsgi/archive/4.4.7.zip
> unzip 4.4.7.zip
> cd mod_wsgi-4.4.7
> ./configure --with-python=/usr/bin/python2.7
> make
> make install
>
> The versions of apache we are seeing this with:
>
> # rpm -qa | grep httpd
> httpd24-tools-2.4.10-1.59.amzn1.x86_64
> httpd24-2.4.10-1.59.amzn1.x86_64
> httpd24-devel-2.4.10-1.59.amzn1.x86_64
> httpd24-debuginfo-2.4.10-1.59.amzn1.x86_64
> mod24_ssl-2.4.10-1.59.amzn1.x86_64
>
> Thanks for any help you might have,
> Chris Brinker
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.