#2765·BrowserOS

[Bug] SIGTRAP in TabDragController::AttachImpl when dragging a vertical tab between windows on Wayland (148.0.7966.97)

Author: wilhewontheCreated Sep 27, 2026Updated Sep 27, 2026

Issue Type

Browser Issue

Operating System

Linux

Description of the bug

BrowserOS aborts with SIGTRAP (si_code: SI_KERNEL, i.e. a release-build check / immediate-crash instruction) while a vertical tab is being dragged across windows on Wayland. Both windows vanish instantly and the profile is left with exit_type: Crashed.

Expected: the dragged tab re-attaches to the target window's tab strip, or the drag is cancelled — the browser should not abort.

The failure is entirely inside BrowserOS/Chromium's tab-drag + Ozone-Wayland DnD code, and it looks like re-entrancy: TabDragController::StartSystemDnDSessionIfNecessary starts a blocking Wayland system drag-and-drop session (the nested loop is frames #24–#28, a second views::RunDragDropLoop under ui::WaylandWindow::StartDrag); a wl_data_device.motion event delivered during that nested loop re-enters TabDragController::Drag → DragBrowserToNewTabStrip → DetachAndAttachToNewContext → AttachImpl, and the check inside AttachImpl fires. Frames #3 and #30 in the stack are the same Drag() frame re-entered under the nested loop.

Steps to Reproduce

  1. Linux on Wayland, vertical tabs enabled (vertical_tabs.enabled: true, from the profile Preferences)
  2. Open two BrowserOS windows, each with more than one tab
  3. Press on a tab in the vertical tab strip of window A and drag it toward window B so a Wayland system DnD session starts
  4. BrowserOS aborts with SIGTRAP while the drag is over the second window's tab strip

Reproduced twice on the same build (2026-09-13 and 2026-09-27), with the identical crashing instruction offset.

Screenshots / Videos

None — the process aborts; there is no UI state to capture.

BrowserOS Version

148.0.7966.97

(installed as browseros-bin 0.47.18-1, built 2026-09-10; upstream v0.50.5 is the current release and the AUR package is flagged out of date since 2026-09-08, so I could not retest on a newer build)

Additional Context

Crash metadata and symbolized stack (systemd-coredump; symbols resolve from the shipped .dynsym, so no external debuginfo was needed):

PID:       1204011 (browseros), TID 1204011
Signal:    5 (TRAP) si_code: SI_KERNEL
Timestamp: Sun 2026-09-27 13:31:06 PDT
Command:   /opt/browseros/browseros
Executable:/opt/browseros/browseros

Stack trace of thread 1204011 (main):
#0  TabDragController::AttachImpl()                                    browseros + 0x11dafc79  <-- ud2 (crash)
#1  TabDragController::DetachAndAttachToNewContext(ReleaseCapture, TabDragContext*)
                                                                       browseros + 0x11dae2cd
#2  TabDragController::DragBrowserToNewTabStrip(TabDragContext*, const gfx::Point&)
                                                                       browseros + 0x11daa4a7
#3  TabDragController::Drag(const gfx::Point&)                         browseros + 0x11da729c
#4  TabDragController::OnSystemDnDUpdated(const ui::DropTargetEvent&)  browseros + 0x11da712d
#5  views::DropHelper::OnDragOver(const ui::OSExchangeData&, const gfx::Point&, int)
                                                                       browseros + 0xc7a2c2f
#6  views::DesktopNativeWidgetAura::OnDragEntered(const ui::DropTargetEvent&)
                                                                       browseros + 0xc7af786
#7  views::DesktopDragDropClientOzone::UpdateTargetAndCreateDropEvent() browseros + 0xc7c9667
#8  views::DesktopDragDropClientOzone::OnDragMotion(const gfx::PointF&, int, int)
                                                                       browseros + 0xc7c983e
#9  ui::WaylandDataDragController::OnDragMotion(const gfx::PointF&, base::TimeTicks)
                                                                       browseros + 0x3a325da
#10 ui::WaylandDataDevice::OnMotion(void*, wl_data_device*, uint32_t, int, int)
                                                                       browseros + 0x3a2d8bc
#11 ffi_call_unix64 .. #14 dispatch_event  (libffi / libwayland)
#15 wl_display_dispatch_queue_pending                                    (libwayland)
#16 ui::WaylandEventWatcher::WlDisplayDispatchPendingQueue()           browseros + 0x3a9ff15
#21 base::MessagePumpGlib::Run(base::MessagePump::Delegate*)           browseros + 0x9fad2fe
#24 ui::WaylandWindow::StartDrag(const ui::OSExchangeData&, int, ui::mojom::DragEventSource, ui::Cursor, bool, ...)
                                                                       browseros + 0x3a68431   <-- nested Wayland DnD loop
#26 views::DesktopDragDropClientOzone::StartDragAndDrop(...)           browseros + 0xc7c8816
#27 views::RunDragDropLoop(...)                                        browseros + 0xc7a36bc
#28 views::Widget::RunDragDropLoop(views::View*, ...)                  browseros + 0xc7609da
#29 TabDragController::StartSystemDnDSessionIfNecessary(TabDragContext*, gfx::Point)
                                                                       browseros + 0x11da8ec9
#30 TabDragController::DragBrowserToNewTabStrip(TabDragContext*, const gfx::Point&)
                                                                       browseros + 0x11dabb08
#31 TabDragController::Drag(const gfx::Point&)                         browseros + 0x11da729c
#32 VerticalTabDragHandlerImpl::ContinueDrag(views::View&, const ui::LocatedEvent&)
                                                                       browseros + 0x8d7a707
#33 views::View::ProcessMouseDragged(ui::MouseEvent*)                  browseros + 0xc742d2e
#36 views::internal::RootView::OnMouseDragged(const ui::MouseEvent&)   browseros + 0xc7556ef
...
#62 content::BrowserMainLoop::RunMainMessageLoop()                     browseros + 0x636391e
#63 content::BrowserMain(const MainFunctionParams)                     browseros + 0x635f5c0

Other threads were idle (epoll/glib main loops, sandbox IPC handler); nothing points at a renderer or a GPU/driver frame.

Disassembly at the faulting offset 0x11dafc79 (inside TabDragController::AttachImpl): a ud2 immediate-crash instruction, sitting in the function's cold block and reached by two je branches ~40 instructions earlier. Those branches follow a views::Widget::SetCapture() call on the re-attach path and guard a validity/null test on a ref-counted object taken off the old drag context. Inferred, not proven: this is a failed release-build CHECK in AttachImpl reached via the DnD re-entry above; I cannot name the exact CHECK because the shipped binary carries no debug info or assert strings. The crash reproduces at the same instruction, so a symbol-bearing build of 148.0.7966.97 should match it to one line.

Prior occurrence on the same build — identical symbol, identical offset (AttachImpl crash at ...fc79, same WaylandDataDragController::OnDragMotion → OnSystemDnDUpdated path, same VerticalTabDragHandlerImpl::ContinueDrag origin):

PID 261991, Sun 2026-09-13 05:04:02 PDT, signal 5 (TRAP) si_code SI_KERNEL
Command: /opt/browseros/browseros http://127.0.0.1:24282/dashboard/index.html

Ruled out:

  • OOM — ~19 GiB available at crash time, no kernel OOM kills in the journal
  • xkbcomp / Xwayland keymap warnings logged in the same second — unrelated (Hyprland keymap noise, appears constantly)
  • GPU/driver — the main-thread stack contains no driver or compositor frames

Environment: Arch Linux (Omarchy), kernel 7.2.7-arch1-1, Wayland session (Hyprland 0.56.2), hybrid Intel Alder Lake-P UHD + NVIDIA RTX 3050 Ti Mobile. The crash was in profile Profile 1 (~/.config/browser-os/Profile 1), which has vertical_tabs: {enabled: true, collapsed_state: true} and now shows exit_type: Crashed; the Default profile is untouched.

No data loss: profile, history and session files are intact on disk and session restore was offered.

Workaround used since: move tabs between windows via the tab context menu instead of dragging the vertical tab.

Related but different: #945 also reports SIGTRAP on Linux during tab operations, but its stacks and its event-loop-starvation root cause don't match this one, so I filed separately.

I still have the core dump locally, if a symbol-rich build makes extracting the exact CHECK worthwhile.


Report generated by an automated crash-diagnosis run on the reporter's machine (Hermes Agent, diagnose-crash skill); the analysis above was reviewed before filing.