Skip to Content.
Sympa Menu

freetds - Problems with FreeTDS on MacOS X

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: gricard AT mac.com
  • To: FreeTDS Mailing List <freetds AT franklin.oit.unc.edu>
  • Subject: Problems with FreeTDS on MacOS X
  • Date: Mon, 25 Jun 2001 19:38:28 -0400


Ok, so I've been trying to figure out why FreeTDS is not working with PHP on my MacOS X installation. I downloaded the latest snapshot release and compiled that, which I did not have to set the host type for thankfully. So, I got it compiled, and ran it, and the PHP scripts, which previously printed out a simple warning saying it couldn't connect to the server now do not even finish loading. PHP seems to just die when those scripts run.

I played around with the test applications and seem to have narrowed down the problem. Here is the GDB output from my test run:

This GDB was configured as "powerpc-apple-macos10".
Reading symbols for shared libraries .. done
(gdb) run
Starting program: /var/root/freetds/src/tds/unittests/./t0001
[Switching to thread 1 (process 12020 thread 0x1a03)]
t0001.c: Testing login, logout
Entered tds_try_login()
Trying read_login_info()
Setting login parameters
Connecting to database

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x70026e74 in inet_aton ()
(gdb) bt
#0 0x70026e74 in inet_aton ()
#1 0x7002b8a4 in inet_addr ()
#2 0x0000342c in tds_connect (login=0x3a570) at login.c:153
#3 0x00002534 in try_tds_login (login=0xbffffcf8, tds=0xbffffcfc, appname=0x908c "t0001.c", verbose=239161) at common.c:75
#4 0x0000221c in main () at t0001.c:36
#5 0x00002118 in _start ()
#6 0x00001f58 in start ()
#7 0x00000000 in ?? ()

I don't know why it is receiving the signal EXC_BAD_ACCESS. It simply sits there for about 30 seconds and then seems to time-out. When I run ./t0001 from the command line, it says "Bus Error" after 30 seconds. Is this an issue with attempting to resolve the database server's address? I put in the IP address, but I do not believe the server has an A record associated with it. Does anyone know what's causing this or how to fix it?

Thanks.



  • Problems with FreeTDS on MacOS X, gricard, 06/25/2001

Archive powered by MHonArc 2.6.24.

Top of Page