Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!sdd.hp.com!wuarchive!uunet!stanford.edu!agate!ucbvax!tardis.computer-science.edinburgh.ac.uk!gtoal From: gtoal@tardis.computer-science.edinburgh.ac.uk Newsgroups: comp.sys.acorn Subject: C problem. any ideas? Message-ID: <9105010718.AA17448@ucbvax.Berkeley.EDU> Date: 1 May 91 00:42:19 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 12 I have a program I ported to the archie which misbehaves horribly if I make the smallest changes to it. I don't think it's the usual unassigned variable problems, or heap cotruption, or wild pointers -- because a very suspicious thing happens: It works correctly only under C3.1B compiled with -g. Any other compiler, it goes wrong. Not -g, it goes wrong. And the clincher is... using the desktop debugger it actually gives an address trap *inside the debugger* before it even gets to the first line of main. I haven't a clue what could cause those symtoms. Any ideas? Graham (replies by mail to gtoal@uk.ac.ed -- our mail feed is *still* broken)