After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 633257 - meld @1.3.1 / @1.4.0 gives a Segmentation Fault
meld @1.3.1 / @1.4.0 gives a Segmentation Fault
Status: RESOLVED INVALID
Product: meld
Classification: Other
Component: general
1.3.x
Other Mac OS
: Normal blocker
: ---
Assigned To: meld-maint
meld-maint
Depends on:
Blocks:
 
 
Reported: 2010-10-27 11:00 UTC by Michael Van Wesenbeeck
Modified: 2010-10-30 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
crash report from the apple "Report an error" dialog (38.47 KB, text/plain)
2010-10-27 11:00 UTC, Michael Van Wesenbeeck
Details

Description Michael Van Wesenbeeck 2010-10-27 11:00:20 UTC
Created attachment 173313 [details]
crash report from the apple "Report an error" dialog

When compiling meld from a clean slate is gives me a Segmentation Fault when running it.
I started by following these instructions: http://trac.macports.org/wiki/Migration
(Since I recently upgraded to a newer MacBook Pro and now run 64bit OS X 10.6.4 from a previous generation MacBook Pro with OS X 10.5.8 )

I installed meld using macports using the following command:
sudo port install meld

After fixing a build failure in db46 by following the instructions here:
https://trac.macports.org/ticket/26939
(upgrading the Java for Mac OS X 10.6 Update 3 Developer Package), the meld install itself went fine.

running the application on the command line like so:
$ meld dir1 dir2

Gave me the following output:
==========
(process:59542): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Xlib:  extension "RANDR" missing on display ":0.0".
Segmentation fault
sinner:Sites michael$ meld oxodev2 prod_data

(process:59655): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Xlib:  extension "RANDR" missing on display ":0.0".
Segmentation fault
==========

The page here: http://guide.macports.org/#project.tickets suggests to report the error upstream if the compile and install goes successfully, so I'm doing that here.

Attached is the output in the "Report an error dialog" that OS X throws up.

I have also tried to upgrade to the 1.4.0 version as described here:
http://trac.macports.org/ticket/26808 (by patching the Portfile and running "sudo port upgrade meld") but that resulted in the same error when running the program.

I CC'ed the macports maintainer as well, but apparently that doesn't work here.
Comment 1 Kai Willadsen 2010-10-28 08:27:57 UTC
Did Meld previously work for you under macports? Do any other Gtk+ applications work?

I suspect that this isn't a bug with Meld but rather with the environment. If it was a Meld problem, you'd be more likely to see a python traceback instead of getting a segfault. That said, we might be doing something that breaks gtk under X11 on OS X. For what it's worth, I can run Meld under 'native' gtk on OS X (i.e., not using X11).
Comment 2 Michael Van Wesenbeeck 2010-10-28 08:38:43 UTC
Hi,

Thanks for looking into this.
Meld worked previously on my other MacBookPro (not 64 bit).

I also recently installed wireshark, which is gtk as well, and that app works.

What can I do to debug this further?

How do I test meld under native gtk on OS X ?
Comment 3 Kai Willadsen 2010-10-30 22:53:22 UTC
I've now tested this under macports, and the crash is caused by certain accesses to gobject properties. Specifically, it seems that a crash can be triggered by accessing any gobject property via the x.props.{propertyname} mechanism. For example, you can cause a crash with:

>>> import gtk
>>> a = gtk.Window()
>>> a.show()
>>> a.props.title="Foo"
>>> print a.props.title

The fourth line executes fine; the fifth line crashes.

Anyway, the upshot of all of this is that this isn't a bug in Meld. This would appear to be a problem specific to the macports distribution of pygobject. I'd suggest that you file a bug upstream with this additional information.

As for running Meld under native gtk, it's not easy. There are instructions on building gtk for OS X at http://gtk-osx.sourceforge.net/ though it's not necessarily straightforward. Once you have a working pygtk built under that framework, running Meld in the jhbuild shell should work fine.

Thanks for the bug report.