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.
Regards,
Henning