Segmentation fault on RHEL 7

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
jjdmon21
Posts: 2
Joined: Fri Nov 15, 2019 1:10 pm

Segmentation fault on RHEL 7

Post by jjdmon21 » Fri Nov 15, 2019 1:19 pm

The package installed is: diffmerge-4.2.0.697.stable-1.x86_64.rpm on RHEL (workstation release 7.7). DiffMerge starts and I am able to open and compare two files, but as soon as I move the mouse over the toolbar it crashes with a segmentation fault almost immediately and every time. Is there any way to debug this?

Tonya
Posts: 518
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Segmentation fault on RHEL 7

Post by Tonya » Mon Nov 18, 2019 10:13 am

Since RHEL 7.7 is based on Fedora 19 and the latest DiffMerge release 4.2 was built on Fedora 29 our recommendation is to download DiffMerge 4.1 and give it a try:

http://download.sourcegear.com/DiffMerg ... x86_64.rpm
http://download.sourcegear.com/DiffMerg ... 1.i686.rpm

Thanks,

Tonya

jjdmon21
Posts: 2
Joined: Fri Nov 15, 2019 1:10 pm

Re: Segmentation fault on RHEL 7

Post by jjdmon21 » Wed Dec 04, 2019 11:42 am

DiffMerge 4.2 was removed and 4.1 installed from the x86_64 package. Behavior is the same. I can open and compare two files but as soon as I move the mouse over the toolbar it dies with a segfault. I could try running it with strace or another diagnostic utility to get some idea where it is crashing or what it is trying to call. I'm not sure what options might be useful though.

jclausius
Posts: 3605
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Segmentation fault on RHEL 7

Post by jclausius » Thu Dec 05, 2019 9:36 am

As a test, I downloaded RHEL 7.7 Server and installed to a virtual machine, did some extra setup and then did an install with 'Server with GUI'. This installed the GNOME desktop. After changing the default runlevel and a reboot, I checked the desktop:

$ gnome-shell --version
GNOME Shell 3.28.3

Next, I downloaded the release DiffMerge (4.2.x) as well as the 4.1.0.534' 64-bit version above. I ran the following to install - "sudo rpm -i diffmerge-4.1.0.534.stable-1.x86_64.rpm". After installation, I was able to to diff two simple files (1 line each), moving the mouse over the toolbar or over the main views, clicking, etc. had no effect and didn't crash the tool.

After this test I ran, 'sudo rpm -ev diffmerge-4.1.0.534.stable-1.x86_64' to uninstall and 'sudo rpm -i diffmerge-4.2.0.697.stable-1.x86_64.rpm' to install the latest version of DiffMerge. Same test, and diffing two simple files had no effect, and using the mouse didn't crash the tool.

----
Are you running Gnome desktop 3.28.3?

Another test you may try is to temporarily rename the '~/.SourceGear DiffMerge' file, and try a test. Perhaps a setting there may be causing the problem.

Finally, a third option (after taking a look at the items above), try launching 'diffmerge' from a command prompt. You may get some warnings like the following:

- ** (diffmerge:3226): WARNING **: 00:23:04.022: invalid source position for vertical gradient

But if there's a segmentation fault or any other errors, that may be output to the command line window,
Attachments
file1.txt
(19 Bytes) Downloaded 1 time
file2.txt
(34 Bytes) Not downloaded yet
Jeff Clausius
SourceGear

Post Reply