Re: esql/c and optimization
Posted in 1993
In article <16BBFDA2C.CRAWFD@lexmark.com> CRAWFD@lexmark.com writes: >I am recompiling some of my routines with optimization on and I keep running >into this crazy bug. When I do a "strcpy" into an SQL variable sometimes >garbage turns up in the SQL variable. >I print out the contents of the variables >I'm copying, the statement before the "strcpy" and they look fine. I print >the contents after the statement "strcpy" and the one that was copied >into has turned to garbage. Another note, sometimes I can stick in a >random "printf" and walla, it works. Has anybody had similar problems, >running under AIX or another operating system?? Sure, all the time. The first sentence implies that the problem does not occur with optimization off. If true, it's almost certainly a compiler optimizer bug. We run into such things often, hence the need for such detailed port-level testing. (For those of you wondering why it "takes so long" for us to do a port, this is the key: the build(s) typically take a day or two, the testing takes several additional weeks. My personal "favorite" is the 3B2 running SVR3.2.3 -- I isolated four compiler and/or linker bugs in one 4.1 tools port...) >Thanks, >Mark -- Alan Denney aland@informix.com {pyramid|uunet}!infmx!aland "We should all try to pay our taxes with a smile. I tried that, but they wanted cash." -- Whimsical Will