[OGo-Developer] gsmake2 branch segmentation fault

Helge Hess developer@opengroupware.org
Mon, 25 Feb 2008 01:51:51 +0100


On 24.02.2008, at 21:33, Sebastian Reitenbach wrote:
> 2008-02-21 19:49:26.724 ogo-webui-1.1[8491] autorelease called  
> without pool
> for object (80f7288) of class NSMethodSignature in thread <NSThread:
> 0x80e1738>


I suppose this says that no top-level autorelease pool is set, which  
is weird. ogo-webui actually calls the SOPE  
WOWatchDogApplicationMain() function.

And as far as I can see this looks like:
---snip---
int WOWatchDogApplicationMain
(NSString *appName, int argc, const char *argv[])
{
   NSAutoreleasePool *pool;
   NSUserDefaults *ud;

   pool = [[NSAutoreleasePool alloc] init]; // <<==
#if LIB_FOUNDATION_LIBRARY || defined(GS_PASS_ARGUMENTS)
   {
     extern char **environ;
     [NSProcessInfo initializeWithArguments:(void*)argv count:argc
                    environment:(void*)environ];
   }
#endif
---snap---

Something which might help to isolate the problem is this:
---snip---
@implementation NSMethodSignature(Hack)
- (void)autorelease {
   [super autorelease];
}
@end
---snap---
and then do a breakpoint on that method and see who calls the  
autorelease on the object and why there is no pool.

Helge
-- 
Helge Hess
http://www.helgehess.eu/