Re: [Gimp-developer] Gimp git on Mac Segfault



[ reposting to the list, with trimmed fullquote ]

On my system (10.7.5), GIMP launches ok, but crashes when opening
the preferences. See stack trace in 
<https://bugzilla.gnome.org/show_bug.cgi?id=704592#c6>

With your patch applied (and no other local changes), GIMP still 
launches ok, and now no longer crashes when opening the preferences 
dialog (see attached log).


On 2013-07-28 05:47 +0100, Jehan Pagès wrote:
Hey Partha, su_v,

could you test the following patch:
- copy it in your GIMP directory;
- apply it with this command from the GIMP directory:
patch -p0 < osx_crash.diff
- compile and try again.

I believe it would not fix your crash, because I did not change the
calls where your traces say it happens. Problem is that it apparently
crashes at strchr() but there are 5 of them in this function. Looking
at what seems to be the code in MacOSX of strchr(), looks like it may
be when the string is NULL, but in my code, I don't see anywhere where
this is supposed to be possible.
So unless you can run a debugger to know which exact strchr() line it
happens at, I added some debug output in the code. Just copy paste
anything which may be outputted before crash.
You will most likely have a whole bunch of lines on screen because I
want to cover as much ground as possible, so you can run like this:
$ ./gimp-2.9 --verbose >output.txt

Then send me the output.txt after the crash occurs.
Thanks.

Jehan


On Sun, Jul 28, 2013 at 1:47 PM, Jehan Pagès <jehan marmottard gmail com> wrote:
Argh! I should nearly have a Mac just to test code there! uhuh
Let me have a look. :-)

Jehan

On Sun, Jul 28, 2013 at 10:39 AM, Partha Bagchi <partha1b gmail com> wrote:
Should have mentioned the segfault is related to
gimp_language_store_parser_init ()
__________________________________________________________________________
./gimp-2.9 --verbose
Cannot spawn a message bus without a machine-id: Unable to load
/var/lib/dbus/machine-id or /etc/machine-id: Failed to open file
'/var/lib/dbus/machine-id': No such file or directory
This is a development version of GIMP.  Debug messages may appear here.

INIT: gimp_load_config
Parsing '/Users/partha/Library/Application Support/GIMP/2.9/unitrc'
Parsing
'/Users/partha/projects/src/gimp/Gimp-2.9.app/Contents/Resources/etc/gimp/2.0/gimprc'
Parsing '/Users/partha/Library/Application Support/GIMP/2.9/gimprc'
./gimp-2.9: fatal error: Segmentation fault: 11
./gimp-2.9 (pid:63964): [E]xit, [H]alt, show [S]tack trace or [P]roceed: S
#0  0x00007fff8b970698 in __wait4 ()
#1  0x0000000101868353 in g_on_error_stack_trace ()
#2  0x00000001018687f2 in g_on_error_query ()
#3  0x000000010000dee4 in gimp_eek ()
#4  0x000000010000df58 in gimp_fatal_error ()
#5  0x000000010000e7b6 in gimp_sigfatal_handler ()
#6  <signal handler called>
#7  0x00007fff8cb0a60b in strchr ()
#8  0x0000000100167614 in gimp_language_store_parser_init ()
#9  0x0000000100012c75 in gui_init ()
#10 0x000000010000d890 in app_run ()
#11 0x000000010000fe24 in main ()
__________________________________________________________________________

Thanks,
Partha


On Sat, Jul 27, 2013 at 3:01 PM, Partha Bagchi <partha1b gmail com> wrote:

Jehan,

Looks like the segfault is back?

Thanks,
Partha





Attachment: gimp-crash-test-3.txt
Description: Text document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]