From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075317506423.tru64-unix-managers.marc@archive.invalid> From: gfkpci () borg ! cis ! rit ! edu (Geordie Klueber) Date: Tue, 07 Feb 1995 20:24:11 +0000 To: tru64-unix-managers Subject: Problems with testing GNU's libg++ (2.6.2) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075317506423 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