#8 0x9117c2ac in __cxa_finalize
#9 0x9117c188 in exit
#10 0x936569d8 in NSApplicationMain
#11 0x00002784 in main at main.mm:14

After this code segment which is supposed to remove all whitespaces in
the string "input", there are several substrings taken from the string
"str" and are then filled into a std::map.
There are actually 4 key-value-pairs in the final std::map. The stack
trace also lists 4 entries that seem to be related to std::pair —
maybe this is a clue.