I am compiling a fair sized, complex (as is) program.
It pulls in the pigpio daemon library set. I don't have any pca9685 code yet.
I use a module destructor.
I will do more isolation later, but if anyone has a clue for me ...
Program compiles with no error. Program will run without fault.
Recompiled libs and program all with/without -g and exx.
I park in a small loop and exit on a key press.
1 - When I compile with -e (or more) all is fine.
2 - When I compile without -e I get a segfault.
It will reach the end of the coded program, in either case, but it does not appear to reach the destructor code.
There is no END or STOP keyword used. Somewhere in the rt lib closing code?
Thread 1 "pgd_pca9685" received signal SIGSEGV, Segmentation fault.
0x76fb9c1c in memcmp () from /usr/lib/arm-linux-gnueabihf/libarmmem.so
If anyone has a hint, I would appreciate any help I can get.
Meanwhile, I will combine all into one source and start on code reduction. When I get down to something of a size to post, I will be back.