[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fastcgipp-users] SIGPIPE causes SEGFAULT

From: Volker Schreiner
Subject: [Fastcgipp-users] SIGPIPE causes SEGFAULT
Date: Tue, 9 Nov 2010 01:16:37 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10

Hi Fastcgi++ Users,

I developed an Webapplication and implemented a thread per Request
concept. This means one Request is
handled in one thread. If i use nginx as a webserver and create up to 50
concurrent Requests for
1000 Requests it seems that this pushes my test system to its envelope.
This means the nginx Webserver is unable
to handle the connections and the client creates a SIGPIPE Unix Signal
that gets forwarded to the webapplication by
the nginx Webserver. This SIGPIPE Signal seems to cause a Segmentations
Fault in the Fastcgipp::Transceiver::Buffer::freeRead () method.
The core dump of gdb looks like following:

(gdb) where
#0  0x00388006 in ?? () from /usr/lib/
#1  0x0036ffce in Fastcgipp::Transceiver::Buffer::freeRead (
    this=0xa93794e0, size=16) at transceiver.cpp:177
#2  0x0037054f in Fastcgipp::Transceiver::transmit (this=0xbf868e64)
    at transceiver.cpp:43
#3  0x0036be5d in Fastcgipp::Request<char>::complete() ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/
#4  0x0036c0cf in Fastcgipp::Request<char>::handler() ()
   from /usr/lib/
#5  0x081373be in Fastcgipp::Manager<controller::HttpRequest>::handler (
    this=0xbf868e64) at /usr/include/fastcgi++/manager.hpp:345
#6  0x081355cc in main () at ../src/main.cpp:80

I am not sure it this error is caused by the implementation of nginx or
fastcgi++ or my webapplication so i would be
happy if someone could guide me the right way to avoid this segmentation
fault that hangs up the whole webapplication and result in a 502 Bad
Gateway error by nginx. I use version 0.7.65 of nginx that is
distributed with Ubuntu and the
fastcgi++-2.0beta-3dab986e version of fastcgi++. If there are some
questions that needs to be answered i am pleased
to answer it.


Volker Schreiner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]