I have an elderly (~1999) and unfortunately commercial graphic program that runs perfectly OK on systems with gcc up to 3.4.6 (CentOS 4.8). However, in all distributions based on gcc 4.* that I've tried, the program fails with Segmentation fault (I tried different versions of CenOS, Sebian and SUSE).There are newer versions of this software (we even have a license) with plenty of new options, so for daily work we're well served. However the old one has this nice option to export a graphic as an x-graphic, whereas the newer versions are only PpenGL-based. Even if x-graphic is ugly (sorry for this adjective) it's much faster if you work over a DSL-line.The only libraries that were missing during installation were: libXp.so.6, libXmu.so.6 and mesa3. I've installed them without any problems using the standard repository.I've tried to strace the fault but after loading all of the required libraries the program just stops without giving me too much info:open(/lib/libuuid.so.1, O_RDONLY)     = 3read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\17\0\0004\0\0\0..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=15200, ...}) = 0mmap2(NULL, 17828, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7464000mmap2(0xf7468000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xfffffffff7468000close(3)                                = 0mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7463000mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7462000set_thread_area(0xff8de9b4)             = 0mprotect(0xf746c000, 4096, PROT_READ)   = 0mprotect(0x439000, 8192, PROT_READ)     = 0mprotect(0xf74dc000, 4096, PROT_READ)   = 0mprotect(0xf763f000, 1032192, PROT_READ|PROT_WRITE) = 0mprotect(0xf763f000, 1032192, PROT_READ|PROT_EXEC) = 0--- SIGSEGV (Segmentation fault) @ 0 (0) ---+++ killed by SIGSEGV +++Segmentation faultDoes anybody have any ideas how to get this program running on the newer distros? p.s. I do not have sources for it. The advise Use the source, Luke!! will not work for me.p.s.s. For curious people - the software is called gaussview v2
new distros cause segmentation fault of old binary
gcc;compatibility;segmentation fault