One way to catch it is through ipython:
Python 3.10.2 (main, Jan 27 2022, 17:03:43) [GCC 9.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.8.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from yascc import camelcase
In [2]: import json
In [3]: camelcase.decamelize(json.loads('[3158,3159,3170]'))
Segmentation fault (core dumped)
One way to catch it is through ipython: