comp.lang.ada
 help / color / mirror / Atom feed
* BUS ERROR
@ 1990-08-27 23:48 J o s e D u a r t e ! ! !
  0 siblings, 0 replies; 50+ messages in thread
From: J o s e D u a r t e ! ! ! @ 1990-08-27 23:48 UTC (permalink / raw)



Hi Folks,

	A while ago, I asked for help with a BUS ERROR problem
that I was having when using pointers. Since then, I have
tried some of your suggestions & I posted the results a while
ago.  I resolved this problem by:

	1. Dereferencing the pointer variable explicitly.
	2. Using an older version of the Verdix Compiler.


	Thanks to all who replied & sent helpful suggestions.
Now that I compiled the program with Verdix 5.5, it's about
twice as slow *but* it doesn't stop w/"BUS ERROR" problems!

J Duarte

^ permalink raw reply	[flat|nested] 50+ messages in thread
[parent not found: <0367891DA5DA7E408D42A860FA002F44B0CC48@sma2901.cr.eurocopter.corp>]
* AW: Bus error
  2007-06-29  8:04         ` Dmitry A. Kazakov
@ 2007-06-29  9:23 Grein, Christoph (Fa. ESG)
  2007-06-29 10:17 ` Dmitry A. Kazakov
  -1 siblings, 1 reply; 50+ messages in thread
From: Grein, Christoph (Fa. ESG) @ 2007-06-29  9:23 UTC (permalink / raw)
  To: comp.lang.ada

> ... one objection against Ada 2005 design is that now it is impossible
to > have types which objects were strictly temporal, i.e. to prevent
creation > of variables. Consider this:
>
> [  type T (<>) is limited private; ]
>
>   X : T := Factory; -- Was illegal in Ada 95
>
>   Foo (Factory); -- That's OK

Was this feature, which is now lost, often used and very important? Then
we should consider making it again available in the next Ada version. So
put a request to Ada Comment.


Eurocopter Deutschland GmbH
Sitz der Gesellschaft/Registered Office: Donauwoerth
Registergericht/Registration Court: Amtsgericht Augsburg HRB 16508
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: Dr. Lutz Bertling
Geschaeftsfuehrung/Board of Management:
Dr. Wolfgang Schoder, Vorsitzender/CEO; Friedrich-Wilhelm Hormel; Ralf Barnscheidt

CONFIDENTIALITY NOTICE 

This communication and the information it contains is intended for the addressee(s) named above and for no other persons or organizations. It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication or any part of it is prohibited and may be unlawful. 
If you have received this communication in error, kindly notify us by return e-mail and discard and/or delete the communication. Thank you very much. 
It is possible for e-mails to be intercepted or affected by viruses. Whilst we maintain virus checks on our e-mails, we accept no liability for viruses or other material which might be introduced with this message. 




^ permalink raw reply	[flat|nested] 50+ messages in thread
* Bus error
@ 2007-06-27 14:23 Maciej Sobczak
  2007-06-27 15:45 ` Georg Bauhaus
  2007-06-27 20:02 ` Anh Vo
  0 siblings, 2 replies; 50+ messages in thread
From: Maciej Sobczak @ 2007-06-27 14:23 UTC (permalink / raw)


I have found a problem with my compiler:

-- a.ads
with Ada.Finalization;
package A is

   type T is tagged limited private;

   function Make return T;

private

   type T is new Ada.Finalization.Limited_Controlled with
      record
         X : Integer;
      end record;

   overriding procedure Finalize(V : in out T);

end A;

-- a.adb
with Ada.Text_IO;
package body A is

   function Make return T is
   begin
      return (Ada.Finalization.Limited_Controlled with 7);
   end Make;

   procedure Finalize(V : in out T) is
   begin
      Ada.Text_IO.Put("Finalizing T");
   end;

end A;

-- hello.adb
with A;
procedure Hello is
   Y : A.T := A.Make;
begin
   null;
end Hello;

$ gnatmake hello
gcc -c hello.adb
gcc -c a.adb
gnatbind -x hello.ali
gnatlink hello.ali
$ ./hello
Bus error
$

GNAT version: 4.3.0 20070527 (experimental)

BTW - is the code correct at all? I'm worried about A.Make in
particular.

--
Maciej Sobczak
http://www.msobczak.com/




^ permalink raw reply	[flat|nested] 50+ messages in thread
* BUS ERROR
@ 1990-08-16 14:52 saharbaugh%roo.dnet
  0 siblings, 0 replies; 50+ messages in thread
From: saharbaugh%roo.dnet @ 1990-08-16 14:52 UTC (permalink / raw)


Since one trial test still fails Kathy Gilroy suggests 
disabling the optimizer (assuming it is on by default).  This has
sometimes helped clear problems with access types.  Let us know the results.
sam harbaugh for kathy gilroy
-----------------------------

^ permalink raw reply	[flat|nested] 50+ messages in thread
* BUS ERROR
@ 1990-08-13 21:11 J o s e D u a r t e !!!
  0 siblings, 0 replies; 50+ messages in thread
From: J o s e D u a r t e !!! @ 1990-08-13 21:11 UTC (permalink / raw)


Hi Everybody,

	I just wanted to post my findings on the BUS ERROR bug
that I recently battled with...I received the following responses
from people throughout the country. I would like to thank everyone
who responded and I would like to especially thank Sam Harbaugh and
Kathy Gilroy.  I tried Kathy's suggestion, and the program behaved
correctly in all trial tests except one.

Jose Duarte

------------------------------------------------------
From: Fred Hosch <fred@titan.tsd.arlut.utexas.edu>
Subject: bus error


Verdix reports "a deficiency in the Sun OS may cause a 'bus error' during
execution of VADS compiled code on 68030-based Sun hosts ... Sun intends to
fix this deficiency in the 4.1.1 release of Sun OS."  Since you're running
a Sun 4, I don't know if this applies.  At any rate, a patch exits for
Sun OS versions 4.0.3 and 4.1.  The bug ID is 1038670.  The patch can
be obtained from Sun (1-800-USA-4-SUN, or bulletin board 1-800-477-4768
with the login guest), or from Verdix (1-800-USE-VADS).

Fred Hosch
Applied Research Labs
UT Austin
fred@cs.utexas.edu


------------------------------------------------------
From: saharbaugh%roo.dnet@WINNIE.FIT.EDU
Subject: bus error
Date: 9 Aug 90 14:50:38 GMT


We haven't experienced bus_error on our Sun 4 or Silicon Graphics
but we have in the past experienced them on a Masscomp running
Unix and Verdix compiler.  Our conclusion was that bus errors were
hardware problems and being reported by Unix and had nothing to
do with Ada.  We would sometimes get bus_error on boot-up when the
hardware was being tested by the ROM boot.
   So...our suggestion is to call a hardware maintenance person
to run diagnostics.  Hope this helps some.
regards, sam harbaugh
------------------------------------------------------
From: cpp@calmasd.Prime.COM (Chuck Peterson)
Subject: Re: bus error
Organization: Calma - A Division of Prime Computers


I believe that "bus error" on an SGI indicates that an invalid memory
address was generated (e.g. an attempt to dereference an invalid C
pointer).

My opinion only. (Disclaimer.)
------------------------------------------------------
From: saharbaugh%roo.dnet@WINNIE.FIT.EDU
Subject: bus error


     Kathy Gilroy says that she has experienced "bus error" when using
access types sometimes and has found a preventative to be tp
use the keyword "all" when referencing components of the accessed
object.
     i.e., instead of referencing "object.component" reference
"object.all.component".
     A possible explanation is that the code
generator gets confused and generates an illegal bus address which
then is reported through the operating system to you as a "bus error".
     If anyone tries this please report the results, thanks.
sam harbaugh for kathy gilroy
------------------------------------------------------

Thanks again to everyone who responded !!!

^ permalink raw reply	[flat|nested] 50+ messages in thread
* bus error
@ 1990-08-10 12:32 saharbaugh%roo.dnet
  0 siblings, 0 replies; 50+ messages in thread
From: saharbaugh%roo.dnet @ 1990-08-10 12:32 UTC (permalink / raw)



     Kathy Gilroy says that she has experienced "bus error" when using
access types sometimes and has found a preventative to be tp
use the keyword "all" when referencing components of the accessed
object.
     i.e., instead of referencing "object.component" reference
"object.all.component".
     A possible explanation is that the code
generator gets confused and generates an illegal bus address which
then is reported through the operating system to you as a "bus error".
     If anyone tries this please report the results, thanks.
sam harbaugh for kathy gilroy
-----------------------------

^ permalink raw reply	[flat|nested] 50+ messages in thread
* bus error
@ 1990-08-09 14:50 saharbaugh%roo.dnet
  1990-08-10 21:38 ` Chuck Peterson
  0 siblings, 1 reply; 50+ messages in thread
From: saharbaugh%roo.dnet @ 1990-08-09 14:50 UTC (permalink / raw)


From:	WINNIE::"MAILER-DAEMON" "Mail Delivery Subsystem"  9-AUG-1990 10:40:54.85
To:	<roo::saharbaugh> 
CC:	
Subj:	Returned mail: unknown mailer error 101 

   ----- Transcript of session follows -----
bad system name: ucivax
uux failed. code 101
554 <ucivax!gateway@ucbvax.Berkeley.edu>... unknown mailer error 101

   ----- Unsent message follows -----
Received: from ROO.DECnet MAIL11D_V3 by winnie.fit.edu (5.57/Ultrix2.4-C)
	id AA04506; Thu, 9 Aug 90 10:27:06 EDT
Date: Thu, 9 Aug 90 10:27:05 EDT
From: roo::saharbaugh
To: WINNIE::"ucivax!gateway@ucbvax.Berkeley.edu"
Cc: SAHARBAUGH
Subject: to Jose_Duarte, bus_error

We haven't experienced bus_error on our Sun 4 or Silicon Graphics
but we have in the past experienced them on a Masscomp running
Unix and Verdix compiler.  Our conclusion was that bus errors were
hardware problems and being reported by Unix and had nothing to
do with Ada.  We would sometimes get bus_error on boot-up when the
hardware was being tested by the ROM boot.
   So...our suggestion is to call a hardware maintenance person
to run diagnostics.  Hope this helps some.
regards, sam harbaugh
---------------------

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

end of thread, other threads:[~2007-07-02 14:22 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1990-08-27 23:48 BUS ERROR J o s e D u a r t e ! ! !
     [not found] <0367891DA5DA7E408D42A860FA002F44B0CC48@sma2901.cr.eurocopter.corp>
2007-06-29  9:35 ` AW: Bus error Duncan Sands
2007-06-29 12:55   ` Dmitry A. Kazakov
2007-06-29 15:37     ` Markus E Leypold
2007-06-29 15:44     ` Georg Bauhaus
2007-06-29 20:07       ` Dmitry A. Kazakov
2007-06-30  1:37         ` Robert A Duff
2007-06-30  8:44           ` Dmitry A. Kazakov
2007-06-30 11:52             ` Georg Bauhaus
2007-06-30 13:16               ` Georg Bauhaus
2007-06-30 14:31               ` Dmitry A. Kazakov
2007-06-30 18:07                 ` Georg Bauhaus
2007-06-30 19:31                   ` Robert A Duff
2007-07-01  9:07                   ` Dmitry A. Kazakov
2007-06-30 15:40               ` Robert A Duff
2007-06-30 17:54                 ` Georg Bauhaus
2007-07-02  8:01           ` Jean-Pierre Rosen
2007-07-02 12:00             ` Dmitry A. Kazakov
2007-07-02 12:30               ` Jean-Pierre Rosen
2007-07-02 14:22             ` Robert A Duff
2007-06-30 13:14         ` Georg Bauhaus
2007-06-30 14:31           ` Dmitry A. Kazakov
2007-06-30 15:34             ` Robert A Duff
2007-07-01  8:34               ` Dmitry A. Kazakov
2007-07-01 15:39                 ` Robert A Duff
2007-07-01 19:41                   ` Dmitry A. Kazakov
2007-06-30 15:29           ` Robert A Duff
2007-06-30 17:41             ` Georg Bauhaus
2007-06-30 13:31         ` Markus E Leypold
2007-07-02  0:16           ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2007-06-29  9:23 AW: " Grein, Christoph (Fa. ESG)
2007-06-29 10:17 ` Dmitry A. Kazakov
2007-06-27 14:23 Maciej Sobczak
2007-06-27 15:45 ` Georg Bauhaus
2007-06-27 17:19   ` Maciej Sobczak
2007-06-28  1:58     ` Robert A Duff
2007-06-28 20:06       ` Maciej Sobczak
2007-06-28 21:19         ` Robert A Duff
2007-06-29  8:05           ` Maciej Sobczak
2007-06-29  9:42             ` Georg Bauhaus
2007-06-29 16:59               ` Adam Beneschan
2007-06-30 12:33                 ` Georg Bauhaus
2007-06-30  2:02             ` Robert A Duff
2007-06-29  8:04         ` Dmitry A. Kazakov
2007-06-27 20:02 ` Anh Vo
2007-06-27 20:48   ` Maciej Sobczak
2007-06-28  2:01     ` Robert A Duff
1990-08-16 14:52 BUS ERROR saharbaugh%roo.dnet
1990-08-13 21:11 J o s e D u a r t e !!!
1990-08-10 12:32 bus error saharbaugh%roo.dnet
1990-08-09 14:50 saharbaugh%roo.dnet
1990-08-10 21:38 ` Chuck Peterson

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