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.
On exit:
1 - When I compile with -e (or more) all is fine.
2 - When I compile without -e I get a segfault.
[edit]
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?
gdb output:
If anyone has a hint, I would appreciate any help I can get.Thread 1 "pgd_pca9685" received signal SIGSEGV, Segmentation fault.
0x76fb9c1c in memcmp () from /usr/lib/arm-linux-gnueabihf/libarmmem.so
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.
david