This is the mail archive of the
mailing list for the GCC project.
Re: Odd problem with libobjc
- From: Nicola Pero <nicola dot pero at meta-innovation dot com>
- To: GCC <gcc-help at gcc dot gnu dot org>
- Date: Sun, 24 Jul 2011 18:59:27 +0100
- Subject: Re: Odd problem with libobjc
- References: <1311471562.22792.8.camel@german-desktop>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb523b6c0 (LWP 24619)]
> 0xb6e00fe6 in objc_msg_lookup (receiver=0x85b1988, op=0xb7211da0)
> at /home/german/Instalados/GCC/gcc-4.6.0/libobjc/sendmsg.c:397
> 397 /home/german/Instalados/GCC/gcc-4.6.0/libobjc/sendmsg.c: No such
> file or directory.
> in /home/german/Instalados/GCC/gcc-4.6.0/libobjc/sendmsg.c
> Current language: auto; currently c
> home/german/Instalados/GCC was the path where I extracted the GCC
> tarball, when I install it (GCC 4.6.0). The GCC folder don't exist
> anymore. So I suppose this is a bad configuration problem. I have
> installed GCC at /usr/local/bin/gcc, but why it search files at my home
> directory? Any advice to solve this? Thanks.
The segmentation fault is most likely caused by trying to send a message
to an object which has already been deallocated. In other words, it is most
likely a bug in the program (check retain/release logic etc), not in libobjc.
It is not a configuration problem. ;-)
The mention of no longer existing source files in the error messages or in gdb
most likely doesn't have much to do with the cause of the segmentation fault. It's
just trying to tell you where the crash occurred. If you have deleted the source files,
they no longer exist, but that should not be a particular problem. :-)