On Thu, Oct 15, 2009 at 11:45 AM, Henning Westerholt henning.westerholt@1und1.de wrote:
On Donnerstag, 15. Oktober 2009, Andrei Pelinescu-Onciul wrote:
Or perhaps it is just me having these issues? Maybe others have secret techniques to share how to avoid such dumb problems?
In some cases optimizations debugging is harder, but statistically that number of cases is small (we can figure most backtraces even with all the optimizations). I would rather have a fully optimized version and if I cannot figure a crash, turn on debugging, rather then having a version which works perfectly with debugging but sometimes crashes when optimized.
Andrei,
this is a good point. In kamailio times the default for the code was also "-O9" (which is the same as -O3, IMHO), and debugging enabled. I don't remember any case at the moment where i need to change this because of debugging, so i think this setting is fine.
I agree, this is a good point and I no longer think we should change the compilation mode. I did not realize that we would not be able to catch bugs like that in debug mode.
-- Jan