Error after whole script runs

I am running a threaded script on a server managed by slurm. When the whole script finishes (the output from the last line of code is displayed in the outfile), the script doesn’t terminate, but continues until the allotted time runs out and displays the following error:

error: <inline asm>:1:2: invalid character in input
        /
        ^


[1753396] signal (11.128): Segmentation fault
in expression starting at none:0
malloc(): unsorted double linked list corrupted

[1753396] signal (6.-6): Aborted
in expression starting at none:0

This looks like some error as a result of the threading, but given the entire script ran successfully, I can’t isolate it.