This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.2.3-pre tarball 2: libjava build still fails on sparc-sun-solaris2.8


On Wednesday 23 April 2003 05:34 pm, Alexandre Oliva wrote:
> On Apr 23, 2003, Joe Buck <jbuck at synopsys dot com> wrote:
> > I realize that getting libtool to work right and portably is a tough job.
>
> Thanks; it is, indeed :-)
I may have stumbled on a BASH behavior that could cause erratic
script execution.  In brief...
While working on a script containing a sequence of shell commands
(internal bash commands) that caused BASH to fork multiple threads...

Getting totally unexpected behavior, in a seperate term, I attached an:
strace -fF -e trace=process -p PID_of_first_term

And found that my script was putting BASH into a state where it
was doing a "wait4" on a single child when it should have been
doing, in effect, a "wait4 ALL" of the child threads it had created.

Such a problem could be in any of:
BASH - 2.0.5, version 2.05a.0(1)-release
Perhaps in the threading:
glibc version 2.2.2
Perhaps in the scheduler behavior of the OS:
Linux-2.4.20 (2 processor, SMP )

It is a rare, but repeatable "corner case" once you have the
situation where, of the multiple threads created, at least one
of them has significantly longer execution time than the rest;
leading to "out of order" completion.

Just a "heads up" that BASH scripts may not be completing
things in the order the author has envisioned (coded).

Mike


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]