Skip to content

Instantly share code, notes, and snippets.

@naoina
Created November 10, 2011 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naoina/1353985 to your computer and use it in GitHub Desktop.
Save naoina/1353985 to your computer and use it in GitHub Desktop.
meinheld segmentation fault
# -*- coding: utf-8 -*-
u"""
環境:
Linux 3.1.0 x86_64
Python 2.7.2
meinheld 0.4.13
Flask 0.8
greenlet 0.3.1
gcc 4.6.2
ffmpeg 2011-10-13ビルド (リビジョン不明)
実行環境はvirtualenvおよびpipで構築
再現手順:
1. アプリケーションの実行:
python app.py
2. ffmpegを使ってPOSTデータを送信:
ffmpeg -i foo.mp3 -f mp3 http://localhost:9001/
ffmpegの入力はmp3に限らない。出力はmp3およびwebmで再現。
"""
from flask import Flask
from meinheld import server
app = Flask(__name__)
@app.route("/", methods=['POST'])
def index():
return ''
if __name__ == '__main__':
server.listen(("0.0.0.0", 9001))
server.run(app)
@coderbuzz
Copy link

I'm also have the same error running websocket_chat.py demo: Segmentation fault

Is there any solution for this? After 4 months?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment