freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] I'm having a crashing problem with FreeTDS under OSX
- Date: Sun, 8 Mar 2009 11:55:26 +0100
2009/3/8 Daniel Parnell <me AT danielparnell.com>:
> Hi James,
>
> Looks like I've got things working on my machine.
> What I had to do was replace any calls to strdup with a new function
> tds_strdup.
> I also have to replace the call to asprintf in odbc.c with sprintf
> into a character array and a tds_strdup (not too happy about that one).
>
> It's very VERY strange that I should need to do this. I've tried
> replicating the problem with a smaller application without success.
>
> Daniel
>
Mmmm... this can be the problem
http://osdir.com/ml/web.curl.general/2004-12/msg00080.html
does Mac OS X has asprintf ?? Try using only your tds_strdup.
Reading at
http://developer.apple.com/documentation/Darwin/Reference/Manpages/man3/asprintf.3.html
it seems that same problem apply also to asprintf/vasprintf. They
returns pointers malloc-ed with libc but if free is not from libc you
get heap corruption. The solution is to use a tds_strdup (as you did)
and say in configure that you don't have asprintf/vasprintf so FreeTDS
will compile a version that use proper malloc.
Which compiler are you using?
Another solution would be to link FreeTDS with libc malloc/free.
freddy77
-
[freetds] I'm having a crashing problem with FreeTDS under OSX,
Daniel Parnell, 03/04/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
James K. Lowden, 03/05/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
Daniel Parnell, 03/05/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
James K. Lowden, 03/06/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Frediano Ziglio, 03/06/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
Daniel Parnell, 03/06/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
James K. Lowden, 03/07/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Daniel Parnell, 03/07/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Daniel Parnell, 03/07/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
Daniel Parnell, 03/08/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Frediano Ziglio, 03/08/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Daniel Parnell, 03/08/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Frediano Ziglio, 03/08/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Daniel Parnell, 03/08/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, James K. Lowden, 03/08/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Daniel Parnell, 03/08/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Frediano Ziglio, 03/14/2009
- Re: [freetds] I'm having a crashing problem with FreeTDS under OSX, Daniel Parnell, 03/16/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
James K. Lowden, 03/07/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
James K. Lowden, 03/06/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
Daniel Parnell, 03/05/2009
-
Re: [freetds] I'm having a crashing problem with FreeTDS under OSX,
James K. Lowden, 03/05/2009
Archive powered by MHonArc 2.6.24.