[unixODBC-support] pthread and unixODBC problem

José M. Puyal josemaria.puyal at dialcom.com
Thu Oct 13 10:19:42 BST 2005


Hi,

We have built unixODBC with the default params, ¿Does this include
thread support?.

Thanks in advance and regards.

Josemari

El jue, 13-10-2005 a las 11:07 +0200, José M. Puyal escribió:
> Hi,
> 
> The segmentation fault happens when we try to create a connection to the
> database in the first instruction in the run() method of a thread class.
> 
> I don't know really if we have built unixODBC with thread support, 
> ¿Please, Could you tell me how to do this?
> 
> Thanks in advance and regards.
> 
> Josemari
> 
> El jue, 13-10-2005 a las 10:00 +0100, Nick Gorham escribió:
> > José M. Puyal wrote:
> > 
> > >Hi,
> > >
> > >We are having some problems using pthreads and unixODBC on linux. Our
> > >application open some connections to a mysql database using unixODBC,
> > >all works fine except when we open connections to the database from a
> > >thread class, in that case, a segmentation fault is raised.
> > >
> > >Do you know how to solve this problem?
> > >
> > >Thanks in advance and regards.
> > >
> > >Josemari
> > >
> > >_______________________________________________
> > >unixODBC-support mailing list
> > >unixODBC-support at easysoft.com
> > >http://mail.easysoft.com/mailman/listinfo/unixodbc-support
> > >
> > >
> > >  
> > >
> > Thats a bit too vague to have a answer :-)
> > 
> > But I would check first that your build of unixODBC is built with thread 
> > support. Other than that, I don't know. I would look at where the seg 
> > fault happens. If its in a memory allocation routine, I would suspect 
> > its a mixture of threaded and non threaded code.
> > 
> 
> 
> _______________________________________________
> unixODBC-support mailing list
> unixODBC-support at easysoft.com
> http://mail.easysoft.com/mailman/listinfo/unixodbc-support





More information about the unixODBC-support mailing list