document inconsistant?
Min Xu
mxu@cae.wisc.edu
Thu Mar 30 18:51:00 GMT 2000
Joe Buck wrote:
> Perhaps my use of the word "random" confused you: the behavior will be
> fixed for any given compiler setting.
>
> You need to debug your program. If you're stuck, you'll need to send in
> the exact source so others can debug it.
After I remove all those code not related to the problem, I come up with
the following piece of code that cause problem on my system. Seems that
comparison of double in ind_table_parser::findLm is the source of the bus
error. if I remove it, the program works fine. (makefile , .h, .cc is attached.)
sys info:
sun-90% uname -a
SunOS sun-90 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-5_10
sun-90% gcc -v
Reading specs from
/afs/engr.wisc.edu/oss/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
sun-90% make
gcc -O2 -g -Wall -c -o ind_table_parser.o ind_table_parser.cc
gcc -O2 -g -Wall -lm -lstdc++ -o cpp_test cpp_test.cc ind_table_parser.o
sun-90% ./cpp_test
Begin the test program...
Bus error (core dumped)
Somebody can kindly have a look? Thanks!
-Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp_test
Type: application/x-executable
Size: 16560 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20000330/9c3f48cb/attachment.bin>
More information about the Gcc
mailing list