need to raise ulimit

Jim Barton jmb at patton.SGI.COM
Tue Mar 8 11:33:43 AEST 1988


In article <22686 at clyde.ATT.COM>, wtr at moss.ATT.COM writes:
...
> 
> 2)	I was compiling the source to the Korn Shell the
> 	other night ( large model, no optimizing :-(
> 	I finally got all the modules compiled and linked,
> 	but when I type 'ksh' the system procedes to dump
> 	core big time, and the shell never executes.
> 	The executable is about 120 kb after linking,
> 	with no stripping.  Anyone had similar experiences?
> 	Is it the kernal? compiler? linker? Am steeling myself
> 	for sbd-ing soon (AACCKKTH!)
> 
...
> Bill Rankin
> Bell Labs, Whippany NJ
> (201) 386-4154 (cornet 232)
> 
> email address:		...![ ihnp4 ulysses cbosgd allegra ]!moss!wtr
> 			...![ ihnp4 cbosgd akgua watmath  ]!clyde!wtr
> =====================================================================

The K-shell is written to assume that the size of an integer is the same
size as a pointer.  In the 286 large model, an integer is 16 bits, and
a pointer 32.  There is no workaround, this is just plain bad coding
practice.

Best bet is to compile ksh small model with everything but your favorite edit
mode turned off (e.g., -DVSH or -DESH) and make sure to optimize it.  It will
then fit (just barely) in the small model, where the size of an integer
really is the same as the size of a pointer.

So much for portable code.

-- Jim Barton
>From the UNIX asylum at SiliconGraphics, Inc.
jmb at sgi.sgi.com,  sgi!jmb at decwrl.dec.com, ...{decwrl,sun}!sgi!jmb



More information about the Comp.unix.microport mailing list