Skip to Content.
Sympa Menu

freetds - FreeTDS error - dump

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Martin Button" <martin.button AT program-products.co.uk>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: FreeTDS error - dump
  • Date: Fri, 2 Nov 2001 13:37:27 -0500


Hi,

Have been trying to get FreeTDS(latest source from site) to work on
FreeBSD 4.3 with PHP-4.0.6.

Everything compiled fine without a problem. When I try to run a PHP script
however I get a segmentation fault. The output from gdb for the error is -

################################################################

Program received signal SIGSEGV, Segmentation fault.
0x2815a438 in tds7_send_login (tds=0x814e700, config=0x817d680) at
login.c:405
405 size1 = 86 + (strlen(config->host_name) +
(gdb) where
#0 0x2815a438 in tds7_send_login (tds=0x814e700, config=0x817d680)
at login.c:405
#1 0x28159e65 in tds_connect (login=0x817b400) at login.c:221
#2 0x281527f6 in tdsdbopen (login=0x815a890, server=0x817e7ec "db1south")
at dblib.c:444
#3 0x80b5a37 in php_sybase_do_connect (ht=3, return_value=0x817e88c,
this_ptr=0x0, return_value_used=1, persistent=0) at
php_sybase_db.c:471
#4 0x80b5b64 in php_if_sybase_connect (ht=3, return_value=0x817e88c,
this_ptr=0x0, return_value_used=1) at php_sybase_db.c:518
#5 0x80f4eec in execute (op_array=0x817d38c) at ./zend_execute.c:1504
#6 0x80cc81b in zend_execute_scripts (type=8, file_count=3) at zend.c:752
#7 0x805f1dc in php_execute_script (primary_file=0xbfbffa6c) at
main.c:1206
#8 0x805d848 in main (argc=2, argv=0xbfbffad4) at cgi_main.c:718
#9 0x805ccf5 in _start ()
(gdb) print config->host_name
$7 = 0x0
(gdb) print *config
$8 = {server_name = 0x815a8a0 "db1south", host = 0x0,
ip_addr = 0x815a8e0 "10.10.10.6", port = 1433, minor_version = 0,
major_version = 7, block_size = 512, language = 0x815a8b0 "us_english",
char_set = 0x815a8c0 "iso_1", database = 0x0,
dump_file = 0x817e8a0 "/tmp/freetds.log.27268", broken_dates = 0,
broken_money = 0, timeout = 0, connect_timeout = 0, host_name = 0x0,
default_domain = 0x0, try_server_login = 1, try_domain_login = 0,
xdomain_auth = 0, debug_level = 10, emul_little_endian = 0, text_size =
0,
app_name = 0x815a8d0 "PHP 4.0", user_name = 0x815a8f0 "sysadmin",
password = 0x815a900 "sysadmin", library = 0x815a910 "DB-Library",
bulk_copy = 0, suppress_language = 0, encrypted = 0}
(gdb) Quit

#########################################################

Hope this makes sense to someone and that you can help solve the problem.
The problem seems to be that the hostname is not being populated though
the information from the conf file is being picked up as the server is
being found and it's ip address resolved.

TIA

Bugs




  • FreeTDS error - dump, Martin Button, 11/02/2001

Archive powered by MHonArc 2.6.24.

Top of Page