I've created a simple WApplication class,

> class AdminPage: public WApplication {
> public:
>     AdminPage( const WEnvironment& env );
>     virtual ~AdminPage();
> private:
>     typedef std::vector< std::pair< sms::SMSMessage::ID, std::string > > 
> MsgidList;
>     typedef std::vector< std::vector<std::string> > ReqResp;
>     MsgidList genMsgIds( const std::string& _idp, const std::string& phone, 
> const std::string& _date, const std::string& _text, sms::SQLite3DB& db, int 
> page );
>     ReqResp genReq( const MsgidList& list, int status, sms::SQLite3DB& db );
>     void onReportGenerate();
>     //void onReportGenerate();
>     WTable* tbl;
>     WPushButton* reportbtn;
>     WLabel* reportstatus;
>     WLineEdit* pid;
>     WLineEdit* phone;
>     WDatePicker* date;
>     WLineEdit* text;
>     WComboBox* status;
> 
>     friend class WInfoText;
> 
> };


but while trying to access the resource this class produces, i'm getting 
segmantation fault on my FreeBSD machine, while it's ok on Ubuntu.
Here is stack trace. Any ideas?


> (gdb) where
> #0  0x0000000801e22a9d in pthread_mutex_lock () from /lib/libthr.so.3
> #1  0x0000000800bdeb19 in ~grammar (this=0x7ffffedf63d0) at mutex.hpp:50
> #2  0x0000000800be0e55 in bind<void, Wt::<unnamed>::ValueListParser, double, 
> Wt::<unnamed>::ValueListParser, boost::arg<1> > (f={__pfn = 0x800bde170 
> <setQuality>, __delta = 0}, 
>     a...@0x7ffffedf6850, a2={<No data fields>}) at 
> /home/biinilya/wt-3.1.2/src/web/WebRequest.C:99
> #3  0x0000000800be20ae in definition (this=0x803979680, se...@0x7ffffedf6a70) 
> at /home/biinilya/wt-3.1.2/src/web/WebRequest.C:131
> #4  0x0000000800be2d0e in get_definition<Wt::<unnamed>::ValueListParser, 
> boost::spirit::classic::parser_context<boost::spirit::classic::nil_t>, 
> boost::spirit::classic::scanner<const char*, 
> boost::spirit::classic::scanner_policies<boost::spirit::classic::skipper_iteration_policy<boost::spirit::classic::iteration_policy>,
>  boost::spirit::classic::match_policy, boost::spirit::classic::action_policy> 
> > > (self=0x7ffffedf6a70) at grammar.ipp:178
> #5  0x0000000800be32cf in Wt::WebRequest::parsePreferredAcceptValue 
> (this=Variable "this" is not available.
> ) at grammar.ipp:296
> #6  0x0000000800be3750 in Wt::WebRequest::parseLocale (this=0x80399c400) at 
> /home/biinilya/wt-3.1.2/src/web/WebRequest.C:200
> #7  0x0000000800a64f7f in Wt::WEnvironment::init (this=0x8039c7270, 
> reque...@0x80399c400) at /home/biinilya/wt-3.1.2/src/Wt/WEnvironment.C:158
> #8  0x0000000800bead6f in Wt::WebSession::init (this=0x8039c6a00, 
> reque...@0x80399c400) at /home/biinilya/wt-3.1.2/src/web/WebSession.C:202
> #9  0x0000000800beb30d in Wt::WebSession::handleRequest (this=0x8039c6a00, 
> reque...@0x80399c400, response=Variable "response" is not available.
> ) at /home/biinilya/wt-3.1.2/src/web/WebSession.C:792
> #10 0x0000000800c03538 in Wt::WebController::handleRequest (this=0x803959738, 
> request=0x80399c400, ep=0x7ffffedf77f0) at 
> /home/biinilya/wt-3.1.2/src/web/WebController.C:385
> #11 0x0000000800ebb29e in http::server::WtReply::consumeRequestBody 
> (this=0x803992300, begin=Variable "begin" is not available.
> ) at /home/biinilya/wt-3.1.2/src/http/WtReply.C:75
> #12 0x0000000800e6f660 in http::server::RequestParser::parseBody 
> (this=Variable "this" is not available.
> ) at /home/biinilya/wt-3.1.2/src/http/RequestParser.C:118
> #13 0x0000000800e501c0 in http::server::Connection::handleReadBody 
> (this=0x80396d000) at /home/biinilya/wt-3.1.2/src/http/Connection.C:135
> #14 0x0000000800e515ff in http::server::Connection::handleReadRequest0 
> (this=0x80396d000) at /home/biinilya/wt-3.1.2/src/http/Connection.C:99
> #15 0x0000000800e51d91 in http::server::Connection::handleReadRequest 
> (this=0x80396d000, e...@0x7ffffedf7dc0, bytes_transferred=484)
>     at /home/biinilya/wt-3.1.2/src/http/Connection.C:124
> #16 0x0000000800eafaa0 in 
> boost::asio::asio_handler_invoke<boost::asio::detail::binder2<boost::_bi::bind_t<void,
>  boost::_mfi::mf2<void, http::server::Connection, boost::system::error_code 
> const&, unsigned long>, 
> boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection>
>  >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, 
> unsigned long> > (function=Variable "function" is not available.
> ) at mem_fn_template.hpp:265
> #17 0x0000000800eb0404 in 
> boost::asio::detail::handler_queue::handler_wrapper<boost::asio::detail::binder2<boost::_bi::bind_t<void,
>  boost::_mfi::mf2<void, http::server::Connection, boost::system::error_code 
> const&, unsigned long>, 
> boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection>
>  >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, 
> unsigned long> >::do_call (base=Variable "base" is not available.
> ) at handler_invoke_helpers.hpp:39
> #18 0x0000000800e845d3 in 
> boost::asio::detail::task_io_service<boost::asio::detail::select_reactor<false>
>  >::run (this=0x803926580, e...@0x7ffffedf7f60) at handler_queue.hpp:39
> #19 0x0000000800e74d62 in http::server::Server::run (this=0x803964400) at 
> io_service.ipp:58
> #20 0x000000080199bb8d in thread_proxy () from 
> /usr/local/lib/libboost_thread.so
> #21 0x0000000801e1d4b1 in pthread_getprio () from /lib/libthr.so.3
> #22 0x0000000000000000 in ?? ()
> Cannot access memory at address 0x7ffffedf8000
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to