discuss-gnustep
[Top][All Lists]
Advanced

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

Re: gs-base-1.0.0 segfaults


From: Dirk Lattermann
Subject: Re: gs-base-1.0.0 segfaults
Date: Sat, 28 Apr 2001 20:38:11 +0200
User-agent: Mutt/1.2.4i

On Sat, Apr 28, 2001 at 05:54:26PM +0100, Richard Frith-Macdonald wrote:
> 
> On Saturday, April 28, 2001, at 12:18 PM, Dirk Lattermann wrote:
> 
> > Hello,
> >
> > I'm trying to get the 1.0.0 release to work on my machine (linux 2.4.3 
> > on i686).
> > I'm following the instructions in the GNUstep Build guide by Dennis 
> > Leeuw,
> > with the exception that I'm using gcc 2.95.3, because 2.95.2 won't 
> > compile
> > anymore with glibc-2.2.2.
> >
> > Everything compiles fine, but every gnustep prg I use (e.g. defaults) 
> > yields
> > a segmentation fault. Is this known to be the case because of gcc 
> > 2.95.3?
> > If not, where could the fault possibly lie?
> > I built the compiler with --enable-threads, and in the gnustep-
> > objc-1.0.0
> > library I tried THREADING=posix as well as single in the GNUmakefile.
> 
> There was a problem with a change in behavior of the /proc filesystem in
> the 2.4 (and perhaps 2.3) series kernels, and an error crept in to the 
> fix
> for it.  That's probably what's causing the crash.
> 
> Change the condition of the while loops in the +load method in 
> NSProcessInfo.m
> to be -
> 
> 'while (argument < _gnu_noobjc_argc)'

Thanks for replying!
I changed two "while(1)" loops, between them was one already with the condition
you mentioned.  Now, defaults segfaults at a different position: (please
see backtrace).

Greetings, Dirk.


(gdb) run
Starting program: 
/usr/local/GNUstep/System/Tools/ix86/linux-gnu/gnu-gnu-gnu-xgps/defaults 
[New Thread 1024 (LWP 11191)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11191)]
0x40144c18 in +[NSString stringWithCString:] ()
   from 
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-base.so.1
(gdb) bt
#0  0x40144c18 in +[NSString stringWithCString:] ()
   from 
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-base.so.1
#1  0x40137419 in _gnu_process_args ()
   from 
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-base.so.1
#2  0x40137f85 in +[NSProcessInfo initialize] ()
   from 
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-base.so.1
#3  0x401f9815 in __objc_send_initialize ()
   from /usr/local/GNUstep/System/Libraries/ix86/linux-gnu/libobjc.so.1
#4  0x401f9662 in __objc_init_install_dtable ()
   from /usr/local/GNUstep/System/Libraries/ix86/linux-gnu/libobjc.so.1
#5  0x401fa48f in objc_msg_lookup ()
   from /usr/local/GNUstep/System/Libraries/ix86/linux-gnu/libobjc.so.1
#6  0x8048fb1 in main ()
#7  0x4026151c in __libc_start_main () from /lib/libc.so.6
#8  0x230cec in ?? ()
Cannot access memory at address 0x81e58955
(gdb)






reply via email to

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