griffinmilsap/handwire — Issue #1: Seg Fault on Server Close
Author: nevilc
Created: 2011-10-24 00:58:05+00:00
State: open

Probably not a big issue, but when I was debugging my branch that reroot.exe silently seg faults on exit. I tested on the master branch, and it happens there too. It doesn't seem to be hurting anything and isn't visible in release, but I think using a bug tracker is one of the best practices, so I figured we ought to start using it.

Steps to reproduce:
1. Use cmake to generate a debug makefile: >cmake -G "CodeBlocks - MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug
2. Build using CodeBlocks
3. Load reroot.exe in gdb: >gdb reroot.exe
4. Run reroot.exe: >run
5. Close reroot.exe using the exit option on the systray
6. Seg fault will be displayed in gdb, type bt to print a back trace.

Here's gdb's output, including a stack trace.
http://pastebin.com/E4ACyanS
The seg fault occurs in the Qt dll's when called by OSCPort::run(), so my guess is that the OSCPorts need some explicit closing before exiting, though I haven't had a chance to investigate it thoroughly yet.