ID:               12250
 Comment by:       swingcoder at msn dot com
 Reported By:      dmit at tkb dot lv
 Status:           Bogus
 Bug Type:         MSSQL related
 Operating System: Linux 2.4.5 Slackware 8.0
 PHP Version:      4.0.6
 New Comment:

what the bug is!


Previous Comments:
------------------------------------------------------------------------

[2002-06-19 10:03:57] [EMAIL PROTECTED]

Not a PHP bug > bogus

------------------------------------------------------------------------

[2002-06-19 10:02:14] jim at dardenhome dot com

I figured out the problem. I decided to use the freetds.conf file for
configuring the connection rather than the depricated "interfaces"
file. I probably had some environment variable not set properly.

------------------------------------------------------------------------

[2002-06-19 09:47:20] jim at dardenhome dot com

I'm having the same problem. RH 7.2/PHP 4.2.1



mssql_connect();



Program received signal SIGSEGV, Segmentation fault.

__inet_aton (cp=0x0, addr=0xbfffe400) at inet_addr.c:130

130     inet_addr.c: No such file or directory.

        in inet_addr.c

(gdb) bt

#0  __inet_aton (cp=0x0, addr=0xbfffe400) at inet_addr.c:130

#1  0x401edf6f in inet_addr (cp=0x0) at inet_addr.c:96

#2  0x4003c4cb in tds_connect (login=0x816dc68, parent=0x816b658) at
login.c:168

#3  0x40034e7f in tdsdbopen (login=0x8163960, server=0x816dba4
"ProcessLog") at dblib.c:442

#4  0x080ab670 in php_sybase_do_connect (ht=3, return_value=0x816dc1c,
this_ptr=0x0, return_value_used=0, persistent=0)

    at php_sybase_db.c:535

#5  0x080ab7c9 in zif_sybase_connect (ht=3, return_value=0x816dc1c,
this_ptr=0x0, return_value_used=0) at php_sybase_db.c:582

#6  0x080eaa6b in execute (op_array=0x8165ddc) at
./zend_execute.c:1598

#7  0x080d1b36 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at zend.c:810

#8  0x0805f601 in php_execute_script (primary_file=0xbffffab0) at
main.c:1381

#9  0x0805d5d0 in main (argc=2, argv=0xbffffb54) at cgi_main.c:778

#10 0x40112507 in __libc_start_main (main=0x805ccf4 <main>, argc=2,
ubp_av=0xbffffb54, init=0x805b744 <_init>, fini=0x80ef590 <_fini>, 

    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffffb4c) at
../sysdeps/generic/libc-start.c:129

------------------------------------------------------------------------

[2002-06-18 04:40:02] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------

[2002-06-04 06:52:53] alexp at mail dot lv

Did you add entry for you SQL server in freetds.conf? PHP always
segfaults when server not found in config. At least it does for me.



Edit freetds.conf

---

# A typical Microsoft SQL Server 6.x configuration

[MyServer65]

       host = ntmachine.domain.com

       port = 1433

       tds version = 4.2

---

$connect_id = mssql_pconnect("MyServer65" , "user" , "abcdefg" );

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/12250

-- 
Edit this bug report at http://bugs.php.net/?id=12250&edit=1

Reply via email to