Thrift TThreadPoolServer returns "Segmentation fault; core dumped;" when handle concurrent MySQL database requests -
i'm developing simple assignment using apache thrift , c++ poco library. assignment requires me make benchmark creating multiple concurrent threads make same request thrift tthreadpoolserver . this client-side code, creates 10 concurrent threads, of them make same get request (request info 1 user d ) server: // define myworker class inherits runnable class myworker : public runnable { public: myworker(int k = -1) : runnable(), n(k) { } void run() { // create connection boost::shared_ptr<ttransport> socket(new tsocket("localhost", 9090)); boost::shared_ptr<ttransport> transport(new tbufferedtransport(socket)); boost::shared_ptr<tprotocol> protocol(new tbinaryprotocol(transport)); apisclient client(protocol); try { transport->open(); int res = -1; // make request res = client.get("d"); printf("thread %d,...