Re: [Cppcms-users] Advice on debugging file upload
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-05-02 19:23:52
|
In order to get a trace the exception that is thrown should be derived from booster::runtime_error class. CppDB is independent library that does not share the stack trace code with CppCMS, that is why you can't get a backtrace from CppDB. It is not supported. Also I'd recommend to use latest trunk, it has better support for backtracing (not based on execinfo) that works on BSD and Mac OS X as well 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: Wednesday, May 2, 2012 5:00 AM > Subject: Re: [Cppcms-users] Advice on debugging file upload > > Hi Artyom, > > Ive recompiled booster with your patch, but im still not getting a trace > when cppcms/cppdb throws - such as > > 2012-05-02 11:52:57; cppcms, error: Caught exception > [cppdb::invalid_column attempt access to invalid column] > (http_context.cpp:139 > > I would have assumed that it will show me trace so I can find out which > line tries to access the invalid column. > >> g++ -dynamic -O0 lib/backtrace/test/test_backtrace.cpp -L/usr/local/lib > -lbooster -I/usr/local/include >> ./a.out > My Error > 0x403270: booster::runtime_error::runtime_error(std::string const&) + 0x30 > in /usr/home/petr/Downloads/cppcms-1.0.0/booster/a.out > 0x401cf2: _init + 0x60a in > /usr/home/petr/Downloads/cppcms-1.0.0/booster/a.out > 0x401da9: _init + 0x6c1 in > /usr/home/petr/Downloads/cppcms-1.0.0/booster/a.out > 0x401dbe: _init + 0x6d6 in > /usr/home/petr/Downloads/cppcms-1.0.0/booster/a.out > 0x4019fe: _init + 0x316 in > /usr/home/petr/Downloads/cppcms-1.0.0/booster/a.out > > > Petr > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |