[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question?



Following your announcement of es-0.84, I acquired the 'tar' file and
attempted to construct the shell on an HP9000/835 running HPUX version
A.09.00. I have encountered a problem which Iam hoping you have seen
before.

All compiles run flawlessly using the specifications shown below. The
execution of esdump (./esdump < initial.es > initial.c) fails with a
memory fault. Using the HP debugger (xdb) indicates the failure occurs
in a call to strlen in fmtcat(). The first six lines of invocation stack
are depicted below.

               0- strlen
               1- fmtcat     print.c:230
               2- sconv      print.c:52
               3- printfmt   print.c:249
               4- fmtprint   print.c:271
               5- Lconv      conv.c:17

The offending variable appears to be 's' (strlen(s)) which is defined
in 'sconv' by a statement of the form 'char* s= va_arg(...)'.

Is this a known problem or 'am I breaking new ground?

Specifications form Makefile.

SHELL	= /bin/sh
CC	= cc
#CC	= gcc
CFLAGS	= -g -zAa -DHPUX
LDFLAGS	=
LIBS	=

Specifications form config.h

#if HPUX
#define _INCLUDE_POSIX_SOURCE
#define _INCLUDE_XOPEN_SOURCE
#define _INCLUDE_HPUX_SOURCE
#define GETGROUPS_USES_GID_T    1
#define USE_STDARG              1
#define USE_UNISTD              1
#ifndef	BSD_LIMITS
#define BSD_LIMITS		0
#endif
#ifndef	USE_DIRENT
#define	USE_DIRENT		0
#endif

Thank You!

Lewis Patterson
patterso@cis.uab.edu