[unixODBC-support] PHPand unixODBCinstallation help. Can'tcreateUser DSN.

Ryan Churches ryan.churches at gmail.com
Sun Apr 29 18:06:58 BST 2007


Hi,
Sorry, about that, I should have known to try that.

(gdb) run -v gupta1
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/isql -v gupta1
shell-init: error retrieving current directory: getcwd: cannot access parent
directories: No such file or directory
[Thread debugging using libthread_db enabled]
[New Thread -1211414864 (LWP 5547)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211414864 (LWP 5547)]
0xb7d625c3 in strlen () from /lib/libc.so.6
(gdb) back
#0  0xb7d625c3 in strlen () from /lib/libc.so.6
#1  0xb7c2855c in SQLConnect () from /opt/Gupta/SQLBase901/libsqlbaseodbc.so
#2  0xb7e71262 in SQLConnect (connection_handle=0x804fb40,
    server_name=0xbfe4c1d2 "gupta1", name_length1=-3, user_name=0x0,
    name_length2=-3, authentication=0x0, name_length3=-3) at
SQLConnect.c:3856
#3  0x080496cd in OpenDatabase (phEnv=0x804c1e0, phDbc=0x804c1e4,
    szDSN=0xbfe4c1d2 "gupta1", szUID=0x0, szPWD=0x0) at isql.c:271
#4  0x0804912f in main (argc=3, argv=0xbfe4acf4) at isql.c:133
(gdb)

Name length = -3!  That can't be right.   

-----Original Message-----
From: unixodbc-support-bounces at easysoft.com
[mailto:unixodbc-support-bounces at easysoft.com] On Behalf Of Nick Gorham
Sent: Sunday, April 29, 2007 6:09 AM
To: Support for the unixODBC project
Subject: Re: [unixODBC-support] PHPand unixODBCinstallation help.
Can'tcreateUser DSN.

Ryan Churches wrote:

>Nick,
>Sorry for the delay.  I'm not much of a C developer, so it took me a little
>bit to figure out how to force Gentoo to cease stripping the debug handlers
>(its FEATURES="nostrip" in make.conf).
>
>Anyway, the output was once again not very verbose, but I hope it helps you
>determine what could be going on:
>
>(gdb) run -v gupta1
>Starting program: /usr/bin/isql -v gupta1
>shell-init: error retrieving current directory: getcwd: cannot access
parent
>directories: No such file or directory
>[Thread debugging using libthread_db enabled]
>[New Thread -1210636624 (LWP 24987)]
>
>Program received signal SIGSEGV, Segmentation fault.
>[Switching to Thread -1210636624 (LWP 24987)]
>0xb7e205c3 in strlen () from /lib/libc.so.6
>(gdb)
>
>  
>
Ok, it may not say more, but at that point in gdb run the "back" command 
to show a stack trace.

-- 
Nick
_______________________________________________
unixODBC-support mailing list
unixODBC-support at easysoft.com
http://mail.easysoft.com/mailman/listinfo/unixodbc-support

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.2/780 - Release Date: 4/29/2007
6:30 AM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.2/780 - Release Date: 4/29/2007
6:30 AM
 




More information about the unixODBC-support mailing list