I currently have a C++
application that was originally compiled and ran perfectly on a CentOS-6 machine and requires GCC-4.47 to compile. I've gotten it to compile on an Ubuntu
machine (with GCC-4.4.7) but it segfaults while reading command-line arguments in main. Any clue how I can get this to run on the Ubuntu machine?
I can't really dig into the code as there's a large number of files. The reason I'd like it on Ubuntu is to cause its part of a series of programs that we need. All the others run on Ubuntu but this one was built a long time ago. If any more information is needed let me know and I'll try to supply as much as I'm allowed.
GDB response:
- gdb --args executablename path/to/file
- (GDB) run
- (GDB) Program received signal SIGSEGV, Segmentation fault in int main{argc=2, argv=0xsomeaddress}
- print argv[2] gives path/to/file
- backtracing gives same error