Skip to Content.
Sympa Menu

freetds - Re: convert_int4 on Solaris(Sparc)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: convert_int4 on Solaris(Sparc)
  • Date: Fri, 29 Jan 1999 22:02:09 -0500 (EST)


Hmmm,

The best way to fix this would be to change tds_process_result() (in the
tds/token.c file) to correctly set colinfo->column_offset and friends to a
word aligned value. Boy, this really slipped my mind for some reason.

Brian

On Fri, 29 Jan 1999, Dale P. Smith wrote:

> Gregg Jensen wrote:
> >
> > I have whittled one particular problem on Solaris(sparc) down to the
> > convert_int4. It seems to
> > be choking (core dump) on :
> >
> > *(TDS_INT*)src
> >
> > I have the same test compiled on Linux (with the same version from CVS)
> > and it works just fine.
> > If you have any ideas why Solaris (using gcc-2.7.2) might choke on this?
> > When I run through the
> > debugger and stop before this line, and execute 'print *(TDS_INT*)src' it
> > works just fine (the
> > correct value gets printed). I used the old conversion code (from an
> > older version of dblib with
> > the proper modifications), and the correct values get printed and no core
> > dumps. Any ideas?
>
> Sparcs need to be word aligned when accessing words. What is the value
> of src? Is on a 4 byte
> address? What I mean is (src % 4) needs to be 0.
>
> Dale
>





Archive powered by MHonArc 2.6.24.

Top of Page