The struct fc_slot was defined only in slot.c, making it an incomplete type in slot.h. The inline accessor functions (fc_slot_id, fc_slot_header, etc.) in slot.h could not compile because they referenced incomplete struct members. The compiler fell back to implicit int return type, truncating 64-bit pointers to 32 bits, causing SIGSEGV in registry_add() when strncpy received a truncated slot_id pointer. Fix: move the struct definition to slot.h and add proper function declarations for the accessors (definitions stay in slot.c). |
||
|---|---|---|
| .. | ||
| client | ||
| src | ||
| CMakeLists.txt | ||
| Dockerfile | ||