lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[libacqclient] Segfault on large array block #153

Closed lerwys closed 7 years ago

lerwys commented 7 years ago

Problem: Trying to increase acquisition BLOCK_SIZE (defined in core/common/include/acq_chan_gen_defs.h) can cause segfaults on clients, as they alloc smio_acq_data_block_t structure to store the receiving contents. however smio_acq_data_block_t is currently allocating BLOCK_SIZE bytes on stack, which might not be enough.

Solution: Use the heap on server and maybe let thje client worry about this allocation