- Subject: Re: possible stack over- or underflow
- From: Goran Koruga <goran.koruga@xxxxxxxxx>
- Date: Mon, 7 May 2001 15:20:53 +0200
On Mon, May 07 2001, Scheucher, Andreas wrote:
Hi,
I use
_traceback = 1;
and I get reports like the following :
S-Lang Error: Type Mismatch: Context requires an array. Scalar not converted
S-Lang Traceback: for
S-Lang Traceback: for
S-Lang Traceback: cdcc_send
File: /home/gorank/.justirc/scripts/cdcc.sl
Local Variables:
$0: Type: String_Type, Value: "~/src/volnorm-0.4.1/src/lib*.so, darko"
$1: Type: String_Type, Value: "~/src/volnorm-0.4.1/src/lib*.so"
$2: Type: String_Type, Value: " darko"
$3: Type: Array_Type, Value: String_Type[1]
$4: Type: Array_Type, Value: String_Type[1]
$5: Type: Integer_Type, Value: 1
$6: Type: Integer_Type, Value: 1
$7: Type: Null_Type, Value: NULL
$8: Type: String_Type, Value: "lib*.so"
S-Lang Traceback: cdcc
File: /home/gorank/.justirc/scripts/cdcc.sl
Local Variables:
$0: Type: String_Type, Value: "send ~/src/volnorm-0.4.1/src/lib*.so, darko"
$1: Type: String_Type, Value: "send"
$2: Type: String_Type, Value: "~/src/volnorm-0.4.1/src/lib*.so, darko"
S-Lang Error: Type Mismatch: Error while executing cdcc
This is usually helpful enough for me to find the problem.
Hope this helps,
Goran
> hi all,
>
> I have to maintain a very huge program written in s-lang by many people over
> several
> years( which means that it got a horrible mess). the software reads a huge
> amount of
> data records and reformats them. at the end it deliveres the new records in
> some
> output files. at least not that it was designed for, i think...
>
> after dealing with s-lang since more than a year now, I'm used to get the
> most time horrible
> or useless error messages.
> but in the moment I get absolute no response from the interpreter!
>
> the only thing I receive is a printout of the stack with an undefined value
> as last value on it,
> which makes me think that it is an stack overflow. the problem is that I
> reach the error only
> after a calculation time of nearly 4 houres.
>
> I tried now to use the _stkdepth function to get the amount of data on the
> stack before every
> record read in and after written out again to see whats happening. as usual
> it's not working
> as expected. it delivers no inter type value like explained in the
> documentation.
> I assigned the value to a variable and tried to print it -> crash! with no
> message
>
>
> has anybody an idea to how to handle this function correct( and mayby also
> the print_stack)?
>
>
> looking forword for any help.
> best regards and thanks,
> andreas
>
>
> Andreas Scheucher
> Mediation Developement
>
> > one
> Mob: +43 699 1699 3651
> Fax.: +43 699 4699 3651
>
--
Writing about music is like dancing about architecture.
-- Frank Zappa
[2001 date index]
[2001 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]