S
Seo Jae Ick
Hi? My name is Seo Jae Ick.
I have a problem with running a program on Linux RedHat 8.0.
GDB have reported this,
program exited with code 0377
I think, this statement comes when
1) explicit call in process exit(-1) <- 0377(octet) = -1(decimal)
2) return -1 in main function
(any other case exists?)
I have searched exit(-1)in whole codes, but not exists.
And I changed main function's return value to another number (like 128)
Finally, I added exit handler, ExitHandler by calling atexit(ExitHandler)
But, gdb reports same statement(program exited with code 0377)
and, breakpoint in ExitHandler skipped.
Somebody knows the reason of this problem?
Thanks in advance!
Seo Jae Ick
I have a problem with running a program on Linux RedHat 8.0.
GDB have reported this,
program exited with code 0377
I think, this statement comes when
1) explicit call in process exit(-1) <- 0377(octet) = -1(decimal)
2) return -1 in main function
(any other case exists?)
I have searched exit(-1)in whole codes, but not exists.
And I changed main function's return value to another number (like 128)
Finally, I added exit handler, ExitHandler by calling atexit(ExitHandler)
But, gdb reports same statement(program exited with code 0377)
and, breakpoint in ExitHandler skipped.
Somebody knows the reason of this problem?
Thanks in advance!
Seo Jae Ick