Re: [Cppcms-users] Advice on debugging file upload
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-04-24 11:35:40
|
>> Yes... >> >> It uses __builtin_return_address and __builtin_frame_address >> and they are not really safe functions >> >> >> http://gcc.gnu.org/onlinedocs/gcc/Return-Address.html > > >What kind of results/problems can I expect if I modify booster::backtrace >to compile against libexecinfo from FreeBSD? > I actually did it once we talked (may be I missed something). Once the program is compiled with -fomit-frame-pointer you do not get stack trace at all, and this is default at optimization levels -O1 and above starting from gcc-4.6 So once I changed it actually worked - got stack trace (with gcc-4.2) but once gcc is upgraded it would be usless and I assume it may also be dangerous. If you want I can send you a patch (I prepared it as I seen that many programs actually use libexecinfo) but I don't think I want it in the mainstream. Artyom |