Trying to fix segfault, it appears to be coming from gen_trip_sjis