Article View: gnu.gcc.help
Article #41365SIGBUS on function return
From: Jamie Burks
Date: Mon, 01 Apr 1996 00:00
Date: Mon, 01 Apr 1996 00:00
14 lines
1325 bytes
1325 bytes
I am using gcc 2.7.2 built with gas and binutils 2.6 on HPUX 10.01. I am seeing some strange behavior with a function that returns a structure of two short ints. Upon returning, to the caller the application is getting a SIGBUS, Bus error. I stepped through the function that is being called and everything there is fine. But as soon as it returns to the caller, SIGBUS. So I stepped through the return sequence instruction by instruction. The instruction where the SIGBUS is generated is a stw. This stw instruction is the one that is placing the returned structure into the callers structure. Has anyone seen behavior similar to this? Or, does anyone have any ideas/pointers as to what the trouble could be? I'd really appreciate any help.
Technical Details
Message-ID:
<3160423D.1459@mgate.lotus.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d44872d3fe971914,start X-Google-Attributes: gid11318c,public X-Google-Thread: fe5c0,d44872d3fe971914,start X-Google-Attributes: gidfe5c0,public From: Jamie Burks <jburks@mgate.lotus.com> Subject: SIGBUS on function return Date: 1996/04/01 Message-ID: <3160423D.1459@mgate.lotus.com> X-Deja-AN: 145290372 content-type: text/plain; charset=us-ascii organization: HP Contractor mime-version: 1.0 newsgroups: gnu.gcc.help,comp.sys.hp.apps x-mailer: Mozilla 2.0 (WinNT; I)