Спасибо за совет.
Увеличение стека не помогает. Ввёл максимальное число, на которое терминал не стал ругаться что "число слишком большое", но проблема всё та же, только с другими цифрами внизу.
vadim@Razvaluha:~$ valgrind --tool=callgrind --dump-instr=yes --simulate-cache=yes --collect-jumps=yes --main-stacksize=100000000 server/SDL2_1/bin/Debug/SDL2_1
==14879== Callgrind, a call-graph generating cache profiler
==14879== Copyright (C) 2002-2013, and GNU GPL'd, by Josef Weidendorfer et al.
==14879== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==14879== Command: server/SDL2_1/bin/Debug/SDL2_1
==14879==
==14879== For interactive control, run 'callgrind_control -h'.
InitStart
INFOWidth 1280 INFOHeight 1024SDL_RenderCopy: Invalid renderer
SDL_RenderCopy: Invalid renderer
==14879==
==14879== Process terminating with default action of signal 11 (SIGSEGV)
==14879== Access not within mapped region at address 0x0
==14879== at 0x4462D70: TTF_SizeUTF8 (in /usr/lib/i386-linux-gnu/libSDL2_ttf-2.0.so.0.10.2)
==14879== by 0x44631C0: TTF_RenderUTF8_Solid (in /usr/lib/i386-linux-gnu/libSDL2_ttf-2.0.so.0.10.2)
==14879== by 0x446360C: TTF_RenderText_Solid (in /usr/lib/i386-linux-gnu/libSDL2_ttf-2.0.so.0.10.2)
==14879== by 0x8050FA2: AuthorizationWindow::OnInit() (AuthorizationWindow.cpp:1261)
==14879== by 0x8068A82: AuthorizationWindow::OnExecute() (AuthorizationWindow.cpp:5285)
==14879== by 0x81E19DC: main (texture.cpp:14)
==14879== If you believe this happened as a result of a stack
==14879== overflow in your program's main thread (unlikely but
==14879== possible), you can try to increase the size of the
==14879== main thread stack using the --main-stacksize= flag.
==14879== The main thread stack size used in this run was 100003840.
==14879==
==14879== Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw
==14879== Collected : 99104477 33180470 16523768 60753 599658 396863 42044 188459 301501
==14879==
==14879== I refs: 99,104,477
==14879== I1 misses: 60,753
==14879== LLi misses: 42,044
==14879== I1 miss rate: 0.6%
==14879== LLi miss rate: 0.4%
==14879==
==14879== D refs: 49,704,238 (33,180,470 rd + 16,523,768 wr)
==14879== D1 misses: 996,521 ( 599,658 rd + 396,863 wr)
==14879== LLd misses: 489,960 ( 188,459 rd + 301,501 wr)
==14879== D1 miss rate: 2.0% ( 1.8% + 2.4% )
==14879== LLd miss rate: 0.9% ( 0.5% + 1.8% )
==14879==
==14879== LL refs: 1,057,274 ( 660,411 rd + 396,863 wr)
==14879== LL misses: 532,004 ( 230,503 rd + 301,501 wr)
==14879== LL miss rate: 0.3% ( 0.1% + 1.8% )
Убито
Кто чем профилирует С++ программы в Linux? Valgrind слишком требователен по ресурсам=(