stack-fault in rtl_fm.exe

Gisle Vanem gisle.vanem at
Wed Jan 22 16:54:12 UTC 2014

The rtl_fm program uses approx 1.8 MByte for it's stack. Mostly used
for 'stuct fm_state'. The default stack-size for a Windows program is
4kB (it can dynamically grow). I've compiled using MSVC v16 and option
'-GS'. Ref:

Adding '-stack:2000000' to the link stage works fine here. Or alloca() or malloc()
could be used? Or 'fm' could be made static?


More information about the osmocom-sdr mailing list