Re: I'm having a crashing problem with FreeTDS under OSX
Daniel Parnell <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Hi James, here is the first little bit of the stack trace for the first crash I'm seeing. Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000016 0x0010f7fa in free () (gdb) bt #0 0x0010f7fa in free () #1 0x02f55c38 in _SQLAllocEnv (phenv=0x812c70) at odbc.c:1353 #2 0x02f5621c in SQLAllocHandle (HandleType=1, InputHandle=0x2c76488, OutputHandle=0x812c70) at odbc.c:1254 #3 0x02dfa147 in _iodbcdm_driverload () #4 0x02dfe579 in SQLConnect_Internal () #5 0x02dfecf0 in SQLConnect () #6 0x02dc82c6 in dbc_connect (argc=4587520, argv=0x460000, self=43728580) at odbc.c:1963 #7 0x000166d5 in call_cfunc (func=0x2dc8100 <dbc_connect>, recv=43728580, len=<value temporarily unavailable, due to optimizations>, argc=3, argv=0xbfff41e0) at eval.c:5715 #8 0x0001fdc2 in rb_call0 (klass=43929420, recv=43728580, id=2961, oid=2961, argc=-1073790732, argv=0xbfff41e0, body=0x29e3de0, flags=<value temporarily unavailable, due to optimizations>) at eval.c: 5870 #9 0x000209cc in rb_call (klass=43929420, recv=43728580, mid=2961, argc=3, argv=0xbfff41e0, scope=1, self=6) at eval.c:6117 #10 0x00021462 in rb_obj_call_init (obj=4587520, argc=4587520, argv=0x460000) at eval.c:7650 #11 0x02dc8b97 in dbc_new (argc=3, argv=0xbfff41e0, self=43929600) at odbc.c:1875 #12 0x02dc8c1b in mod_connect (argc=4587520, argv=0x460000, self=4587520) at odbc.c:7119 #13 0x000166d5 in call_cfunc (func=0x2dc8bf0 <mod_connect>, recv=43929600, len=<value temporarily unavailable, due to optimizations>, argc=43728580, argv=0x3) at eval.c:5715 #14 0x0001fdc2 in rb_call0 (klass=43927460, recv=43929600, id=49409, oid=49409, argc=0, argv=0xbfff41e0, body=0x29e46f0, flags=<value temporarily unavailable, due to optimizations>) at eval.c:5870 #15 0x000209cc in rb_call (klass=43927460, recv=43929600, mid=49409, argc=3, argv=0xbfff41e0, scope=0, self=43729280) at eval.c:6117 I'm using the 0.82 release of FreeTDS and the following is the version line from /usr/include/sql.h * $Id: sql.h,v 1.9 2006/01/20 15:58:34 source Exp $ A while ago I started making a Ruby extension that talked to the FreeTDS library directly. Maybe now is the time to finally finish it off and make it work with Rails ;) Daniel On 06/03/2009, at 2:16 AM, James K. Lowden wrote: > Daniel Parnell wrote: >> Unfortunately when I try to connect to SQL Server using the ODBC mode >> of FreeTDS I get bus errors whenever it calls free :( >> >> I've done quite a bit of googling to see if I can find any >> information >> about this problem, and finally decided to ask here. Is this a known >> problem, and if so is there a fix for it? > > What exactly is the error? Do you have a line number and source file > name? Which versions of sql.h and FreeTDS are you using? > > 64-bit ODBC can be a challenge due to 32-bit assumptions baked into > the > ODBC API. It sounds like somewhere you're trimming off the high > word of a > pointer. I would engage Google with that in mind. > > HTH. > > --jkl > > > _______________________________________________ > FreeTDS mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds