tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Problems with testing GNU's libg++ (2.6.2)
@ 1995-02-07 20:24 gfkpci
  0 siblings, 0 replies; only message in thread
From: gfkpci @ 1995-02-07 20:24 UTC (permalink / raw)
  To: tru64-unix-managers


The system- DEC-3000/400, DEC-3000/300, running OSF/1 V1.2 & V1.3a

I've built GNU's libg++ (version 2.6.2) for the Alpha/OSF/1 system, and
now I'm trying to run the tests that came with the package.  I'm having problems
getting past the "tfformat" test.  Specifically, the "tfformat" program
core dumps (segmentation fault) while in sscanf(3).  Now, according the
the debugger, the problem is that the pointer to the buffer argument (the
first arg to sscanf(3)) is being truncated to the low-order 4 bytes (remember
that the Alpha system has 64-bit pointers), and as a result the buffer is
dereferencing off into kaka.

Has anyone built these libraries (and tested them) under OSF/1 V1.x?  If so,
did you run into this problem?  I built a quick "test" program to test
sscanf(3) and it seems to work fine OUTSIDE of the "tfformat" program.
Also, other "stdio" routines work fine in "tfformat" (e.g. sprintf(3),
puts(3), etc...), and according to the debugger these routines do NOT
truncate the pointer to the buffer argument, only sscanf(3) seems to be
affected.

I know this is just a test, but I'm worried that sscanf(3) may not be
working correctly, so I want to see if I can resolve the problem BEFORE I
let my users loose...

Any clues?

-- Geordie

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-02-07 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-07 20:24 Problems with testing GNU's libg++ (2.6.2) gfkpci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox