On Sep 27, 11:02 pm, Graham Dumpleton <[email protected]>
wrote:
> Read:
>
> http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions
>
Done and ruled out any MySQL conflict, mod_python and other modules
mentioned

> Section about crashes.
>
> Also see:
>
> http://code.google.com/p/modwsgi/wiki/ApplicationIssueshttp://code.google.com/p/modwsgi/wiki/DebuggingTechniques
>
> In short, try using main interpreter. Ensure mod_python not being
> loaded. Disable php if you can.
>
> Otherwise use gdb as documented to get stack trace and investigate.
>
using gdb as stated was unsuccessful, taking all the steps in
DebuggingTechniques, I only get:
"Script timed out before returning headers"
In the log and no segfault in gdb when attaching to either the
mod_wsgi process or apache.

However, the segfault only happens on the first request in each apache
process,
subsequent requests run fine.

> Graham
>
>
>
> On Monday, September 27, 2010, aiden bell <[email protected]> wrote:
>
> > On Sep 27, 10:04 pm, "[email protected]" <[email protected]>
> > wrote:
> >> On Sep 27, 2010, at 4:48 PM, aiden bell wrote:
>
> >> > Hi All,
>
> >> > Getting odd segfaults in mod_wsgi/3.2, python 2.6.4, apache 2.2.16 on
> >> > Fedora 13
>
> >> > Down to the point ... CodeA segfaults and CodeB doesn't whereas they
> >> > should both be semantically the same. The segfault
> >> > is the standard message "child pid 1234 exit signal Segmentation fault
> >> > (11)"
>
> >> > Everything ran fine until this one change
>
> >> What one change?
>
> > As an aside to the `if(True):` I also can't catch the error with gdb,
> > the request
> > just hangs. Also getting segfaults with any subsequent edit that
> > involves adding
> > an if statement! Odd stuff.
>
> >> > (tracked down through
> >> > Eclipse's local history). There *was* an actual computed value
> >> > where `True` resides ... but I took it out to make the issue as simple
> >> > as possible.
>
> >> > CodeA:
>
> >> > ...
> >> > if self.some_var:
> >> >    # do something
> >> > else:
> >> >    if(True):
> >> >        raise SomeException("Some Message")
> >> > ...
>
> >> > CodeB:
>
> >> > ...
> >> > if self.some_var:
> >> >    # do something
> >> > else:
> >> >    raise SomeException("Some Message")
> >> > ...
>
> >> > Thanks in advance!
> >> > Aiden
> >> >http://stackoverflow.com/users/104040/aiden-bell
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "modwsgi" group.
> >> > To post to this group, send email to [email protected].
> >> > To unsubscribe from this group, send email to 
> >> > [email protected].
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/modwsgi?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "modwsgi" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to