Segmentation Fault

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
DaveyBob
Posts: 5
Joined: Tue Nov 29, 2011 12:06 pm

Segmentation Fault

Post by DaveyBob » Tue Nov 29, 2011 12:08 pm

I'm running Ubuntu 11.10, and have installed DiffMerge 3.3.1.1121-1_amd64. DiffMerge itself runs fine, but if I attempt to go into the options menu, the program exits immediately with "Segmentation fault" shown on the console window.

I've uninstalled it (with purge) and reinstalled, but I get the same result.

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: Segmentation Fault

Post by jeffhostetler » Tue Nov 29, 2011 3:29 pm

I'll have to upgrade/build a VM to test that combination.
In the mean time, can you post a stack trace / post-mortem?

j

DaveyBob
Posts: 5
Joined: Tue Nov 29, 2011 12:06 pm

Re: Segmentation Fault

Post by DaveyBob » Wed Nov 30, 2011 6:28 am

I didn't know how to generate a back trace for a seg fault before. Now I do (thanks, Google):

(gdb) handle SIG33 nostop noprint noignore pass
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) run
Starting program: /usr/bin/diffmerge
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffed843700 (LWP 17547)]
[New Thread 0x7fffed042700 (LWP 17548)]
[New Thread 0x7fffe2c01700 (LWP 17549)]

Program received signal SIGSEGV, Segmentation fault.
0x00000000004f2dcb in ?? ()
(gdb) bt
#0 0x00000000004f2dcb in ?? ()
#1 0x00000000004fed5d in ?? ()
#2 0x00000000004315ba in ?? ()
#3 0x0000000000440fd1 in ?? ()
#4 0x000000000042ca8a in ?? ()
#5 0x000000000049fa99 in ?? ()
#6 0x0000000000571e3d in ?? ()
#7 0x0000000000573a34 in ?? ()
#8 0x0000000000573b17 in ?? ()
#9 0x00000000005d6edb in ?? ()
#10 0x00007ffff6e3981c in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff6e4b019 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff6e54258 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff6e5441f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff79ec6ce in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#15 0x00007ffff78e594d in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x00007ffff78e5ce5 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007ffff78d1578 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x00007ffff6e3981c in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff6e4ae1f in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff6e53fa9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff6e5441f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007ffff79ed4d1 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x00007ffff78cf763 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x00007ffff78cfa5b in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x00007ffff75425cc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#26 0x00007ffff6979bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff697a3a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff697a9f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007ffff78ceaf7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#30 0x00000000006823c2 in ?? ()
#31 0x00000000005e9f04 in ?? ()
#32 0x0000000000497262 in ?? ()
#33 0x000000000054b8b8 in ?? ()
#34 0x00000000004958df in ?? ()
#35 0x00007ffff53cceff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#36 0x000000000041a169 in ?? ()
#37 0x00007fffffffe208 in ?? ()
#38 0x000000000000001c in ?? ()
#39 0x0000000000000001 in ?? ()
#40 0x00007fffffffe4e3 in ?? ()
#41 0x0000000000000000 in ?? ()
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb)

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: Segmentation Fault

Post by jeffhostetler » Wed Nov 30, 2011 7:18 am

Thanks for the stack trace. I'll do some digging and get back to you.

Thanks again,
j

DaveyBob
Posts: 5
Joined: Tue Nov 29, 2011 12:06 pm

Re: Segmentation Fault

Post by DaveyBob » Fri Dec 02, 2011 8:43 am

Correction: I am running Ubuntu 11.04. (I had been running 11.10 for a while, but hated it, and went back to 11.04 by doing a disk restore.)

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: Segmentation Fault

Post by jeffhostetler » Fri Dec 02, 2011 10:31 am

OK thanks.

Last night I built a 11.10 VM and was able to reproduce it.
I tracked it down to a 32 bit value not being sign extended
when it was converted to a 64-bit value for a test with -1 in
the 64-bit port. (sigh, groan, argh)

I'm building a candidate build now which I hope to post shortly.

j

DaveyBob
Posts: 5
Joined: Tue Nov 29, 2011 12:06 pm

Re: Segmentation Fault

Post by DaveyBob » Fri Dec 02, 2011 10:48 am

Great, thanks!

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: Segmentation Fault

Post by jeffhostetler » Wed Dec 07, 2011 12:29 pm

I'm using the crash as an excuse to add a few other fixes and
do a regular 3.3.2 release on all platforms.

If you would like to beta test the binary, that would be great.
Here's a link to the Ubuntu builds:
http://people.sourcegear.com/~jeffh/DiffMerge/

We'll probably release it later this week or early next week
once QA has some time to take a look at it. (To be fair, I did
kinda skip it in on them unannounced.)

Please let me know if you have any problems with this version.
jeff

(Release notes are in Chapter 11 in the manual.)

DaveyBob
Posts: 5
Joined: Tue Nov 29, 2011 12:06 pm

Re: Segmentation Fault

Post by DaveyBob » Thu Dec 08, 2011 6:54 am

Works like a champ! Thanks!

Post Reply