Broken with endian issues on PowerPC in trusty

Bug #1377561 reported by Doug Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uwsgi (Ubuntu)
New
Undecided
Unassigned

Bug Description

The version of uwsgi in trusty (1.9.17.1-5build5) suffers from an endian bug that causes it to fail on PowerPC because PowerPC is big-endian. For example, if an incoming request passed on from nginx with uwsgi_pass is 661 bytes, I get a message like this in the log:

invalid request block size: 38146 (max 4096)...skip

I know this is an endian issue, because 661 is 0x0295 in hex, and 38146 is 0x9502 in hex. Installing a newer version of uwsgi from pip fixes it (and confirms in the log that the request is actually 661 bytes). It would probably be good to fix it in Ubuntu's distribution too. The upstream fix appears to have been added in 1.9.18:

http://uwsgi-docs.readthedocs.org/en/latest/Changelog-1.9.18.html
- fixed uwsgi native protocol support on big endian machines

Ubuntu Release: Ubuntu 14.04.1 LTS
Package Version: 1.9.17.1-5build5

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.