cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jcheng
Level 5

QUESTION: (P0) coredump when running FlxStat test program in Linux

Hi,

We tried to compile our FlxStat test program in Linux. When we run it, linking with the .so libraries, we get a core dump at the first call of the FlxStat API. Here is the stack trace:

(gdb) bt
#0 0x4000ae2c in fixup () from /lib/ld-linux.so.2
#1 0x4000ade0 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#2 0x40130f12 in rwlock_have_already () from /lib/i686/libpthread.so.0
#3 0x4013081b in pthread_rwlock_rdlock () from /lib/i686/libpthread.so.0
#4 0x42022d8a in __dcigettext () from /lib/i686/libc.so.6
#5 0x42022b25 in dcgettext () from /lib/i686/libc.so.6
#6 0x4207b8c7 in strerror_r () from /lib/i686/libc.so.6
#7 0x4207b715 in strerror () from /lib/i686/libc.so.6
#8 0x4003bf43 in l_set_error ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#9 0x4009333f in l_open_file ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#10 0x4008ecca in l_init_file ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#11 0x400466bc in l_next_conf_or_marker ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#12 0x4003e496 in lm_start_real ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#13 0x4003dfaa in l_checkout ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#14 0x4003dd7f in lc_checkout ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#15 0x40035fcb in s_flxStatCheckForFNMLicense ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#16 0x40035c8c in flxStatNew ()
from /home/greid/FLEXnet/platform_linux/FlxStat/lib/libFlxStatImpl.so
#17 0x08048c23 in main (argc=1, argv=0xbffff524) at StatTest.c:117
#18 0x420158f7 in __libc_start_main () from /lib/i686/libc.so.6

Not sure if this is a compatibility issue? Any suggestions? BTW the same program runs in Windows without a problem.

Thanks,
Johnson
Labels (1)
0 Kudos
(5) Replies
lnielsen
Level 4

Hmm, what are you linking with? You should only link with libFlxStat.so (-lFlxStat).
0 Kudos
jcheng
Level 5

I was linking with both libFlxStat and libFlxStatImpl, maybe that was the problem. I linked with libFlxStatImpl because it seems to contain the lc_* commands which I couldn't really find elsewhere.

Thanks,
Johnson
0 Kudos
lnielsen
Level 4

Did you solve this? otherwise give me a call and let's discuss.

Thanks
Lars
0 Kudos
jcheng
Level 5

When i stopped linking with the FlxStatImpl library, the problem seems to be solved. However I had to remove the lc_* functions because they became unresolved at compile time, and therefore couldn't use our original test code. I think maybe I am not linking some other FLEX library that provides these. Do you have any idea what it might be?

Thanks,
Johnson
0 Kudos
greidplatform
Level 4

This issue is resolved. We are able to properly build with both libraries.

Greg
0 Kudos