Hey, 2010/4/16 Биин Илья <[email protected]>: > 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?
It seems the problem is related to spirit and concurrency. There is a preprocessor define that Wt uses to enable thread-safety with boost spirit: BOOST_SPIRIT_THREADSAFE I have no idea why this would fail though -- perhaps Wt should have linked against -lpthread, but wasn't? Can you check with ldd? If the problem persists, I will try to reproduce on our FreeBSD VM... Regards, koen ------------------------------------------------------------------------------ Download Intel® 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
