Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* strange behaviour of /sbin/sh
@ 2000-11-24  5:00 Herve Gautier
  2000-11-24 19:10 ` Stuart R. Fuller
  0 siblings, 1 reply; 5+ messages in thread
From: Herve Gautier @ 2000-11-24  5:00 UTC (permalink / raw)



Hi there !

On a Digital Unix (or Tru64 UNIX) v4.0d,
when a run :
/sbin/sh myscript

sh have a strange behaviour :

sometimes it works
sometimes it says me : "no space"
and sometimes it says me : "Unaligned access pid=12345 <myscript> va=0x...
pc=0x... ra=0x... inst=0x...

Did someone have encounter this problem ?

-- 
GAUTIER Herve (R.V)
professional email : herve.gautier@syseca.thomson-csf.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: strange behaviour of /sbin/sh
  2000-11-24  5:00 strange behaviour of /sbin/sh Herve Gautier
@ 2000-11-24 19:10 ` Stuart R. Fuller
  2000-11-27  5:00   ` Herve Gautier
  0 siblings, 1 reply; 5+ messages in thread
From: Stuart R. Fuller @ 2000-11-24 19:10 UTC (permalink / raw)


Herve Gautier (gautier@syseca.fr) wrote:
: 
: Hi there !
: 
: On a Digital Unix (or Tru64 UNIX) v4.0d,
: when a run :
: /sbin/sh myscript
: 
: sh have a strange behaviour :
: 
: sometimes it works
: sometimes it says me : "no space"
: and sometimes it says me : "Unaligned access pid=12345 <myscript> va=0x...
: pc=0x... ra=0x... inst=0x...
: 
: Did someone have encounter this problem ?

Well, it's not likely that someone else will encounter this problem unless
they have a copy of "myscript".

What's in "myscript"?

        Stu


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: strange behaviour of /sbin/sh
  2000-11-24 19:10 ` Stuart R. Fuller
@ 2000-11-27  5:00   ` Herve Gautier
  2000-11-27  5:00     ` Stuart R. Fuller
  0 siblings, 1 reply; 5+ messages in thread
From: Herve Gautier @ 2000-11-27  5:00 UTC (permalink / raw)


"Stuart R. Fuller" wrote:
> 
> Well, it's not likely that someone else will encounter this problem unless
> they have a copy of "myscript".
> 
> What's in "myscript"?
> 
>         Stu

If you are ready to wast a little time on this problem,
may I send you the script by email (because it is a
bit long script and my internet computer is not on my private
network, so I need to do a tar on tape and extract it on my
internet computer) ?

RV

-- 
GAUTIER Herve (R.V)
professional email : herve.gautier@syseca.thomson-csf.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: strange behaviour of /sbin/sh
  2000-11-27  5:00   ` Herve Gautier
@ 2000-11-27  5:00     ` Stuart R. Fuller
  2000-11-28  5:00       ` Herve Gautier
  0 siblings, 1 reply; 5+ messages in thread
From: Stuart R. Fuller @ 2000-11-27  5:00 UTC (permalink / raw)


Herve Gautier (gautier@syseca.fr) wrote:
: "Stuart R. Fuller" wrote:
: > 
: > Well, it's not likely that someone else will encounter this problem unless
: > they have a copy of "myscript".
: > 
: > What's in "myscript"?
: > 
: >         Stu
: 
: If you are ready to wast a little time on this problem,
: may I send you the script by email (because it is a
: bit long script and my internet computer is not on my private
: network, so I need to do a tar on tape and extract it on my
: internet computer) ?

What I'd end up doing would be to modify the script to add -vx to the
interpreter name.  That is, on the first line, where the shell is indicated,
change it from:

        #! /sbin/sh
        
to 

        #! /sbin/sh -vx
        
to cause commands and arguments to be displayed as the lines are executed.
Then, take note of where the errors occur, and deal accordingly.

        Stu



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: strange behaviour of /sbin/sh
  2000-11-27  5:00     ` Stuart R. Fuller
@ 2000-11-28  5:00       ` Herve Gautier
  0 siblings, 0 replies; 5+ messages in thread
From: Herve Gautier @ 2000-11-28  5:00 UTC (permalink / raw)


"Stuart R. Fuller" wrote:
> 
> What I'd end up doing would be to modify the script to add -vx to the
> interpreter name.  That is, on the first line, where the shell is indicated,
> change it from:
> 
>         #! /sbin/sh
> 
> to
> 
>         #! /sbin/sh -vx
> 
> to cause commands and arguments to be displayed as the lines are executed.
> Then, take note of where the errors occur, and deal accordingly.
> 
>         Stu

Already done ! It's not the point ! I think there is something whci crash
the /sbin/sh shell in my way to use it, because I do something like that :

shell_1 :
---------

function1()
{
}

shell_2 :
---------

. shell_1

function2 ()
{
}

shell_3 :
---------
. shell_1
. shell_2

function1
function2

May I send you by email the scripts ?

-- 
GAUTIER Herve (R.V)
professional email : herve.gautier@syseca.thomson-csf.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-11-28  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-24  5:00 strange behaviour of /sbin/sh Herve Gautier
2000-11-24 19:10 ` Stuart R. Fuller
2000-11-27  5:00   ` Herve Gautier
2000-11-27  5:00     ` Stuart R. Fuller
2000-11-28  5:00       ` Herve Gautier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox