[Bug 243267] graphics/gimp-app: 2.10.14,1 crashes on startup in gimp_restore (upgrade from 2.8-something)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 12 21:49:50 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243267

--- Comment #3 from Marcin Cieślak <saper at saper.info> ---
Created attachment 210668
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=210668&action=edit
full gdb log

Command: env LANG=C gdb831 --args /usr/local/bin/gimp-2.10 --verbose
--console-messages --debug-handlers

produces the following backtrace:

Loading 'mypaint brush factory' data
  Loading /usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.myb
Assertion failed: (json_object_get_type(jso) == json_type_object), function
json_object_object_add_ex, file json_object.c, line 476.

Thread 1 received signal SIGABRT, Aborted.
0x0000000807139aea in thr_kill () from /lib/libc.so.7
(gdb) bt
#0  0x0000000807139aea in thr_kill () at /lib/libc.so.7
#1  0x0000000807139ab4 in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52
#2  0x0000000807139a29 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3  0x00000008071b5101 in __assert (func=<optimized out>, file=<optimized out>,
line=<optimized out>, failedexpr=<optimized out>) at
/usr/src/lib/libc/gen/assert.c:51
#4  0x0000000805e0fef5 in json_object_object_add_ex (jso=0x81c6fcc00,
key=0x81d9ff228 "comment", val=0x81c6fcc60, opts=0) at json_object.c:476
#5  0x0000000805e10077 in json_object_object_add (jso=0x81c6fcc00,
key=0x81d9ff228 "comment", val=0x81c6fcc60) at json_object.c:508
#6  0x0000000805e17b64 in json_tokener_parse_ex
    (tok=0x81eb46340, str=0x81e643c25 ", \n    \"group\": \"\", \n   
\"parent_brush_name\": \"\", \n    \"settings\": {\n        \"anti_aliasing\":
{\n", ' ' <repeats 12 times>, "\"base_value\": 0.0, \n", ' ' <repeats 12
times>, "\"inputs\": {}\n        }, \n        \"change_color_h\": {\n      
"..., len=-1) at json_tokener.c:930
#7  0x0000000805e14013 in json_tokener_parse_verbose
    (str=0x81e643c00 "{\n    \"comment\": \"MyPaint brush file\", \n   
\"group\": \"\", \n    \"parent_brush_name\": \"\", \n    \"settings\": {\n    
   \"anti_aliasing\": {\n", ' ' <repeats 12 times>, "\"base_value\": 0.0, \n",
' ' <repeats 12 times>, "\"inputs\": {}\n        },"..., error=0x7fffffffde04)
at json_tokener.c:179
#8  0x0000000805e13f97 in json_tokener_parse
    (str=0x81e643c00 "{\n    \"comment\": \"MyPaint brush file\", \n   
\"group\": \"\", \n    \"parent_brush_name\": \"\", \n    \"settings\": {\n    
   \"anti_aliasing\": {\n", ' ' <repeats 12 times>, "\"base_value\": 0.0, \n",
' ' <repeats 12 times>, "\"inputs\": {}\n        },"...) at json_tokener.c:166
#9  0x0000000805bfe160 in mypaint_brush_from_string
    (self=0x81e5d4300, string=0x81e643c00 "{\n    \"comment\": \"MyPaint brush
file\", \n    \"group\": \"\", \n    \"parent_brush_name\": \"\", \n   
\"settings\": {\n        \"anti_aliasing\": {\n", ' ' <repeats 12 times>,
"\"base_value\": 0.0, \n", ' ' <repeats 12 times>, "\"inputs\": {}\n       
},"...) at mypaint-brush.c:1218
#10 0x0000000000a899df in gimp_mybrush_load (context=0x80ffe4250,
file=0x81c7bbd20, input=0x81e19bbf0, error=0x7fffffffe0b0) at
gimpmybrush-load.c:90
#11 0x00000000009d5373 in gimp_data_loader_factory_load_data
(factory=0x80ffb19f0, context=0x80ffe4250, cache=0x0, dir_writable=0,
file=0x81c7bbd20, info=0x81c7bb630, top_directory=0x81e1de3a0) at
gimpdataloaderfactory.c:453
#12 0x00000000009d513b in gimp_data_loader_factory_load_directory
(factory=0x80ffb19f0, context=0x80ffe4250, cache=0x0, dir_writable=0,
directory=0x81c7bbc80, top_directory=0x81e1de3a0) at
gimpdataloaderfactory.c:385
#13 0x00000000009d5108 in gimp_data_loader_factory_load_directory
(factory=0x80ffb19f0, context=0x80ffe4250, cache=0x0, dir_writable=0,
directory=0x81e1de3a0, top_directory=0x81e1de3a0) at
gimpdataloaderfactory.c:378
#14 0x00000000009d4fc3 in gimp_data_loader_factory_load (factory=0x80ffb19f0,
context=0x80ffe4250, cache=0x0) at gimpdataloaderfactory.c:330
#15 0x00000000009d4e51 in gimp_data_loader_factory_data_init
(factory=0x80ffb19f0, context=0x80ffe4250) at gimpdataloaderfactory.c:143
#16 0x00000000009d1244 in gimp_data_factory_data_init (factory=0x80ffb19f0,
context=0x80ffe4250, no_data=0) at gimpdatafactory.c:488
#17 0x0000000000972f2a in gimp_data_factories_load (gimp=0x80ff78070,
status_callback=0x513f20 <splash_update>) at gimp-data-factories.c:360
#18 0x000000000096c87c in gimp_restore (gimp=0x80ff78070,
status_callback=0x513f20 <splash_update>, error=0x7fffffffe590) at gimp.c:790
#19 0x0000000000508301 in app_run
    (full_prog_name=0x80fe1d4e0 "/usr/local/bin/gimp-2.10", filenames=0x0,
alternate_system_gimprc=0x0, alternate_gimprc=0x0, session_name=0x0,
batch_interpreter=0x0, batch_commands=0x0, as_new=0, no_interface=0, no_data=0,
no_fonts=0, no_splash=0, be_verbose=1, use_shm=1, use_cpu_accel=1,
console_messages=1, use_debug_handler=1, show_playground=0, show_debug_menu=0,
stack_trace_mode=GIMP_STACK_TRACE_NEVER, pdb_compat_mode=GIMP_PDB_COMPAT_ON,
backtrace_file=0x80fe3f080
"/home/saper/.config/GIMP/2.10/CrashLog/GIMP-crash-1578863931.txt") at
app.c:330
#20 0x000000000050c1ee in main (argc=4, argv=0x80fe31870) at main.c:531


The brush seems to come from

/usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.myb

and belongs to

$ pkg which /usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.myb
/usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.myb was installed
by package mypaint-brushes-1.3.0

jq confirms this is a valid JSON file.

This could be the following assertion in json-c library:


        assert(json_object_get_type(jso) == json_type_object);


https://github.com/json-c/json-c/blob/json-c-0.13.1-20180305/json_object.c#L476

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gnome mailing list