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 at http://groups.google.com/group/modwsgi?hl=en.
