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

segfault in arrange_workspace #6689

Open
nicolasavru opened this issue Nov 29, 2021 · 0 comments
Open

segfault in arrange_workspace #6689

nicolasavru opened this issue Nov 29, 2021 · 0 comments
Labels
bug Not working as intended

Comments

@nicolasavru
Copy link
Contributor

nicolasavru commented Nov 29, 2021

Please fill out the following:

(gdb) bt full
#0  0x0000560e4ca78d1c in arrange_workspace (workspace=0x0) at ../sway/sway/tree/arrange.c:257
        output = 0x560e4d700670
        area = 0x560e4d700710
        first_arrange = false
        prev_x = 0
        prev_y = 2190
        diff_x = 0
        diff_y = 0
#1  0x0000560e4ca66a65 in cmd_move_in_direction (direction=WLR_DIRECTION_UP, argc=0, argv=0x560e4da939c0) at ../sway/sway/commands/move.c:754
        move_amt = 10
        container = 0x560e4daab250
        old_ws = 0x560e4cbc4bf0
        old_parent = 0x560e4daa5610
        new_ws = 0x0
#2  0x0000560e4ca676ae in cmd_move (argc=0, argv=0x560e4da939c0) at ../sway/sway/commands/move.c:1003
        error = 0x0
        no_auto_back_and_forth = false
#3  0x0000560e4ca260cc in execute_command (_exec=0x560e4da24360 "[con_id=\"25\"] layout toggle split;[con_id=\"25\"] move up", seat=0x560e4d2ea820, con=0x0) at ../sway/sway/commands.c:305
        container = 0x560e4daab250
        res = 0x560e4da3cf10
        i = 0
        fail_res = 0x0
        argc = 2
        argv = 0x560e4da939b0
        handler = 0x560e4caa9fc0 <command_handlers+160>
        cmd = 0x560e4daea1c0 "move up"
        matched_delim = 0 '\000'
        containers = 0x560e4dac3d60
        using_criteria = true
        exec = 0x560e4daea190 "[con_id=\"25\"] layout toggle split"
        head = 0x0
        res_list = 0x560e4da314c0
        __PRETTY_FUNCTION__ = "execute_command"
#4  0x0000560e4ca32613 in ipc_client_handle_command (client=0x560e4da96910, payload_length=55, payload_type=IPC_COMMAND) at ../sway/sway/ipc-server.c:645
        line = 0x560e4da24360 "[con_id=\"25\"] layout toggle split;[con_id=\"25\"] move up"
        res_list = 0x217
        json = 0xa2 <error: Cannot access memory at address 0xa2>
        length = 0
        buf = 0x560e4da24360 "[con_id=\"25\"] layout toggle split;[con_id=\"25\"] move up"
        __PRETTY_FUNCTION__ = "ipc_client_handle_command"
#5  0x0000560e4ca311bc in ipc_client_handle_readable (client_fd=162, mask=1, data=0x560e4da96910) at ../sway/sway/ipc-server.c:267
        pending_length = 55
        pending_type = IPC_COMMAND
        client = 0x560e4da96910
        read_available = 69
        buf = "i3-ipc7\000\000\000\000\000\000"
        received = 14
#6  0x00007f835d4dc04a in wl_event_loop_dispatch () at /usr/lib/libwayland-server.so.0
#7  0x00007f835d4d9bc7 in wl_display_run () at /usr/lib/libwayland-server.so.0
#8  0x0000560e4ca355a2 in server_run (server=0x560e4caac600 <server>) at ../sway/sway/server.c:285
#9  0x0000560e4ca34897 in main (argc=2, argv=0x7ffe3ad10308) at ../sway/sway/main.c:427
        config_path = 0x0
        usage = 0x560e4ca92298 "Usage: sway [options] [command]\n\n  -h, --help", ' ' <repeats 13 times>, "Show help message and quit.\n  -c, --config <config>  Specify a config file.\n  -C, --validate         Check the validity of the config file, th"...
        c = -1
        verbose = 0
        allow_unsupported_gpu = 0
        debug = 1
        validate = 0
        long_options = 
            {{name = 0x560e4ca8f055 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x560e4ca8f8cf "config", has_arg = 1, flag = 0x0, val = 99}, {name = 0x560e4ca8f05a "validate", has_arg = 0, flag = 0x0, val = 67}, {name = 0x560e4ca8f063 "debug", has_arg = 0, flag = 0x0, val = 100}, {name = 0x560e4ca8ef55 "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x560e4ca8eb3b "verbose", has_arg = 0, flag = 0x0, val = 86}, {name = 0x560e4ca8f069 "get-socketpath", has_arg = 0, flag = 0x0, val = 112}, {name = 0x560e4ca8f078 "unsupported-gpu", has_arg = 0, flag = 0x0, val = 117}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
(gdb) print workspace
$4 = (struct sway_workspace *) 0x0
(gdb) up 1
#1  0x0000560e4ca66a65 in cmd_move_in_direction (direction=WLR_DIRECTION_UP, argc=0, argv=0x560e4da939c0) at ../sway/sway/commands/move.c:754
754	../sway/sway/commands/move.c: No such file or directory.
(gdb) print container->pending
$5 = {layout = L_HORIZ, x = 0, y = 2190, width = 0, height = 0, fullscreen_mode = FULLSCREEN_NONE, workspace = 0x0, parent = 0x0, children = 0x560e4dac5570, focused_inactive_child = 0x0, focused = false, border = B_NONE, border_thickness = 0, border_top = false, border_bottom = false, border_left = false, border_right = false, content_x = 0, content_y = 0, content_width = 0, content_height = 0}
(gdb) 
  • Description:
    With 3 windows in a workspace, have a script perform a sequence of split/move commands (I can reconstruct the exact sequence if we really need it) via ipc, ctrl+c the script, start it again so it starts listening, and then have it perform another sequence of split/moves commands.
@nicolasavru nicolasavru added the bug Not working as intended label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

1 participant