he wrote in his post.. after you run it and it aborts, you should run in the gdb shell:
thr app all bt
and paste the backtrace here.. but as I C developer, you should know how to get this backtrace anyway
anyway I had a strange problem as well, involving a X6500, that it simply gone as soon as I removed it from the USB hub and gave to it a dedicated USB port and in my experience, the USB hub is a common source of problem.
but you still want to run it with sudo, with you normally must run with sudo, othewise you are not allowed to open the FPGA communication. I think you will loose too much time with something that in the end won't be useful (once you are in the gdb shell, then what you want to look there?) maybe it would be useful a core file, if one is being generated, or a traceback from the problem in a text file... if you aren't developer, a gdb shell won't help you.
Vpereira, FYI, If you read a couple of posts back, Luke asked for the backtrace which I am trying to deliver and since I am not involved in this project, there is no way I will be able to familiarise myself in time with the code so that I know what the problem is. If I asked you to look into an unfamiliar mature project with several KLOC, I suspect you would be in the same position as I am.
So here is an update
===============
I have been testing all night two separate hosts; one with the 7 BE running windows bfgminer 3.1.3 and the pi running 3.1.2 with the FPGA's (2 CM1 and the ZTEX 1.15x). No problems so far, I believe I can rule out the power issue.
PS: I am a Java and ANSI-C developer amongst many others