Re: [Cppcms-users] Advice on debugging file upload
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-04-23 13:21:26
|
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 So for this reason I really prefer to not use libexecinfo under FreeBSD. Other implementations (like GNU Libc for example) use an information about the stack bottom to prevent running out of the stack frame and creating access violation. So unless it would be proven otherwise libexecinfo is not in use under FreeBSD. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: "ele...@ex..." <ele...@ex...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Monday, April 23, 2012 3:59 PM > Subject: Re: [Cppcms-users] Advice on debugging file upload > > Are you referring to this library? > > http://www.freebsd.org/cgi/url.cgi?ports/devel/libexecinfo/pkg-descr > >> Unfortunately FreeBSD does not provide such API, so it is not possible >> to create safe backtrace - the existing execinfo.h library that >> comes with FreeBSD is not safe when using with > "omit-frame-pointer" >> optimization. >> >> If you find any other suitable way to create a backtrace (at least >> backtrace - not backtrace_symbols) >> it would be possible to provide stack tracing for FreeBSD as well. > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |