Skip to Content.
Sympa Menu

freetds - Re: dg/ux challenges

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Jeff Driscoll" <jdriscol AT gate.net>
  • To: freetds
  • Subject: Re: dg/ux challenges
  • Date: Tue, 21 Sep 1999 23:29:53


> Good question. The best thing to do is to run it in gdb and when it goes
> out to lunch hit Ctrl-C and see where it is. In all likelyhood it is
> sitting in read() on the socket. I'm going to guess that it is screwing up
> in the messsage token and overread something.
>
> Are you running with TDS 5.0 or 4.2? I forgot. If memory serves you are
> accessing a Microsoft server right? I which case it should be 4.2.
Yes - 4.2

>
> Anyway, do something like this:
>
> gdb sqsh
> (gdb) run -Usa -Pmysapass -Smyserver -b
> 1> select * from sys_users
> 2> go
> (now hit ctrl-c once it freezes)
> (gdb) where
>
> I need the stack trace printed when you type where. Probably we will see
> tds_process_msg() in there somewhere. If that's the case I'll post a debug
> version of token.c to try and see what is going wrong.
>
Well gdb does not come with the standard dg/ux development install. Also,
the version of gcc is 2.7.2 - not sure if that has an impac. I will check
a contributed software site and see if I can get gdb. Any idea if the gdb
executable is all I would need?

> Oh by the way, I'd to ifdef that #include <paths.h> thing into the code,
> do you know what define I can check for to see if its on DGUX?
>

I changed util.c to this and it compiled.

#ifdef __DGUX__
#include <paths.h>
#endif

I am not a C developer by any stretch of the imagination. My experience is
tinkering and downloading freeware/shareware code and compiling on my dg
platform. Sometimes it works, sometimes it doesn't. Thank you for you
assistance and patience. I will keep tinkering and maybe we will figure
out this "out to lunch" problem.

---
Jeff




Archive powered by MHonArc 2.6.24.

Top of Page