csripriya1
Programmer
Hi,
I am having a weird problem here. I was getting a segmentation fault immediately after a function call. The last command in that particular function was also executed very successfully. When it comes to the main function, it dumps a core. I used electric fence and gdb to debug it. After the segfault, on back trace, I got this message
#0 main (argc=0, argv=0x0) at Combi_main.cpp:165
Whereas my main function has 6 arguments. When I tried to print the number of arguments before this function call, I got the output as 6. I wonder what's going wrong.
Any suggestions and help will be highly appreciated.
Thanks a lot,
Priya
I am having a weird problem here. I was getting a segmentation fault immediately after a function call. The last command in that particular function was also executed very successfully. When it comes to the main function, it dumps a core. I used electric fence and gdb to debug it. After the segfault, on back trace, I got this message
#0 main (argc=0, argv=0x0) at Combi_main.cpp:165
Whereas my main function has 6 arguments. When I tried to print the number of arguments before this function call, I got the output as 6. I wonder what's going wrong.
Any suggestions and help will be highly appreciated.
Thanks a lot,
Priya