Topic: something nasty


Author: dkarr@sierra.com (David Karr)
Date: 3 Nov 92 17:33:39 GMT
Raw View
dan@BofA.COM (Dan Brockman) writes:
:
: If you can explain this, please send me email and
: tell me how to fix my code so it runs.
:
: ---------------- the big nasty --------------------
:
:
: "Dbasesw.c", line 1842: internal <<AT&T C++ Translator
: 2.1.03 08/31/90>> error: bus error (or something nasty
:  like that)

A problem report like the one you have written here is a very good example
of how NOT to write a problem report.  If anyone is going to have any clue
about your problem, you need to provide a lot more information.  Several
important pieces of information would be:

    * The line of code that is being compiled, with some lines of context.
    * The computer you are running this on.
    * The vendor that supplies the compiler (We know it is derived from
     cfront from the error message).
    * The compiler options you used to compile the file.
    * The vendor's version of the compiler.

You shouldn't expect any reasonable answers to your question unless you
provide us information about the context of the problem.


Despite my admonishments, I have seen this error message.  We see it on the
HP (HPUXv8.07) when we try to compile certain files with "-g".  The
workaround is not to compile with that option (in other words, no
workaround).
--
David M. Karr
Sierra Geophysics, Inc.
ARPA: dkarr@sierra.com, UUNET: uunet!sgihbtn!dkarr
Phone: (206) 822-5200 (343)




Author: dan@BofA.COM (Dan Brockman)
Date: Thu, 5 Nov 92 17:13:17 GMT
Raw View
I received several responses via email to my posting
re the "something nasty" bug .  Thanks to all.  I will
post a summary of the responses and the cure adopted
next week when the deadline crush is off.
Problem solved for now.  Thanks all.  DanB

--
 --------------------------------------------------------------
 Daniel Brockman             tel 415-953-0406, fax 415-622-2892
 Bank of America, Dept 5906, 555 Calif St
 San Francisco 94104 USA    email uunet!odinba!dan dan@BofA.COM




Author: gkrishna@alt.uucp (Gopal-Krishnan)
Date: Tue, 17 Nov 1992 17:26:33 GMT
Raw View
>dan@BofA.com (Dan Brockman) writes in <1992Nov1.224626.771@BofA.com>:

> "DealStruct.c", line 165: internal <<AT&T C++ Translator
> 2.1.03 08/31/90>> error: bus error (or something nasty
> like that)
> Compilation failed

  In the summary I did not see the following as 'possible causes'. And so,
 here I am posting this:

1. When the nesting level is too high cfront dies this gracefully!.
  That is if you have code that says
  {
   blabla
   {
    blabla
    { ...etc.
  I think the AT&T C++ Language System Release Notes or some such document gives
  this number as 20 for 386 machines etc. So, if your program has more than
  that specified number of open '{', then you get this internal error.
  Even if your code does not have that many '{, remember that each variable
  definition midway your code introduces a scope.
    I mean things like
       x= y+z;
       int a = 4; //this introduces a scope.

  Way out:
  Just get rid of those unnecessary scopes you have, if any.
  Make extra functions by splitting your code, if that is possible.
  Better still, ask your compiler guy. He should be able to give a fix for you.
  My compiler guy was able to give me a fix (after some time though).

2. When your code has complicated
   while ... for ... while loops the same thing happens.

  Way out:
  Same as above.

3 onwards:
  I had a few more cases when I got this 'nasty' thing. They are complicated
  code, and hence is not possible to generalise and post them.

  Anyway, try workarounds by modifying your code.
  In most cases, it is possible.

My compiler guy said, that he has a handful of signal handlers installed in
the system, and when any of them is invoked, this msg is printed.
That is why the msg sounds so nasty.
-----------------------------------------------------------------------
Gopal Krishnan          | internet: alt!gkrishna@uunet.UU.net
Unisys Corporation      | voice: 805-389-4446
Open Systems Group      | fax  : 805-389-4420
5155, Camino Ruiz       | Take charge. Somebody has to do it -
Camarillo, CA - 93012.  |  It might as well be you.
-----------------------------------------------------------------------






Author: dan@BofA.COM (Dan Brockman)
Date: 1 Nov 92 22:46:26 GMT
Raw View
If you can explain this, please send me email and
tell me how to fix my code so it runs.

---------------- the big nasty --------------------


"Dbasesw.c", line 1842: internal <<AT&T C++ Translator
2.1.03 08/31/90>> error: bus error (or something nasty
 like that)

 ------------- another nasty -------------------
"Dbasefs.c", line 1879: internal <<AT&T C++ Translator
2.1.03 08/31/90>> error: bus error (or something nasty
like that)

  ----------------nasty # 3 ------------------------
 "DealStruct.c", line 165: internal <<AT&T C++ Translator
 2.1.03 08/31/90>> error: bus error (or something nasty
 like that)
Compilation failed
:wq

--
 --------------------------------------------------------------
 Daniel Brockman             tel 415-953-0406, fax 415-622-2892
 Bank of America, Dept 5906, 555 Calif St
 San Francisco 94104 USA    email uunet!odinba!dan dan@BofA.COM