Re: [ooc-compiler] Segmentation fault during installation
Brought to you by:
mva
|
From: Jan <juh...@mn...> - 2004-02-08 20:30:09
|
Hi Tim,
thanks a lot for your quick response!
Tim Teulings wrote:
>> Which Linux distribution and version do you use? Which gcc version do
>> you use (gcc --version)?
gcc (GCC) 3.3.1 (SuSE Linux)
SuSE 9.0 professional.
>> Are you sure, that libgc is used? What does the configure script output
>> tell regarding libgc?
Well, that's funny, libgc is not mentioned in conigure output at all. It
only checks for gc.h:
==
juh@linux:~/Daten/Download/tmp/oo2c_32-2.0.18> ./configure >log.txt
juh@linux:~/Daten/Download/tmp/oo2c_32-2.0.18> grep <log.txt libgc
juh@linux:~/Daten/Download/tmp/oo2c_32-2.0.18> grep <log.txt gc
checking for gcc... gcc
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for GC_malloc in -lgc... yes
checking gc/gc.h usability... yes
checking gc/gc.h presence... yes
checking for gc/gc.h... yes
==
But if I'm not wrong, "GC_malloc in -lgc... yes" is showing that libgc
is used, right?
>> Are you sure, you are not running out of memory
>> (that would likely happen, if you oo2c doe snot use libgc)? For some
I don't think so, at least when looking at my system monitor (is there
another way to check this?).
>> distribution there should be a package for libgc. Make sure, that you
>> either use that or a manual installation (and not both).
As far as I can tell (by using "pin libgc") there is no rpm in SuSU 9.0.
I'm not 100% sure if I completely removed the remains of different
gc versions that I tried. I assumed that successful installation of
gc6.1. should replace any remains, though I'm not 100% sure on this.
>> Can you start the last command that crahsed manually from gdb (gdb
<oo2c
>> command and parameter>), start it (run) and if it crashes send the
>> resulting stack trace to the list (bt)?
Okay, here it comes:
==
juh@linux:~/Daten/Download/tmp/oo2c_32-2.0.18> gdb ./stage0/oo2c
GNU gdb 5.3.92
[...]
This GDB was configured as "i586-suse-linux"...
(gdb) run --config oo2crc-install.xml -r lib -r . --build-package liboo2c
Starting program:
/home/juh/Daten/Download/tmp/oo2c_32-2.0.18/stage0/oo2c --config
oo2crc-install.xml -r lib -r . --build-package liboo2c
[New Thread 16384 (LWP 28279)]
- /home/juh/Daten/Download/tmp/oo2c_32-2.0.18/lib/pkginfo.xml
- /home/juh/Daten/Download/tmp/oo2c_32-2.0.18/pkginfo.xml
- /home/juh/Daten/Download/tmp/oo2c_32-2.0.18/lib/pkginfo.xml
- /home/juh/Daten/Download/tmp/oo2c_32-2.0.18/pkginfo.xml
- lib/src/liboo2c.Mod
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 28279)]
0x081038d5 in OOC_Scanner_Pragma__ParsePragma_GetBool.18 () at
obj/OOC/Scanner/Pragma.c:283
283 i1 =
OOC_TYPE_TEST(((OOC_INT32)OOC_TYPE_TAG((_check_pointer(i0, 7881)))),
&_td_Config__BooleanVarDesc);
(gdb) bt
#0 0x081038d5 in OOC_Scanner_Pragma__ParsePragma_GetBool.18 () at
obj/OOC/Scanner/Pragma.c:283
#1 0x08104662 in OOC_Scanner_Pragma__ParsePragma_BoolExpression.26 ()
at obj/OOC/Scanner/Pragma.c:797
#2 0x08104e24 in OOC_Scanner_Pragma__ParsePragma (state=0xbfffee40,
state__tag=0x8187a00) at obj/OOC/Scanner/Pragma.c:1202
#3 0x08105710 in OOC_Scanner_Pragma__AddSymbol (state=0xbfffee40,
state__tag=0x8187a00, inputMode=0xbfffee32 "\001K\032", id=75 'K',
cstart=1806, cend=1808, line=73, column=26) at
obj/OOC/Scanner/Pragma.c:1410
#4 0x081013d3 in OOC_Scanner__ScanInput (builder=0x81e0788,
defaultPragmas=0x81df5c0, scanOptions=63) at obj/OOC/Scanner.c:1531
#5 0x08074bfb in OOC_Auxiliary_ParseModule__ParseModule (m=0x82004b8,
checkModuleName=0 '\0', createNamespace=0 '\0',
writeSymbolFile=0 '\0', abortAfterImport=1 '\001',
libraryName=0x820fa08, uses=0x81e05a8, ast=0xbfffef38, symTab=0xbfffef3c,
pragmaHistory=0xbfffef40, errList=0x81e0788) at
obj/OOC/Auxiliary/ParseModule.c:35
#6 0x080baa30 in OOC_Make__RulesDesc_GetImports (r=0x81dc0e8,
module=0x82004b8) at obj/OOC/Make.c:538
#7 0x080bafbf in OOC_Make__RulesDesc_UpdateSymbolFile (r=0x81dc0e8,
module=0x82004b8) at obj/OOC/Make.c:815
#8 0x080bd272 in OOC_Make__RulesDesc_Update (r=0x81dc0e8,
module=0x82004b8, fileId=1 '\001') at obj/OOC/Make.c:2062
#9 0x080bccfe in OOC_Make__RulesDesc_UpdateLibrary (r=0x81dc0e8,
module=0x82004b8) at obj/OOC/Make.c:1895
#10 0x080bd0af in OOC_Make__RulesDesc_Update (r=0x81dc0e8,
module=0x82004b8, fileId=19 '\023') at obj/OOC/Make.c:2006
#11 0x0815b467 in oo2c__BuildPackage (pkg=0x81f8a80, rep=0x8215410,
install=0 '\0') at obj/oo2c.c:441
#12 0x0815cce6 in OOC_oo2c_init () at obj/oo2c.c:1183
#13 0x0815d59a in main (argc=2, argv=0x2) at obj/oo2c_.c:345
(gdb)
==
I hope that helps to clarify the problem.
Thanks again,
Jan
|