Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 1999 21:14:42 -0800 (PST)
From:      Chris Timmons <skynyrd@opus.cts.cwu.edu>
To:        freebsd-emulation@FreeBSD.ORG
Subject:   TclPro for Linux eval
Message-ID:  <Pine.BSF.3.96.990113203412.19661P-100000@opus.cts.cwu.edu>

next in thread | raw e-mail | index | archive | help

With the most recent 3.0-current emulator, I can run the setup program,
interact with dialogue windows, etc ... but then things go sour here,
apparantly while creating a pipe (I would guess preparing to execute the
unzip program "uzpln86" to uncompress tclpro.1 - something I can do from
the command line just fine.) 


 6781 pwlin    CALL  linux_access(0xefbfa26c,0)
  6781 pwlin    NAMI
"/compat/linux/usr/local/users/skynyrd/tclpro/tclpro1.1/uzpln86"
  6781 pwlin    NAMI  "/usr/local/users/skynyrd/tclpro/tclpro1.1/uzpln86"
  6781 pwlin    RET   linux_access 0
  6781 pwlin    CALL  linux_access(0xefbfa26c,0)
  6781 pwlin    NAMI
"/compat/linux/usr/local/users/skynyrd/tclpro/tclpro1.1/tclpro.1"
  6781 pwlin    NAMI  "/usr/local/users/skynyrd/tclpro/tclpro1.1/tclpro.1"
  6781 pwlin    RET   linux_access 0
  6781 pwlin    CALL  linux_pipe(0xefbfa738)
  6781 pwlin    RET   linux_pipe 0
  6781 pwlin    CALL  linux_fcntl(0x4,0x2,0x1)
  6781 pwlin    RET   linux_fcntl 0
  6781 pwlin    CALL  linux_fcntl(0x5,0x2,0x1)
  6781 pwlin    RET   linux_fcntl 0
  6781 pwlin    PSIG  SIGSEGV SIG_DFL
  6781 pwlin    NAMI  "pwlin.core"
  6765 sh       RET   linux_waitpid 6781/0x1a7d
  6765 sh       CALL  write(0x2,0x80a3080,0x12)
  6765 sh       GIO   fd 2 wrote 18 bytes
       "Segmentation fault"
  6765 sh       RET   write 18/0x12
 

I ran gdb on the core file, and this looks plausible:

#0  0x80eda8a in TclpCreatePipe ()
#1  0x80e1aa3 in TclCreatePipeline ()
#2  0x80e1f4e in Tcl_OpenCommandChannel ()
#3  0x80da289 in Tcl_ExecCmd ()
#4  0x80b28c7 in TclInvokeStringCommand ()

[...]

The linux_fcntl calls just before the SEGV are to set the close-on-exec
flag (for the pair of file descriptors returned by pipe, right?)

Any ideas?  I realize that running an interpreted language like TCL under
emulation is goofy to begin with, but I kind of wanted to see if I could
at least check out some of the tcl debugging stuff. 

-Chris


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990113203412.19661P-100000>