Closed HopefulWei closed 5 years ago
Iec61850_client_example_log has the same problem when other server is running.
The example is only intended to run with server_example_logging. I will add some error handling to the example in the next library version to avoid confusion.
I used gcc 5.4 and AddressSanitizer(export CFLAGS="-g -fsanitize=address" CXXFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address" before make) to build libiec61850. First, I run the server_example_61400_25 in directory libiec61850/examples/server_example_61400_25 by command sudo ./server_example_61400_25 so that the server is set up. Then I tested iec61850_client_example_log in directory libiec61850/examples/iec61850_client_example_log by command sudo ./iec61850_client_example_log. But I got SEGV in function memcpyReverseByteOrder in conversions.c. This is the ASAN information:
This is the gdb8.0.1's information:
version 1.3.2/1.3.1/1.3.0 has the problem.
The normal operation error is