# SPDY giving HTTP 500

**URL:** <https://www.ruby-forum.com/t/spdy-giving-http-500/227333>\
**Category:** NGINX\
**Created:** [March 11, 2013, 10:44pm UTC](https://www.ruby-forum.com/t/spdy-giving-http-500/227333 "2013-03-11T22:44:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ct2k7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@ct2k7](https://www.ruby-forum.com/u/ct2k7)\
**Post date:** [March 11, 2013, 10:44pm UTC](https://www.ruby-forum.com/t/spdy-giving-http-500/227333/1 "2013-03-11T22:44:48Z")

</div>

I’ve compiled nginx with the SPDY patch, at the current latest, so nginx  
1.3.14. As far as I can tell, the make was fine, no errors. I’m  
compiling  
against openSSL of the system: OpenSSL 1.0.1c 10 May 2012, on my CentOS  
6.3  
server (OVH Kernel). Server has ok amount of RAM, at least 20GB is free.

./configure was with minimal options.

However, when a client attempts to connect over SPDY, they are faced  
with a  
HTTP 500 error. The errors logs aren’t the most useful,. indicating  
memory  
issues, and I can’t even find the error when the logging is set to  
debug.

Here’s the error log snippet pertinent:

2013/03/11 22:32:08 [emerg] 10589#0: \*1 malloc(18446744073709551615)  
failed  
(12: Cannot allocate memory), client: \*\*\*\*, server: \*\*\*\*, request: “GET  
/  
HTTP/1.1”, host: \*\*\*\*

Any ideas why nginx is trying to allocate so much memory?

Posted at Nginx Forum:

> **[SPDY giving HTTP 500](https://forum.nginx.org/read.php?2,237244,237244#msg-237244)**
>
> I've compiled nginx with the SPDY patch, at the current latest, so nginx 1.3.14. As far as I can tell, the make was fine, no errors. I'm compiling against openSSL of the system: OpenSSL 1.0.1c 10 May 2012, on my CentOS 6.3 server (OVH Kernel). Server...

---

<div class="post-metadata">

**Author:** ![ct2k7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@ct2k7](https://www.ruby-forum.com/u/ct2k7)\
**Post date:** [March 12, 2013, 7:51am UTC](https://www.ruby-forum.com/t/spdy-giving-http-500/227333/2 "2013-03-12T07:51:56Z")

</div>

On Tuesday 12 March 2013 01:44:01 ct2k7 wrote:

> Here’s the error log snippet pertinent:
> 
> 2013/03/11 22:32:08 [emerg] 10589#0: \*1 malloc(18446744073709551615) failed  
> (12: Cannot allocate memory), client: \*\*\*\*, server: \*\*\*\*, request: “GET /  
> HTTP/1.1”, host: \*\*\*\*
> 
> Any ideas why nginx is trying to allocate so much memory?

Could you show the debug log?

wbr, Valentin V. Bartenev

–

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![ct2k7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@ct2k7](https://www.ruby-forum.com/u/ct2k7)\
**Post date:** [March 12, 2013, 3:08pm UTC](https://www.ruby-forum.com/t/spdy-giving-http-500/227333/3 "2013-03-12T15:08:27Z")

</div>

On Tuesday 12 March 2013 01:44:01 ct2k7 wrote:

> Here’s the error log snippet pertinent:
> 
> 2013/03/11 22:32:08 [emerg] 10589#0: \*1 malloc(18446744073709551615) failed  
> (12: Cannot allocate memory), client: \*\*\*\*, server: \*\*\*\*, request: “GET /  
> HTTP/1.1”, host: \*\*\*\*
> 
> Any ideas why nginx is trying to allocate so much memory?

This bug was fixed in:  
[http://nginx.org/patches/spdy/patch.spdy-68\_1.3.14.txt](http://nginx.org/patches/spdy/patch.spdy-68_1.3.14.txt)

Thank you for the report.

wbr, Valentin V. Bartenev

–

> **[nginx: donation](http://nginx.org/en/donation.html)**
