Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0x00007fb4eca50084 in mem_error (format=format@entry=0x7fb4eca899dd "assertion failed: %s") at gslice.c:1472 #1194

Closed
Jellyfrog opened this issue Nov 20, 2017 · 5 comments
Labels

Comments

@Jellyfrog
Copy link

Jellyfrog commented Nov 20, 2017

Simply alt+tab'ed to tilix and it crashed

openSUSE Tumbleweed 20171117
dmd-2.077.0-6.1

Versions
	Tilix version: 1.7.1 (a0f58a96b9f053fd834beed2f31e8d6ab6c5139e)
	VTE version: 0.50
	GTK Version: 3.22.25

Tilix Special Features
	Notifications enabled=0
	Triggers enabled=0
	Badges enabled=0
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7fb4f1c44600 (LWP 2590))]
(gdb) bt full
#0  0x00007fb4f08000d0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
        set = {__val = {0, 38002080, 4294967503, 0, 0, 140415040844950, 4294967296, 39994288, 37579104, 140734811834400, 207, 140415043967463, 0, 37579104, 140734811835184, 38861504}}
        pid = <optimized out>
        tid = <optimized out>
#1  0x00007fb4f08016b1 in __GI_abort () at abort.c:79
        save_stage = 1
        act = 
          {__sigaction_handler = {sa_handler = 0x7fb4f0b7f640 <_IO_2_1_stderr_>, sa_sigaction = 0x7fb4f0b7f640 <_IO_2_1_stderr_>}, sa_mask = {__val = {3432, 140415109411872, 140415109428931, 140415109408992, 140415106040959, 0, 1, 10, 140415041313245, 73478496, 36309600, 36310640, 140415106048905, 140415109428800, 140415106049923, 140415109428800}}, sa_flags = 36485584, sa_restorer = 0x7fb4eca899dd}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007fb4eca50084 in mem_error (format=format@entry=0x7fb4eca899dd "assertion failed: %s") at gslice.c:1472
        pname = <optimized out>
        args = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fff60778880, reg_save_area = 0x7fff607787b0}}
#3  0x00007fb4eca500f4 in slab_allocator_free_chunk (chunk_size=chunk_size@entry=32, mem=mem@entry=0x307ffd0) at gslice.c:1354
        chunk = <optimized out>
        was_empty = <optimized out>
        ix = 1
        addr = <optimized out>
        page = <optimized out>
        sinfo = <optimized out>
#4  0x00007fb4eca50746 in magazine_cache_trim (allocator=0x7fb4eccfb2c0 <allocator>, stamp=<optimized out>, ix=<optimized out>) at gslice.c:679
        chunk_size = 32
        current = 0x3948c10
        trash = 0x4613160
        next = <optimized out>
        prev = <optimized out>
#5  0x00007fb4eca50746 in magazine_cache_push_magazine (ix=<optimized out>, magazine_chunks=<optimized out>, count=<optimized out>) at gslice.c:710
        next = <optimized out>
        prev = <optimized out>
#6  0x00007fb4eca518bf in thread_memory_magazine2_unload (tmem=<optimized out>, ix=<optimized out>) at gslice.c:809
        mag = 0x22a0e70
        ix = <optimized out>
        chunk_size = 32
#7  0x00007fb4eca518bf in g_slice_free1 (mem_size=<optimized out>, mem_block=0x3b43e20) at gslice.c:1118
        ix = <optimized out>
        chunk_size = 32
#8  0x00007fb4e8c768f9 in gtk_css_node_style_cache_unref (cache=<optimized out>) at gtkcssnodestylecache.c:68
        cache = <optimized out>
#9  0x00007fb4e8c746ac in gtk_css_node_ensure_style (cssnode=0x23baa40 [GtkCssWidgetNode], current_time=14160144970) at gtkcssnode.c:1005
        _pp = 0x23baa90
        _p = <optimized out>
        new_style = <optimized out>
        style_changed = <optimized out>
#10 0x00007fb4e8c75475 in gtk_css_node_ensure_style (current_time=14160144970, cssnode=0x23baa40 [GtkCssWidgetNode]) at gtkcssnode.c:1389
#11 0x00007fb4e8c75475 in gtk_css_node_validate_internal (cssnode=0x23baa40 [GtkCssWidgetNode], timestamp=14160144970) at gtkcssnode.c:1384
#12 0x00007fb4e8c7548b in gtk_css_node_validate_internal (cssnode=<optimized out>, timestamp=14160144970) at gtkcssnode.c:1398
---Type <return> to continue, or q <return> to quit---
        child = 0x23baa40 [GtkCssWidgetNode]
        timestamp = 14160144970
        cssnode = <optimized out>
#13 0x00007fb4e8c7548b in gtk_css_node_validate_internal (cssnode=<optimized out>, timestamp=14160144970) at gtkcssnode.c:1398
        child = 0x23bad40 [GtkCssWidgetNode]
        timestamp = 14160144970
        cssnode = <optimized out>
#14 0x00007fb4e8c5c026 in gtk_container_idle_sizer (clock=0x2337220 [GdkFrameClockIdle], container=0x261a2c0 [GtkApplicationWindow]) at gtkcontainer.c:2053
#18 0x00007fb4ecd28c5f in <emit signal ??? on instance 0x2337220 [GdkFrameClockIdle]> (instance=instance@entry=0x2337220, signal_id=<optimized out>, detail=detail@entry=0)
    at gsignal.c:3447
        var_args = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fff60778e60, reg_save_area = 0x7fff60778da0}}
    #15 0x00007fb4ecd0c93d in g_closure_invoke (closure=0x25a6520, return_value=0x0, n_param_values=1, param_values=0x7fff60778bc0, invocation_hint=0x7fff60778b40) at gclosure.c:804
                marshal = 0x7fb4ecd0eb10 <g_cclosure_marshal_VOID__VOID>
                marshal_data = 0x0
                in_marshal = 0
                real_closure = 0x25a6500
                __func__ = "g_closure_invoke"
    #16 0x00007fb4ecd1f9fe in signal_emit_unlocked_R (node=node@entry=0x2318c90, detail=detail@entry=0, instance=instance@entry=0x2337220, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fff60778bc0) at gsignal.c:3635
                tmp = <optimized out>
                handler = 0x3ede740
                accumulator = 0x0
                emission = {next = 0x0, instance = 0x2337220, ihint = {signal_id = 43, detail = 0, run_type = G_SIGNAL_RUN_FIRST}, state = EMISSION_RUN, chain_type = 4}
                handler_list = 0x3ede740
                return_accu = 0x0
                accu = 
                      {g_type = 0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
                signal_id = 43
                max_sequential_handler_number = 64380
                return_value_altered = 0
    #17 0x00007fb4ecd2823c in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fff60778d80) at gsignal.c:3391
                instance_and_params = 0x7fff60778bc0
                signal_return_type = <optimized out>
                param_values = 0x7fff60778bd8
                i = <optimized out>
                n_params = <optimized out>
                __func__ = "g_signal_emit_valist"
#19 0x00007fb4edbbb30f in _gdk_frame_clock_emit_layout (frame_clock=frame_clock@entry=0x2337220 [GdkFrameClockIdle]) at gdkframeclock.c:634
#20 0x00007fb4edbbb986 in gdk_frame_clock_paint_idle (data=0x2337220) at gdkframeclockidle.c:408
        iter = 1
        clock = 0x2337220 [GdkFrameClockIdle]
        clock_idle = 0x2337220 [GdkFrameClockIdle]
        priv = 0x2337140
        skip_to_resume_events = 0
        timings = 0x290d860
        __func__ = "gdk_frame_clock_paint_idle"
---Type <return> to continue, or q <return> to quit---
#21 0x00007fb4edba6c00 in gdk_threads_dispatch (data=0x4628b20, data@entry=<error reading variable: value has been optimized out>) at gdk.c:743
        dispatch = 0x4628b20
        ret = 0
#22 0x00007fb4eca34883 in g_timeout_dispatch (source=source@entry=0x3abe440, callback=<optimized out>, user_data=<optimized out>) at gmain.c:4633
        timeout_source = 0x3abe440
        again = <optimized out>
#23 0x00007fb4eca33e05 in g_main_dispatch (context=0x2305f00) at gmain.c:3148
        dispatch = 0x7fb4eca34870 <g_timeout_dispatch>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x4628b20
        callback = 0x7fb4edba6be0 <gdk_threads_dispatch>
        cb_funcs = 0x7fb4eccfa920 <g_source_callback_funcs>
        cb_data = 0x3a5f560
        need_destroy = <optimized out>
        source = 0x3abe440
        current = 0x23910c0
        i = 0
#24 0x00007fb4eca33e05 in g_main_context_dispatch (context=context@entry=0x2305f00) at gmain.c:3813
#25 0x00007fb4eca341d0 in g_main_context_iterate (context=context@entry=0x2305f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3886
        max_priority = 120
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 8
        fds = 0x456f1b0
#26 0x00007fb4eca3425c in g_main_context_iteration (context=context@entry=0x2305f00, may_block=may_block@entry=1) at gmain.c:3947
        retval = <optimized out>
#27 0x00007fb4ecff5b7d in g_application_run (application=0x7fb4e00136d0 [GtkApplication], argc=<optimized out>, argv=<optimized out>) at gapplication.c:2401
        arguments = 0x2390960
        status = 0
        context = 0x2305f00
        acquired_context = <optimized out>
        __func__ = "g_application_run"
#28 0x0000000000aba8ee in _D3gio11ApplicationQn3runMFAAyaZi (this=0x7fb4f1b6c800, argv=...) at GtkD-3.7.1/generated/gtkd/gio/Application.d:931
#29 0x0000000000978d09 in D main (args=...) at source/app.d:146
        newProcess = false
        cwd = "/home/jellyfrog"
        pwd = "/home/jellyfrog"
        de = "GNOME"
        __EAX = 0x0
        __EDX = -260046640
        __handler = 1
        __exception_object = 0x7fff60779170
        uhd = "/home/jellyfrog"
        __r769 = {{length = 14, ptr = 0x7fff60779420 "/usr/bin/tilix--gapplication-service"}, {length = 22, ptr = 0x7fff6077942e "--gapplication-service"}}
        __key768 = 2
---Type <return> to continue, or q <return> to quit---
        arg = "--gapplication-service"
        i = 1
        __r771 = {{length = 14, ptr = 0x7fff60779420 "/usr/bin/tilix--gapplication-service"}, {length = 22, ptr = 0x7fff6077942e "--gapplication-service"}}
        __key770 = 2
        arg = "--gapplication-service"
        i = 1
        executeCommand = 0xffffffffffffffff <error: Cannot access memory at address 0xffffffffffffffff>
        j = 18446744073709551615
        __r785 = {{length = 14, ptr = 0x7fb4f1b449b0 "/usr/bin/tilix"}, {length = 22, ptr = 0x7fb4f1b6a760 "--gapplication-service"}}
        __key784 = 2
        arg = "--gapplication-service"
        i = 1
        terminalUUID = <error reading variable>
        __EAX = 0x0
        __EDX = -260046640
        __handler = 1
        __exception_object = 0x7fb4f1c44490
        gtkError = 0x0
        dialog = 0x7fff60779160
        tilixApp = 0x7fb4f1b6c800
        result = 0
        __EAX = 0x0
        __EDX = -260046640
        __handler = 6
        __exception_object = 0x7fff607791a0
@Jellyfrog
Copy link
Author

@gnunn1 would a coredump help?

@gnunn1 gnunn1 added the bug label Nov 22, 2017
@gnunn1
Copy link
Owner

gnunn1 commented Nov 22, 2017

Not much, a backtrace would be better. See my instructions in #1197

Note also there was a fix in GtkD related to object destruction, slight chance it could be causing this but it's not obvious.

@Jellyfrog
Copy link
Author

I updated my machine (zypper dup) and it crashed the moment it was done, not sure if related due to upgrading system bin/libs.

This time I started it via gdb tho, not sure what difference it makes compared to the stack above

***MEMORY-ERROR***: tilix[3842]: GSlice: assertion failed: sinfo->n_allocated > 0

Thread 1 "tilix" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0  0x00007ffff6b860d0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
        set = {__val = {0, 140737488343840, 140737488343792, 0, 4294967342, 0, 0, 140737488343792, 140737488344192, 140737271014029, 0, 0, 46, 0, 0, 0}}
        pid = <optimized out>
        tid = <optimized out>
#1  0x00007ffff6b876b1 in __GI_abort () at abort.c:79
        save_stage = 1
        act = 
          {__sigaction_handler = {sa_handler = 0x7ffff6f05640 <_IO_2_1_stderr_>, sa_sigaction = 0x7ffff6f05640 <_IO_2_1_stderr_>}, sa_mask = {__val = {3432, 140737336316960, 140737336334019, 140737336314080, 140737332946047, 46, 1, 10, 140737268267485, 39149728, 19626560, 19627600, 140737332953993, 140737336333888, 140737332955011, 140737336333888}}, sa_flags = 19804960, sa_restorer = 0x7ffff2e1b9dd}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff2de2084 in mem_error (format=format@entry=0x7ffff2e1b9dd "assertion failed: %s") at gslice.c:1472
        pname = <optimized out>
        args = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fffffffd5b0, reg_save_area = 0x7fffffffd4e0}}
#3  0x00007ffff2de20f4 in slab_allocator_free_chunk (chunk_size=chunk_size@entry=32, mem=mem@entry=0x48d5590) at gslice.c:1354
        chunk = <optimized out>
        was_empty = <optimized out>
        ix = 1
        addr = <optimized out>
        page = <optimized out>
        sinfo = <optimized out>
#4  0x00007ffff2de2746 in magazine_cache_trim (allocator=0x7ffff308d2c0 <allocator>, stamp=<optimized out>, ix=<optimized out>) at gslice.c:679
        chunk_size = 32
        current = 0x49f2480
        trash = 0x25560a0
        next = <optimized out>
        prev = <optimized out>
#5  0x00007ffff2de2746 in magazine_cache_push_magazine (ix=<optimized out>, magazine_chunks=<optimized out>, count=<optimized out>) at gslice.c:710
        next = <optimized out>
        prev = <optimized out>
#6  0x00007ffff2de38bf in thread_memory_magazine2_unload (tmem=<optimized out>, ix=<optimized out>) at gslice.c:809
        mag = 0x12b7e50
        ix = <optimized out>
        chunk_size = 32
#7  0x00007ffff2de38bf in g_slice_free1 (mem_size=<optimized out>, mem_block=0x14f6d20) at gslice.c:1118
        ix = <optimized out>
        chunk_size = 32
#8  0x00007ffff2dc2eb9 in g_source_unref_internal (source=0x4f2ded0, context=0x131c400, have_lock=1) at gmain.c:2145
        old_cb_data = 0x0
        old_cb_funcs = 0x0
        __func__ = "g_source_unref_internal"
#9  0x00007ffff2dc5f08 in g_main_dispatch (context=0x131c400) at gmain.c:3176
        source = 0x4f2ded0
        current = 0x13a67c0
        i = 22
#10 0x00007ffff2dc5f08 in g_main_context_dispatch (context=context@entry=0x131c400) at gmain.c:3813
#11 0x00007ffff2dc61d0 in g_main_context_iterate (context=context@entry=0x131c400, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3886
        max_priority = -1
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 39
        fds = 0x6777000
#12 0x00007ffff2dc625c in g_main_context_iteration (context=context@entry=0x131c400, may_block=may_block@entry=1) at gmain.c:3947
        retval = <optimized out>
#13 0x00007ffff3387b7d in g_application_run (application=0x7fffe40136d0 [GtkApplication], argc=<optimized out>, argv=<optimized out>) at gapplication.c:2401
        arguments = 0x1323130
        status = 0
---Type <return> to continue, or q <return> to quit---
        context = 0x131c400
        acquired_context = <optimized out>
        __func__ = "g_application_run"
#14 0x0000000000aba2d6 in _D3gio11ApplicationQn3runMFAAyaZi (this=<error reading variable: Unhandled dwarf expression opcode 0xac>, argv=<error reading variable: Unhandled dwarf expression opcode 0xac>)
    at GtkD-3.7.1/generated/gtkd/gio/Application.d:931

@gnunn1
Copy link
Owner

gnunn1 commented Dec 10, 2017

Have you add any additional occurrences of this since I fixed #1192, if no can we close this?

@Jellyfrog
Copy link
Author

Not so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants