Hello, I work at the U.S. Department of Labor. I am a maintenance prorgrammer of C code, and the configuration management of this code in the past has been very spotty. When I took over this project, a CM tool was in place I have been doing corret checkins and checkouts, but the problems of the past bad management contiue to cause problems for me. There is a C screen I have been asked to modify to increase the allowed amount of a field. The code for that screen was never checked in to the CM tool, and I found it in the archived files of someone who left the project a couple of years ago. The code did not compile, but I was able to get it compiling correctly. When I run. however, it crashes with a core dump, and the dbx utility, reading the core dump, show that the error occurs on the main declaration.
main(argc)
int argc;
This was the original code. I have tried:
main(int argc)
and
main(int argc, char *argv[])
but they all crash on the main statement. I also tried removing the argc, just having main(), but that generated doxens of compiler errors. The error generated from the core dump, as read by the dbx utility, follows:
devextbfm mcpherson.john-/dhome/mcpherson.john/bfm-or/src $ dbx bsyrhd
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc
Reading bsyrhd
Reading ld.so.1
Reading libm.so.2
Reading libcurses.so.1
Reading libc.so.1
(dbx) debug -c core.bsyrhd.26957 bsyrhd
core file header read successfully
Reading libc_psr.so.1
program terminated by signal SEGV (access to address exceeded protections)
0x000182f8: main+0x047c: stb %g1, [%o5]
(dbx) where
=>[1] main(0x1, 0xffbff68c, 0xffbff694, 0x319e8, 0xff2900c0, 0x0), at 0x182f8
Any help with this problem is greatly appreciated.