cfgldb error on Linux
Posted in 1999
Topics: Server Administration, Platform-Specific Issues
I have fgldb 7.20UD7 under RedHat 6.0, and I'm trying to generate a new fgldb (myfgldb) with my own C functions. (I know about libc 2.2 problem, because cfglgo has worked using gcc20 compiler !! ) If I use a fgiusr.c with no added functions, myfgldb works !! But If I add some function to fgiusr.c, I get an Segmentation fault running myfgldb. Doing an "gdb myfgldb core", the output of bt command is: #0 0x806adf9 in _addstr () #1 0x806adba in addgstr () #2 0x806a315 in addfunc () #3 0x806a363 in addcf () #4 0x806a415 in addcfuncs () #5 0x806e6dd in loadone () #6 0x806e5c6 in loadfile () #7 0x806ed9b in loadprog () #8 0x8059c9a in initload () #9 0x804f041 in main () Some idea? Thanks in advance
Post your fgiuser.c in case the problem is there. Art S. Kagel Cecilio Albero wrote: > > I have fgldb 7.20UD7 under RedHat 6.0, and I'm trying to generate a new > fgldb (myfgldb) with my own C functions. > (I know about libc 2.2 problem, because cfglgo has worked using gcc20 > compiler !! ) > > If I use a fgiusr.c with no added functions, myfgldb works !! > But If I add some function to fgiusr.c, I get an Segmentation fault running > myfgldb. > > Doing an "gdb myfgldb core", the output of bt command is: > #0 0x806adf9 in _addstr () > #1 0x806adba in addgstr () > #2 0x806a315 in addfunc () > #3 0x806a363 in addcf () > #4 0x806a415 in addcfuncs () > #5 0x806e6dd in loadone () > #6 0x806e5c6 in loadfile () > #7 0x806ed9b in loadprog () > #8 0x8059c9a in initload () > #9 0x804f041 in main () > > Some idea? > Thanks in advance
I have tested this stupid fgiusr.c, with the same results: #include "fgicfunc.h" int map() { int k; popint(&k); retint( k*8); return 1; } cfunc_t usrcfuncs[] = { "map",map,0, 0, 0, 0 }; Art S. Kagel <kagel@bloomberg.net> escribi' en el mensaje de noticias 38020E88.DE3309FB@bloomberg.net... > Post your fgiuser.c in case the problem is there. > > Art S. Kagel > > Cecilio Albero wrote: > > > > I have fgldb 7.20UD7 under RedHat 6.0, and I'm trying to generate a new > > fgldb (myfgldb) with my own C functions. > > (I know about libc 2.2 problem, because cfglgo has worked using gcc20 > > compiler !! ) > > > > If I use a fgiusr.c with no added functions, myfgldb works !! > > But If I add some function to fgiusr.c, I get an Segmentation fault running > > myfgldb. > > > > Doing an "gdb myfgldb core", the output of bt command is: > > #0 0x806adf9 in _addstr () > > #1 0x806adba in addgstr () > > #2 0x806a315 in addfunc () > > #3 0x806a363 in addcf () > > #4 0x806a415 in addcfuncs () > > #5 0x806e6dd in loadone () > > #6 0x806e5c6 in loadfile () > > #7 0x806ed9b in loadprog () > > #8 0x8059c9a in initload () > > #9 0x804f041 in main () > > > > Some idea? > > Thanks in advance