Skip to content

[BUG] Crash on extractSwayVersion #2360

@mcst12345

Description

@mcst12345

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Not a known issue

  • I have checked the existing issues but the issue is not covered
  • My issue is not about crashing on Fedora and KDE 6.6

Description

Crash on extractSwayVersion.
sway -version outputs "sway version 1.13-dev-f1b40bc28 (May 31 2026, branch 'master')".

Version used

fastfetch 2.63.1-64-debug (x86_64)

Bug prevalence

Always

Regression

Not sure

Installation

Built from source

Package manager

No response

Screenshots

No response

Configuration

Stacktrace

#0  0x00007ffff7d4c550 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00005555556a40f0 in ffStrbufSetNS (strbuf=0x7fffffffdf78, length=4294967283, value=0x555555782fed "") at /usr/src/debug/fastfetch-git/fastfetch/src/common/impl/FFstrbuf.c:252
        newBuf = 0x7ffef737e010 "1.13-dev-f1b40bc28 (May 31 2026, branch 'master')"
#2  extractSwayVersion (line=<optimized out>, len=<optimized out>, userdata=0x7fffffffdf78) at /usr/src/debug/fastfetch-git/fastfetch/src/detection/wm/wm_linux.c:106
        result = <optimized out>
#3  0x00005555556a33ca in getSway (result=0x7fffffffdf78) at /usr/src/debug/fastfetch-git/fastfetch/src/detection/wm/wm_linux.c:134
        path = {allocated = 32, length = 13, chars = 0x555555763ac0 "/usr/bin/sway"}
        buffer = {allocated = 64, length = 62, chars = 0x55555575a530 "sway version 1.13-dev-f1b40bc28 (May 31 2026, branch 'master')"}
        error = <optimized out>
#4  ffDetectWMVersion (wmName=<optimized out>, result=0x7fffffffdf78, options=<optimized out>) at /usr/src/debug/fastfetch-git/fastfetch/src/detection/wm/wm_linux.c:299
No locals.
#5  0x0000555555636607 in ffPrintWM (options=0x7fffffffe050) at /usr/src/debug/fastfetch-git/fastfetch/src/modules/wm/wm.c:23
        pluginName = {allocated = 0, length = 0, chars = 0x5555557064d3 <str.llvm> ""}
        version = {allocated = 0, length = 0, chars = 0x5555557064d3 <str.llvm> ""}
        result = <optimized out>
#6  0x00005555555808be in parseStructureCommand (data=0x7fffffffe2a0, line=0x555555755130 "WM", fn=0x5555555809b0 <genJsonResult>) at /usr/src/debug/fastfetch-git/fastfetch/src/common/impl/commandoption.c:183
        optionBuf = "\000\000\000\000\000\000\000\000\323dpUUU\000\000\000\000\000\000\000\000\000\000\323dpUUU\000\000\000\000\000\000\003\000\000\000U\313pUUU\000\000\000\000\000\000\000\000\000\000\323dpUUU\000\000\000\000\000\000\000\000\000\000\323dpUUU\000\000\000\000\000\000\377\177\000\000\001\000\000\000\000\000\000\000\000dpUUU\000\000\000\000\000\000\000\000\000\000\323dpUUU\000\000\000\000\000\000\000\000\000\000\323dpUUU\000\000\000XuUUU\000\000\300\332\336\367\377\177\000\0000\210\301\367\377\177\000\000@\342\377\377\377\177\000\000\260XuUUU\000\000\200\341\377\377\377\177\000\000\023\031\310\367\377\177\000\000\220\001\000\000\000\000\000\000"...
        baseInfo = 0x555555750800 <ffWMModuleInfo>
        modules = 0x555555750ce0 <W+32>
#7  0x00005555555803dd in ffPrintCommandOption (data=0x7fffffffe2a0) at /usr/src/debug/fastfetch-git/fastfetch/src/common/impl/commandoption.c:218
        ms = <optimized out>
        thres = <optimized out>
        moduleType = <optimized out>
        moduleLen = 0
#8  0x000055555557b3df in run (data=0x7fffffffe2a0) at /usr/src/debug/fastfetch-git/fastfetch/src/fastfetch.c:764
        useJsonConfig = <optimized out>
#9  main (argc=1, argv=0x7fffffffe468) at /usr/src/debug/fastfetch-git/fastfetch/src/fastfetch.c:851
        data = {configDoc = 0x0, resultDoc = 0x0, structure = {allocated = 256, length = 194, chars = 0x5555557550f0 "Title:Separator:OS:Host:Kernel:Uptime:Packages:Shell:Display:DE:WM"}, structureDisabled = {
            allocated = 0, length = 0, chars = 0x5555557064d3 <str.llvm> ""}, genConfigPath = {allocated = 0, length = 0, chars = 0x5555557064d3 <str.llvm> ""}, docType = FF_RESULT_DOC_TYPE_DEFAULT, 
          configLoaded = false}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions