Forum OpenACS Q&A: running tcl "exec" under SUN OS

Collapse
Posted by Allan Regenbaum on
We developed a C++ implementation of the Tiny Encryption Algorithm
(TEA) for use in an application.  On linux, invoking TEA manually on
the command line or within [exec tea $key $string] works flawlessly.
When we ported to our SUN production box, the manual command line
invocation works great, but when invoking from within [exec tea ...
on the sun box, the system throws the following error ...

Anyone have any clues why the app would behave differently under SUN
OS, and any suggested remedy ? We have recompiled, we have changed
values returned by the app  .. no joy as yet

Thanks in advance ...

Allan Regenbaum
Digital People

==================================================
child killed: segmentation violation
    while executing
"exec /web/TEA/tea d $key $qstring"
    invoked from within
"set qs [exec /web/TEA/tea d $key $qstring]
"
    ("uplevel" body line 48)
    invoked from within
"uplevel {
          # index.tcl

Collapse
Posted by mark dalrymple on
There is probably something extra (or missing) in the environment when being called from aolserver. See if your program is dropping a core file. If so, you can use a debugger (gdb works) and see where it segfaulted. If not, you may need to use coreadm to enable core files.