Please at least provide the GStreamer pipeline graph for your customized app DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums.
There is no useful clue in your description for investigating or debugging the segmentation fault with your app.