TurboFloat-Server segfaultSolved

Hi everybody!I have a really urgent problem. Currently I am facing a problem with the latest TurboFloat-Server v4.1.5.0.

On my Linux machines (Ubuntu 18.04.2 LTS and Ubuntu 19.04) the command

$ sudo ./turbofloatserver -config="TurboFloatServer-config.xml" -pdets="TurboActivate.dat" -a="XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"

ends with a segfault.Under Windows (Version 10.0.17763) the same command ends without any message and a '-x' run mentions that the license is not activated.

I tested the same command with the old TFS 4.0.9.0 and it works.

The config file is your example file. I only changed the log-level from 'warning' to 'notification'.

The dat-file is from a test-product I created yesterday and the corresponding license-key.

Furthermore, I could not compile the TurboFloat-Linux-Static example on my machine (Ubuntu 18.04.2 LTS):

$ make -f makefile-x64-static g++ -c -Os -s -ffunction-sections -fdata-sections -DNDEBUG -DTURBOFLOAT_STATIC -m64 -Wl,--gc-sections Example.c -o example.og++ -Os -s -ffunction-sections -fdata-sections -DNDEBUG -DTURBOFLOAT_STATIC -m64 -Wl,--gc-sections -o ../../bin-linux/x64/example-tf.out example.o ../../bin-linux/x64/libTurboFloat.a -lrt/usr/bin/ld: ../../bin-linux/x64/libTurboFloat.a(ClientCoordinator.o): undefined reference to symbol 'sem_close@@GLIBC_2.2.5'//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit status

$ g++ --versiong++ (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0

Do I something wrong?

Finally, I run an simple example with the old TFS (4.0.9.0), but that may be fixed with the current one. I just can't test it.In my example I run the server locally. (With the activation from above) Next I start the app two times on my machine, but only one license lease is registered. Is this intended behaviour? My expactation would be that each instance of my app checkouts a new license. Did I miss an optional argument somewhere?Does the return value of the TF_GetHandle() funtion contain the PID or something?

I hope you can help me quickly.

Best wishesAndreas

Hey Andreas,

>> "the command [./tfs -a"pkey"] ends with a segfault."

This is a known bug introduced in TFS 4.1.5 that will be fixed in the next release (out later today or tomorrow).

>> "Furthermore, I could not compile the TurboFloat-Linux-Static example on my machine "

Use the dynamic libraries.

Or, if you're determined to use the static libraries you need to use GCC / G++ 8.1 or newer. Old compilers will not be supported any longer (slows our development, and adds security bugs).

If you can't use newer compilers then use the dynamic libraries.

Well, in our application static linking is preferred.

>> Or, if you're determined to use the static libraries you need to use GCC / G++ 8.1 or newer. Old compilers will not be supported any longer (slows our development, and adds security bugs).

Unfortunately, on my other machine (Ubunto 19.04 with g++ 8.3.0) it fails too.

$ make -f makefile-x64-staticg++ -Os -s -ffunction-sections -fdata-sections -DNDEBUG -DTURBOFLOAT_STATIC -m64 -Wl,--gc-sections -o ../../bin-linux/x64/example-tf.out example.o ../../bin-linux/x64/libTurboFloat.a -lrt/usr/bin/ld: ../../bin-linux/x64/libTurboFloat.a(TurboFloat.o): undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit statusmake: *** [makefile-x64-static:8: ../../bin-linux/x64/example-tf.out] Error 1

$ g++ --versiong++ (Ubuntu 8.3.0-6ubuntu1) 8.3.0

I am looking forward to the update of TFS.

Add the linker flag "-lpthread" to link to that library (the error is telling you to do that).

We'll update the example make files to include that flag.

Ups, my mistake. I already tested '-lpthread', but I added it to the LDFLAGS instead right after '-lrt'. 🙄

TFS 4.1.7 is now out and fixes the activation problem.