Illegal Instruction error

I keep getting a Illegal instruction error when running my MCP file below is the dump error message followed by truss log, dose anyone have any ideas?

/opt/builds/bin/core: ELF 32-bit MSB core file SPARC Version 1, from 'mcp'

*** Select Close or Exit from the window menu to close this window ***
Broken Pipe
3214:	execve("tcpserver", 0xFFBEF4A4, 0xFFBEF4AC)  argc = 1
3214:	 argv: ./tcpserver
3214:	 envp:
3214:	  AB_CARDCATALOG=/usr/dt/share/answerbooks/C/ab_cardcatalog
3214:	  DISPLAY=:0.0
3214:	  DTAPPSEARCHPATH=//.dt/appmanager:/etc/dt/appconfig/appmanager/%L:/etc/dt/appconfig/appmanager/C:/usr/dt/appconfig/appmanager/%L:/usr/dt/appconfig/appmanager/C
3214:	  DTDATABASESEARCHPATH=//.dt/types,/etc/dt/appconfig/types/%L,/etc/dt/appconfig/types/C,/usr/dt/appconfig/types/%L,/usr/dt/appconfig/types/C
3214:	  DTHELPSEARCHPATH=//.dt/help/root-orleski-0/%H://.dt/help/root-orleski-0/%H.sdl://.dt/help/root-orleski-0/%H.hv://.dt/help/%H://.dt/help/%H.sdl://.dt/help/%H.hv:/etc/dt/appconfig/help/%L/%H:/etc/dt/appconfig/help/%L/%H.sdl:/etc/dt/appconfig/help/%L/%H.hv:/usr/dt/appconfig/help/%L/%H:/usr/dt/appconfig/help/%L/%H.sdl:/usr/dt/appconfig/help/%L/%H.hv:/usr/dt/appconfig/help/C/%H:/usr/dt/appconfig/help/C
3214:	  DTSCREENSAVERLIST=StartDtscreenSwarm StartDtscreenQix     StartDtscreenFlame StartDtscreenHop StartDtscreenImage StartDtscreenLife     StartDtscreenRotor StartDtscreenPyro StartDtscreenWorm StartDtscreenBlank
3214:	  DTSOURCEPROFILE=true DTUSERSESSION=root-orleski-0
3214:	  DTXSERVERLOCATION=local EDITOR=/usr/dt/bin/dtpad
3214:	  HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help HOME=/
3214:	  LANG=C LOGNAME=root MAIL=/var/mail/root
3214:	  MANPATH=/usr/dt/man:/usr/man:/usr/openwin/share/man
3214:	  OPENWINHOME=/usr/openwin
3214:	  PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/ccs/bin:/usr/local/bin:/opt/SUNWspro/SC5.0/bin:.
3214:	  PWD=/ SESSION_SVR=orleski SHELL=/sbin/sh TERM=dtterm
3214:	  TERMINAL_EMULATOR=dtterm TZ=US/Eastern USER=root
3214:	  WINDOWID=71303177
3214:	  XFILESEARCHPATH=/usr/openwin/lib/locale/%L/%T/%N%S:/usr/openwin/lib/%T/%N%S
3214:	  XMBINDDIR=/usr/dt/lib/bindings
3214:	  XMICONBMSEARCHPATH=//.dt/icons/%B%M.bm://.dt/icons/%B%M.pm://.dt/icons/%B:/etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appconfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%
3214:	  XMICONSEARCHPATH=//.dt/icons/%B%M.pm://.dt/icons/%B%M.bm://.dt/icons/%B:/etc/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.
3214:	  _=/usr/dt/bin/sdt_shell dtstart_sessionlogfile=/dev/null
3214:	open("/dev/zero", O_RDONLY)			= 3
3214:	mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF3A0000
3214:	stat("tcpserver", 0xFFBEF198)			= 0
3214:	open("/usr/lib/libsocket.so.1", O_RDONLY)	= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF390000
3214:	mmap(0x00000000, 106496, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF370000
3214:	munmap(0xFF378000, 57344)			= 0
3214:	mmap(0xFF386000, 11073, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 24576) = 0xFF386000
3214:	close(4)					= 0
3214:	open("/usr/lib/libnsl.so.1", O_RDONLY)		= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF390000
3214:	mmap(0x00000000, 655360, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF280000
3214:	munmap(0xFF300000, 57344)			= 0
3214:	mmap(0xFF30E000, 37684, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 516096) = 0xFF30E000
3214:	mmap(0xFF318000, 27632, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF318000
3214:	close(4)					= 0
3214:	open("/usr/lib/libthread.so.1", O_RDONLY)	= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF390000
3214:	mmap(0x00000000, 229376, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF330000
3214:	munmap(0xFF34E000, 57344)			= 0
3214:	mmap(0xFF35C000, 7872, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 114688) = 0xFF35C000
3214:	mmap(0xFF35E000, 35180, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF35E000
3214:	close(4)					= 0
3214:	open("/usr/lib/librt.so.1", O_RDONLY)		= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF390000
3214:	mmap(0x00000000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF260000
3214:	munmap(0xFF268000, 57344)			= 0
3214:	mmap(0xFF276000, 1976, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 24576) = 0xFF276000
3214:	close(4)					= 0
3214:	open("/usr/lib/libelf.so.1", O_RDONLY)		= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF390000
3214:	mmap(0x00000000, 180224, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF230000
3214:	munmap(0xFF24C000, 57344)			= 0
3214:	mmap(0xFF25A000, 5952, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 106496) = 0xFF25A000
3214:	close(4)					= 0
3214:	open("/usr/lib/libc.so.1", O_RDONLY)		= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF390000
3214:	mmap(0x00000000, 770048, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF100000
3214:	munmap(0xFF1A4000, 57344)			= 0
3214:	mmap(0xFF1B2000, 26732, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 663552) = 0xFF1B2000
3214:	mmap(0xFF1BA000, 448, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF1BA000
3214:	close(4)					= 0
3214:	open("/usr/lib/libdl.so.1", O_RDONLY)		= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF390000
3214:	close(4)					= 0
3214:	open("/usr/lib/libmp.so.2", O_RDONLY)		= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF220000
3214:	mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF200000
3214:	munmap(0xFF204000, 57344)			= 0
3214:	mmap(0xFF212000, 3993, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 8192) = 0xFF212000
3214:	close(4)					= 0
3214:	open("/usr/lib/libaio.so.1", O_RDONLY)		= 4
3214:	fstat(4, 0xFFBEEF54)				= 0
3214:	mmap(0xFF220000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF220000
3214:	mmap(0x00000000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF1E0000
3214:	munmap(0xFF1E8000, 57344)			= 0
3214:	mmap(0xFF1F6000, 2467, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 24576) = 0xFF1F6000
3214:	mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF1D0000
3214:	close(4)					= 0
3214:	open("/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1", O_RDONLY) = 4
3214:	fstat(4, 0xFFBEEDC4)				= 0
3214:	mmap(0xFF220000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xFF220000
3214:	mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xFF0F0000
3214:	close(4)					= 0
3214:	close(3)					= 0
3214:	munmap(0xFF220000, 8192)			= 0
3214:	lwp_self()					= 1
3214:	sigfillset(0xFF1B8FC0)				= 0
3214:	brk(0x00113E58)					= 0
3214:	sysconfig(_CONFIG_PAGESIZE)			= 8192
3214:	sysconfig(_CONFIG_SEM_VALUE_MAX)		= 2147483647
3214:	lwp_self()					= 1
3214:	sigprocmask(SIG_SETMASK, 0x00000000, 0xFFBEF040) = 0
3214:	sigprocmask(SIG_SETMASK, 0xFF35D4E8, 0x00000000) = 0
3214:	sigaction(SIGLWP, 0xFF35DCA0, 0x00000000)	= 0
3214:	sigaction(SIGCANCEL, 0xFF35DCA0, 0x00000000)	= 0
3214:	sigaction(SIGSEGV, 0xFF35DCA0, 0x00000000)	= 0
3214:	brk(0x00113E58)					= 0
3214:	brk(0x00115E58)					= 0
3214:	open("/dev/zero", O_RDWR)			= 3
3214:	sysconfig(_CONFIG_STACK_PROT)			= 7
3214:	mmap(0x00000000, 8454144, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_NORESERVE, 3, 0) = 0xFE800000
3214:	close(3)					= 0
3214:	mprotect(0xFE800000, 8192, PROT_NONE)		= 0
3214:	mprotect(0xFE902000, 8192, PROT_NONE)		= 0
3214:	mprotect(0xFEA04000, 8192, PROT_NONE)		= 0
3214:	mprotect(0xFEB06000, 8192, PROT_NONE)		= 0
3214:	mprotect(0xFEC08000, 8192, PROT_NONE)		= 0
3214:	mprotect(0xFED0A000, 8192, PROT_NONE)		= 0
3214:	mprotect(0xFEE0C000, 8192, PROT_NONE)		= 0
3214:	mprotect(0xFEF0E000, 8192, PROT_NONE)		= 0
3214:	lwp_create(0xFFBEED78, __LWP_ASLWP, 0xFF00FE04)	= 2
3214:	lwp_create()	(returning as new lwp ...)	= 0
3214:	door_create(0xFF346A38, 0x00000000, 0x00000002)	= 3
3214:	getpid()					= 3214 [3213]
3214:	lwp_schedctl(SC_STATE|SC_BLOCK, 3, 0xFFBEEF7C)	= 0
3214:	door_info(3, 0xFF360100)			= 0
3214:	open("/dev/zero", O_RDWR)			= 4
3214:	mmap(0x00000000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_NORESERVE, 4, 0) = 0xFF0E0000
3214:	close(4)					= 0
3214:	mprotect(0xFF0E0000, 8192, PROT_NONE)		= 0
3214:	lwp_create(0xFFBEED60, LWP_DETACHED|LWP_SUSPENDED, 0xFF0E5E04) = 3
3214:	lwp_continue(3)					= 0
3214:	lwp_create()	(returning as new lwp ...)	= 0
3214:	close(3)					= 0
3214:	lwp_schedctl(SC_STATE|SC_BLOCK, -1, 0xFF0E5D04)	= 0
3214:	lwp_schedctl(SC_DOOR, 0, 0x00000000)		= 3
3214:	lwp_mutex_wakeup(0xFF3DCF40)			= 0
3214:	lwp_mutex_lock(0xFF3DCF40)			= 0
3214:	lwp_mutex_wakeup(0xFF3DCF40)			= 0
3214:	door_bind(3)					= 0
3214:	lwp_mutex_wakeup(0xFF3DCF40)			= 0
3214:	close(3)					= 0
3214:	lwp_mutex_wakeup(0xFF3DCF40)			= 0
3214:	lwp_mutex_lock(0xFF3DCF40)			= 0
3214:	sigaction(SIGWAITING, 0xFF35D338, 0x00000000)	= 0
3214:	lwp_self()					= 1
3214:	sysconfig(_CONFIG_SEM_VALUE_MAX)		= 2147483647
filename = 3214:	write(2, " f i l e n a m e   =  ", 11)		= 11
./tcpserver3214:	write(2, " . / t c p s e r v e r", 11)		= 11

3214:	write(2, "\n", 1)				= 1
3214:	getpid()					= 3214 [3213]
3214:	brk(0x00115E58)					= 0
3214:	brk(0x00117E58)					= 0
3214:	uname(0xFFBEE937)				= 1
3214:	open("/opt/mpath/mpsyslogd/etc/logfifo", O_WRONLY|O_NONBLOCK) = 3
3214:	uname(0xFFBEE5C0)				= 1
3214:	sigaction(SIGPIPE, 0xFFBEEA28, 0x00000000)	= 0
3214:	getpid()					= 3214 [3213]
3214:	open("/dev/zero", O_RDWR)			= 4
3214:	mmap(0x00000000, 139264, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_NORESERVE, 4, 0) = 0xFF0B0000
3214:	close(4)					= 0
3214:	mprotect(0xFF0B0000, 8192, PROT_NONE)		= 0
3214:	lwp_create(0xFFBEEBB8, LWP_DETACHED|LWP_SUSPENDED, 0xFEE0BE04) = 4
3214:	lwp_continue(4)					= 0
3214:	lwp_create()	(returning as new lwp ...)	= 0
3214:	lwp_sema_post(0xFF35DED0)			= 0
3214:	lwp_self()					= 1
3214:	lwp_sema_post(0xFF35DED0)			= 0
3214:	brk(0x00117E58)					= 0
3214:	brk(0x00119E58)					= 0
3214:	getpid()					= 3214 [3213]
3214:	getrlimit(RLIMIT_NOFILE, 0xFFBEF004)		= 0
3214:	setrlimit(RLIMIT_NOFILE, 0xFFBEF004)		= 0
3214:	so_socket(2, 1, 17, "", 1)			= 4
3214:	ioctl(4, FIONBIO, 0xFFBEEFFC)			= 0
3214:	bind(4, 0x001127C8, 16, 3)			= 0
3214:	getsockname(4, 0x001127C8, 0xFFBEF000, 1)	= 0
3214:	open("/dev/zero", O_RDWR)			= 5
3214:	mmap(0x00000000, 139264, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_NORESERVE, 5, 0) = 0xFF080000
3214:	close(5)					= 0
3214:	mprotect(0xFF080000, 8192, PROT_NONE)		= 0
3214:	lwp_self()					= 1
3214:	door_return(0x00000000, 0, 0x00000000, 0)	= 0
3214:	open("/dev/zero", O_RDWR)			= 5
3214:	lwp_self()					= 4
3214:	mmap(0x00000000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_NORESERVE, 5, 0) = 0xFF070000
3214:	lwp_schedctl(SC_STATE|SC_BLOCK, -1, 0xFEE0BD64)	= 0
3214:	close(5)					= 0
3214:	mprotect(0xFF070000, 8192, PROT_NONE)		= 0
3214:	sigaction(SIGALRM, 0xFEE0BC90, 0x00000000)	= 0
3214:	lwp_create(0xFF0E5A30, LWP_DETACHED|LWP_SUSPENDED, 0xFF075E04) = 5
3214:	sigprocmask(SIG_BLOCK, 0xFEE0BE2C, 0x00000000)	= 0
3214:	lwp_continue(5)					= 0
3214:	sigprocmask(SIG_UNBLOCK, 0xFF35DEC0, 0x00000000) = 0
3214:	lwp_create()	(returning as new lwp ...)	= 0
3214:	lwp_sema_wait(0xFF35DED0)			= 0
3214:	lwp_sema_post(0xFF35DED0)			= 0
3214:	sigprocmask(SIG_BLOCK, 0xFF35DEC0, 0x00000000)	= 0
3214:	getpid()					= 3214 [3213]
3214:	setitimer(ITIMER_REAL, 0xFEE0BCC0, 0x00000000)	= 0
3214:	sigprocmask(SIG_UNBLOCK, 0xFF35DEC0, 0x00000000) = 0
3214:	getpid()					= 3214 [3213]
3214:	lwp_sema_wait(0xFF35DED0)			= 0
3214:	sigprocmask(SIG_BLOCK, 0xFF35DEC0, 0x00000000)	= 0
3214:	setitimer(ITIMER_REAL, 0xFEE0BCC0, 0x00000000)	= 0
3214:	sigprocmask(SIG_UNBLOCK, 0xFF35DEC0, 0x00000000) = 0
3214:	brk(0x00119E58)					= 0
3214:	lwp_sema_wait(0xFF35DED0)			= 0
3214:	brk(0x0011BE58)					= 0
3214:	sigprocmask(SIG_BLOCK, 0xFF35DEC0, 0x00000000)	= 0
3214:	setitimer(ITIMER_REAL, 0xFEE0BCC0, 0x00000000)	= 0
3214:	sigprocmask(SIG_UNBLOCK, 0xFF35DEC0, 0x00000000) = 0
3214:	time()						= 1400600079
3214:	getpid()					= 3214 [3213]
3214:	fstat64(0, 0xFFBEEF68)				= 0
3214:	ioctl(0, TCGETA, 0xFFBEEE44)			Err#6 ENXIO
3214:	fstat64(1, 0xFFBEEF68)				= 0
3214:	ioctl(1, TCGETA, 0xFFBEEE44)			Err#25 ENOTTY
3214:	fstat64(2, 0xFFBEEF68)				= 0
3214:	ioctl(2, TCGETA, 0xFFBEEE44)			Err#25 ENOTTY
3214:	getuid()					= 0 [0]
3214:	open64("/etc/.name_service_door", O_RDONLY)	= 5
3214:	fcntl(5, F_SETFD, 0x00000001)			= 0
3214:	door_info(5, 0xFF1B8E40)			= 0
3214:	signotifywait()					= 32
3214:	door_call(5, 0xFFBEEC98)			= 0
3214:	lwp_schedctl(SC_STATE|SC_BLOCK, -1, 0xFF075D04)	= 0
3214:	lwp_mutex_wakeup(0xFF3DCF40)			= 0
3214:	lwp_schedctl(SC_DOOR, 0, 0x00000000)		= 6
3214:	lwp_sigredirect(0, SIGWAITING)			= 0
3214:	lwp_mutex_lock(0xFF3DCF40)			= 0
3214:	door_bind(6)					= 0
3214:	sigaction(SIGWAITING, 0xFF35D358, 0x00000000)	= 0
3214:	close(6)					= 0
3214:	open("/dev/zero", O_RDWR)			= 6
3214:	mmap(0x00000000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_NORESERVE, 6, 0) = 0xFF060000
3214:	open("./tcpserver", O_RDWR)			= 7
3214:	close(6)					= 0
3214:	mprotect(0xFF060000, 8192, PROT_NONE)		= 0
3214:	mmap(0x00000000, 1080, PROT_READ|PROT_WRITE, MAP_SHARED, 7, 0) = 0xFF050000
3214:	open("", O_RDWR|O_CREAT, 0600)			Err#2 ENOENT
3214:	lwp_create(0xFF00FAE8, LWP_DETACHED|LWP_SUSPENDED, 0xFF063E04) = 6
3214:	lwp_continue(6)					= 0
3214:	lwp_create()	(returning as new lwp ...)	= 0
3214:	lwp_schedctl(SC_STATE|SC_BLOCK, -1, 0xFF063D04)	= 0
3214:	time()						= 1400600079
3214:	lwp_mutex_wakeup(0xFF3DCF40)			= 0
3214:	lwp_mutex_lock(0xFF3DCF40)			= 0
3214:	open("/usr/share/lib/zoneinfo/US/Eastern", O_RDONLY) = 6
3214:	read(6, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)	= 1250
3214:	close(6)					= 0
3214:	getpid()					= 3214 [3213]
3214:	write(3, " d e f a u l t\0 R      ".., 328)	= 328
3214:	munmap(0xFF050000, 1080)			= 0
3214:	close(7)					= 0
3214:	getpid()					= 3214 [3213]
3214:	write(3, " d e f a u l t\0 :      ".., 328)	= 328
3214:	ioctl(1, TCGETA, 0xFFBEE51C)			Err#25 ENOTTY
3214:	fstat64(1, 0xFFBEE590)				= 0
3214:	brk(0x0011BE58)					= 0
3214:	brk(0x0011DE58)					= 0
3214:	    Incurred fault #6, FLTBOUNDS  %pc = 0x00029380
3214:	      siginfo: SIGSEGV SEGV_MAPERR addr=0x201138F4
3214:	    Received signal #11, SIGSEGV [caught]
3214:	      siginfo: SIGSEGV SEGV_MAPERR addr=0x201138F4
3214:	sysconfig(_CONFIG_SIGRT_MIN)			= 38
3214:	sigprocmask(SIG_SETMASK, 0xFF35D4E8, 0x00000000) = 0
3214:	sigaction(SIGSEGV, 0xFFBEE8C8, 0x00000000)	= 0
3214:	sysconfig(_CONFIG_SIGRT_MIN)			= 38
3214:	setcontext(0xFFBEE788)
3214:	    Incurred fault #6, FLTBOUNDS  %pc = 0x00029380
3214:	      siginfo: SIGSEGV SEGV_MAPERR addr=0x201138F4
3214:	    Received signal #11, SIGSEGV [default]
3214:	      siginfo: SIGSEGV SEGV_MAPERR addr=0x201138F4
3214:		*** process killed *** 

There is not much that can be learned from truss output in a case like this. No program should ever execute an illegal instruction. When one does, it means the program in question has a bug. If this program usually works ok and this illegal instruction is a rare exception, my guess would be that the program was fed some really screwy data. The program is attempting to process data that it should reject. So I would check the program's input looking for anything really strange.

I run it like so

./tcpserver -- then says following below

*** TCP Server post-init runtime is up and running
*** TCP/IP Example Server is up and running
*** Now listening for a player...
Segmentation Fault - core dumped

I updated the debug log in last post also to show env and process's

That does not help because Per's explanation is still true. That you're getting "illegal instruction" means this program has a bug.

The program expects a terminal, so you should give it a terminal. Run it on a login console or in an xterm window! Run the command tty to verify.

i did tty and out put is /dev/pts/3

He's not getting SIGILL, he's getting SIGSEGV, at the address 0x201138F4. Given the brk() values posted right before that SIGSEGV, that looks like someone's overrunning his heap - by exactly 512 MB.

A couple of other issues, too:

  1. Use of MAP_NORESERVE in mmap() calls.
    Why? So if your process does get swapped out, you crash when swapped back in? If you're lucky, because else you run with corrupt data. Or your process crashes when swap space runs out....

  2. open("", O_RDWR|O_CREAT) Err #2 ENOENT
    Is this error properly handled? It looks like open() is being passed an empty string.

  3. mmap() of the calling binary (./tcpserver).
    What in the world is this thing doing, mmap()'ing itself read/write for the first 1080 bytes of the binary executable? I wouldn't doubt getting a SIGILL after *that*.

any ideas on how to fix this achenle???, am no solaris tech your talking in a 9th language to me lol

He edited the first post completely changing the character of his problem.

all i did was update the log to show the full content that was all it is same error

More likely this program is trying to access somebody else's memory at 0x201138F4. Use mdb or dbx to see is actually going on in the code.

Is this code you wrote yourself or obtained from somewhere?

its a 3rd party program

Been offline for a while, sorry about the delay in responding.

First, make sure the installed software is correct. The mmap() of the actual binary read/write could have corrupted your installed copy, and caused the SIGILLs referred to in the thread. I can't tell you how to verify that since I don't know how it gets installed. You may need to do a reinstall. I will say, though, that merely checking file sizes isn't sufficient - you want to check actual contents of executable binary files since that mmap() listed in the truss output could easily corrupt the binary executable without changing the file size. (FWIW, that seems to me like the process is open()'ing and mmap()'ing the wrong file.)

After that? I'd thoroughly verify that the product is being used properly. Check the command line arguments carefully.

Without more detailed knowledge of the product, I can't give more specific help.