JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.01k stars 2.37k forks source link

Upgrade command requests elevated privileges on Linux even when run as root or sudo #4992

Closed pquantin closed 4 months ago

pquantin commented 4 months ago

Code of Conduct

What happened?

After the v21.2.0 release, I tried to run the new upgrade command (as sudo first, then as root) and got the following error printed: ⚠️ we don't have permissions to upgrade oh-my-posh, please use elevated permissions to upgrade Is it supposed to work on Linux?

Theme

{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "version": 2, "final_space": true, "console_title_template": "{{ .PWD }}", "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "type": "os", "style": "diamond", "foreground": "p:black", "background": "p:yellow", "leading_diamond": "\ue0b6", "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " }, { "type": "session", "style": "diamond", "foreground": "p:black", "background": "p:yellow", "trailing_diamond": "\ue0b0", "template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} " }, { "type": "upgrade", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#111111", "background": "#FFD664", "properties": { "cache_timeout": 1440 } }, { "type": "path", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "p:white", "background": "p:orange", "template": " \uea83 {{ path .Path .Location }} ", "properties": { "style": "mixed", "mapped_locations": { "/home/pascal/dev": "\ue795 ", "/mnt/data/dev": "\ue795 ", "/home/pascal/tools/wireshark": "\udb85\ude74 ", "/mnt/data/tools/wireshark": "\udb85\ude74 " } } }, { "type": "git", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "p:black", "foreground_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}", "{{ if gt .Ahead 0 }}p:white{{ end }}" ], "background": "p:green", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}", "{{ if gt .Ahead 0 }}#49416D{{ end }}", "{{ if gt .Behind 0 }}#7A306C{{ end }}" ], "template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", "properties": { "branch_max_length": 25, "fetch_status": true, "fetch_upstream_icon": true } }, { "type": "svn", "style": "powerline", "powerline_symbol": "", "foreground": "p:black", "foreground_templates": [ "{{ if or (gt .Working.Modified 0) (gt .Working.Deleted 0) (gt .Working.Added 0) (gt .Working.Moved 0) }}p:black{{ end }}", "{{ if .Working.HasConflicts }}}p:white{{ end }}" ], "background": "p:green", "background_templates": [ "{{ if or (gt .Working.Modified 0) (gt .Working.Deleted 0) (gt .Working.Added 0) (gt .Working.Moved 0) }}p:yellow{{ end }}", "{{ if .Working.HasConflicts }}p:red{{ end }}" ], "template": " \ue0a0{{.Branch}} r{{.BaseRev}}{{ if .Working.Changed }} \uf044 {{.Working.String}}{{ end }} ", "properties": { "fetch_status": true } }, { "type": "root", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "p:white", "background": "p:yellow", "template": " \uf0e7 " }, { "type": "status", "style": "diamond", "foreground": "p:white", "background": "p:blue", "background_templates": [ "{{ if gt .Code 0 }}p:red{{ end }}" ], "leading_diamond": "<transparent,background>\ue0b0</>", "trailing_diamond": "\ue0b4", "template": " {{ if gt .Code 0 }}\uf00d {{ reason .Code }}{{ else }}\uf00c{{ end }} ", "properties": { "always_enabled": true } } ] }, { "type": "rprompt", "segments": [ { "type": "battery", "style": "plain", "background": "transparent", "foreground_templates": [ "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", "{{if eq \"Full\" .State.String}}#4caf50{{end}}" ], "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }} ", "properties": { "discharging_icon": " ", "charging_icon": " ", "charged_icon": " " } }, { "type": "sysinfo", "style": "plain", "background": "transparent", "template": "  {{ round .PhysicalPercentUsed .Precision }}% ", "properties": { "precision": 2 } } ] } ], "tooltips": [ { "type": "aws", "tips": [ "aws" ], "style": "diamond", "foreground": "p:white", "background": "p:orange", "leading_diamond": "\ue0b0", "trailing_diamond": "\ue0b4", "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", "properties": { "display_default": true } }, { "type": "az", "tips": [ "az" ], "style": "diamond", "foreground": "p:white", "background": "p:blue", "leading_diamond": "\ue0b0", "trailing_diamond": "\ue0b4", "template": " \uebd8 {{ .Name }} ", "properties": { "display_default": true } } ], "transient_prompt": { "foreground": "p:black", "background": "transparent", "template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> " }, "secondary_prompt": { "foreground": "p:black", "background": "transparent", "template": "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> " }, "palette": { "black": "#262B44", "blue": "#4B95E9", "green": "#59C9A5", "orange": "#F07623", "red": "#D81E5B", "white": "#E0DEF4", "yellow": "#F3AE35" } }

What OS are you seeing the problem on?

Linux

Which shell are you using?

bash

Log output

Version: 21.1.0

Shell: bash (5.2.26(1)-release)

Prompt:

   root                                                                                                                                                                                                                 43.29% 

Segments:

ConsoleTitle(true)                        -   3 ms
Os(true)                                  -   0 ms
Session(true)                             -   2 ms
Upgrade(true)                             -   0 ms
Path(true)                                -   0 ms
Git(false)                                -   0 ms
Svn(false)                                -   0 ms
Root(true)                                -   0 ms
Status(true)                              -   1 ms
Battery(false)                            -   0 ms
Sysinfo(true)                             -   1 ms

Run duration: 15.69598ms

Cache path: /root/.cache/oh-my-posh

Config path: /home/pascal/.config/mytheme.omp.json

Logs:

[DEBUG] 15:51:42.404 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.404 shell.go:Getenv(TERM_PROGRAM) - 252.883µs
[DEBUG] 15:51:42.404 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.404 shell.go:Getenv(OMP_CACHE_DIR) - 4.593µs
[DEBUG] 15:51:42.404 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.405 shell.go:Getenv(XDG_CACHE_HOME) - 4.115µs
[TRACE] 15:51:42.405 shell_unix.go:CachePath() - 49.952µs
[DEBUG] 15:51:42.405 shell.go:Getenv:326 → /home/pascal/.config/mytheme.omp.json
[TRACE] 15:51:42.405 shell.go:Getenv(POSH_THEME) - 14.184µs
[DEBUG] 15:51:42.405 shell_unix.go:Platform:87 → fedora
[TRACE] 15:51:42.405 shell.go:resolveConfigPath() - 37.569µs
[TRACE] 15:51:42.405 shell.go:Init() - 835.411µs
[TRACE] 15:51:42.405 shell.go:Flags() - 183ns
[TRACE] 15:51:42.406 config.go:loadConfig() - 1.169125ms
[TRACE] 15:51:42.406 shell.go:Flags() - 237ns
[DEBUG] 15:51:42.406 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.406 shell.go:Getenv(OMP_CACHE_DISABLED) - 11.114µs
[DEBUG] 15:51:42.406 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 15:51:42.407 shell.go:Shell:609 → process name: bash
[TRACE] 15:51:42.407 shell.go:Shell() - 1.028413ms
[DEBUG] 15:51:42.407 shell.go:Getenv:326 → 5.2.26(1)-release
[TRACE] 15:51:42.407 shell.go:Getenv(POSH_SHELL_VERSION) - 6.466µs
[DEBUG] 15:51:42.407 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 15:51:42.407 text.go:Render:71 → Rendering template: {{ .PWD }}
[TRACE] 15:51:42.409 shell_unix.go:Root() - 2.262µs
[TRACE] 15:51:42.409 shell.go:Shell() - 806ns
[TRACE] 15:51:42.409 shell.go:StatusCodes() - 310ns
[DEBUG] 15:51:42.409 shell_unix.go:IsWsl:35 → false
[TRACE] 15:51:42.409 shell_unix.go:IsWsl() - 22.327µs
[DEBUG] 15:51:42.409 shell.go:TemplateCache:782 ↓
    environment: [SHELL=/bin/bash COLORTERM=truecolor SUDO_GID=1000 POSH_PID=60521 HOSTNAME=pascal-levallois HISTSIZE=1000 DOTNET_ROOT=/usr/lib64/dotnet SUDO_COMMAND=/usr/bin/su SUDO_USER=pascal EDITOR=/usr/bin/nano PWD=/mnt/data/dev LOGNAME=root MODULESHOME=/usr/share/Modules MANPATH=/usr/share/man: XAUTHORITY=/root/.xauthWLq1d0 __MODULES_SHARE_MANPATH=:1 HOME=/root USERNAME=pascal LANG=en_US.UTF-8 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90: POSH_SHELL_VERSION=5.2.26(1)-release CONDA_PROMPT_MODIFIER=false DOTNET_BUNDLE_EXTRACT_BASE_DIR=/root/.cache/dotnet_bundle_extract MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed TERM=xterm-256color LESSOPEN=||/usr/bin/lesspipe.sh %s USER=root MODULES_RUN_QUARANTINE=LD_LIBRARY_PATH LD_PRELOAD LOADEDMODULES= DISPLAY=:0 SHLVL=1 POSH_THEME=/home/pascal/.config/mytheme.omp.json __MODULES_LMINIT=module use --append /usr/share/Modules/modulefiles:module use --append /etc/modulefiles:module use --append /usr/share/modulefiles DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/  XDG_DATA_DIRS=/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share PATH=/root/.local/bin:/root/bin:/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin:/root/.dotnet/tools MODULEPATH=/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles SUDO_UID=1000 MAIL=/var/spool/mail/pascal POWERLINE_COMMAND=oh-my-posh MODULES_CMD=/usr/share/Modules/libexec/modulecmd.tcl BASH_FUNC_ml%%=() {  module ml "$@"
    } BASH_FUNC_module%%=() {  local _mlredir=1;
     if [ -n "${MODULES_REDIRECT_OUTPUT+x}" ]; then
     if [ "$MODULES_REDIRECT_OUTPUT" = '0' ]; then
     _mlredir=0;
     else
     if [ "$MODULES_REDIRECT_OUTPUT" = '1' ]; then
     _mlredir=1;
     fi;
     fi;
     fi;
     case " $@ " in 
     *' --no-redirect '*)
     _mlredir=0
     ;;
     *' --redirect '*)
     _mlredir=1
     ;;
     esac;
     if [ $_mlredir -eq 0 ]; then
     _module_raw "$@";
     else
     _module_raw "$@" 2>&1;
     fi
    } BASH_FUNC_scl%%=() {  if [ "$1" = "load" -o "$1" = "unload" ]; then
     eval "module $@";
     else
     /usr/bin/scl "$@";
     fi
    } BASH_FUNC__module_raw%%=() {  eval "$(/usr/bin/tclsh '/usr/share/Modules/libexec/modulecmd.tcl' bash "$@")";
     _mlstatus=$?;
     return $_mlstatus
    } _=/usr/local/bin/oh-my-posh]
[TRACE] 15:51:42.410 shell.go:GOOS() - 396ns
[DEBUG] 15:51:42.410 shell.go:Pwd:356 → /mnt/data/dev
[TRACE] 15:51:42.410 shell.go:Pwd() - 685.32µs
[TRACE] 15:51:42.410 shell.go:GOOS() - 70ns
[TRACE] 15:51:42.410 shell.go:GOOS() - 207ns
[TRACE] 15:51:42.410 shell.go:GOOS() - 51ns
[TRACE] 15:51:42.410 shell.go:GOOS() - 46ns
[TRACE] 15:51:42.410 shell.go:GOOS() - 49ns
[DEBUG] 15:51:42.410 shell.go:User:494 → root
[TRACE] 15:51:42.410 shell.go:User() - 9.294µs
[DEBUG] 15:51:42.410 shell.go:Host:511 → pascal-levallois
[TRACE] 15:51:42.410 shell.go:Host() - 11.036µs
[TRACE] 15:51:42.410 shell.go:GOOS() - 40ns
[DEBUG] 15:51:42.410 shell_unix.go:Platform:87 → fedora
[DEBUG] 15:51:42.410 shell.go:Getenv:326 → 1
[TRACE] 15:51:42.410 shell.go:Getenv(SHLVL) - 4.684µs
[TRACE] 15:51:42.411 shell.go:TemplateCache() - 1.406179ms
[DEBUG] 15:51:42.411 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.411 shell.go:Getenv(POSH_CURSOR_LINE) - 9.608µs
[DEBUG] 15:51:42.411 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.411 shell.go:Getenv(POSH_CURSOR_COLUMN) - 5.713µs
[TRACE] 15:51:42.411 shell.go:Flags() - 90ns
[TRACE] 15:51:42.411 shell.go:Flags() - 48ns
[TRACE] 15:51:42.411 shell.go:Shell() - 544ns
[TRACE] 15:51:42.411 shell.go:Shell() - 58ns
[TRACE] 15:51:42.411 shell.go:Flags() - 2.077µs
[TRACE] 15:51:42.411 shell.go:Flags() - 67ns
[TRACE] 15:51:42.411 shell.go:Flags() - 444ns
[TRACE] 15:51:42.411 shell.go:Flags() - 218ns
[TRACE] 15:51:42.411 shell.go:Pwd() - 322ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 94ns
[TRACE] 15:51:42.411 shell.go:Pwd() - 278ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Path
[TRACE] 15:51:42.411 shell.go:GOOS() - 88ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Svn
[TRACE] 15:51:42.411 shell.go:Pwd() - 172ns
[TRACE] 15:51:42.411 shell.go:Shell() - 139ns
[TRACE] 15:51:42.411 shell.go:Shell() - 60ns
[DEBUG] 15:51:42.411 shell_unix.go:IsWsl:35 → false
[TRACE] 15:51:42.411 shell_unix.go:IsWsl() - 8.874µs
[TRACE] 15:51:42.411 shell_unix.go:IsWsl2() - 13.289µs
[TRACE] 15:51:42.411 shell.go:GOOS() - 60ns
[DEBUG] 15:51:42.411 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 15:51:42.411 shell.go:CommandPath:553 → /usr/bin/svn
[DEBUG] 15:51:42.411 properties.go:GetString:28 → ~
[TRACE] 15:51:42.411 shell.go:CommandPath(svn) - 67.507µs
[TRACE] 15:51:42.411 shell.go:HasCommand(svn) - 73.976µs
[TRACE] 15:51:42.411 shell.go:Pwd() - 149ns
[DEBUG] 15:51:42.411 properties.go:GetKeyValueMap:46 → mapped_locations: map[/home/pascal/dev:  /home/pascal/tools/wireshark:󱙴  /mnt/data/dev:  /mnt/data/tools/wireshark:󱙴 ]
[DEBUG] 15:51:42.411 text.go:Render:71 → Rendering template: /home/pascal/dev
[TRACE] 15:51:42.411 shell.go:GOOS() - 64ns
[DEBUG] 15:51:42.411 text.go:Render:71 → Rendering template: /mnt/data/dev
[TRACE] 15:51:42.411 shell.go:GOOS() - 34ns
[ERROR] 15:51:42.411 shell.go:HasParentFilePath:697 → stat .svn: no such file or directory
[DEBUG] 15:51:42.411 text.go:Render:71 → Rendering template: /home/pascal/tools/wireshark
[TRACE] 15:51:42.411 shell.go:GOOS() - 45ns
[TRACE] 15:51:42.411 shell.go:HasParentFilePath(.svn) - 35.901µs
[DEBUG] 15:51:42.411 text.go:Render:71 → Rendering template: /mnt/data/tools/wireshark
[TRACE] 15:51:42.411 shell.go:GOOS() - 41ns
[TRACE] 15:51:42.411 shell.go:Flags() - 236ns
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 94ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 47ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 46ns
[TRACE] 15:51:42.411 shell.go:Pwd() - 111ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 43ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Git
[DEBUG] 15:51:42.411 shell_unix.go:IsWsl:35 → false
[TRACE] 15:51:42.411 shell_unix.go:IsWsl() - 4.499µs
[TRACE] 15:51:42.411 shell_unix.go:IsWsl2() - 8.47µs
[TRACE] 15:51:42.411 shell.go:GOOS() - 49ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 105ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 47ns
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 68ns
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 59ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 49ns
[DEBUG] 15:51:42.411 shell.go:CommandPath:553 → /usr/bin/git
[TRACE] 15:51:42.411 shell.go:GOOS() - 48ns
[TRACE] 15:51:42.411 shell.go:CommandPath(git) - 36.049µs
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 55ns
[TRACE] 15:51:42.411 shell.go:HasCommand(git) - 40.792µs
[TRACE] 15:51:42.411 shell.go:GOOS() - 49ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 46ns
[TRACE] 15:51:42.411 shell.go:Pwd() - 137ns
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 54ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 44ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 50ns
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 82ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 47ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 54ns
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 81ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 51ns
[TRACE] 15:51:42.411 shell.go:HasParentFilePath(.git) - 62.763µs
[TRACE] 15:51:42.411 shell.go:GOOS() - 50ns
[DEBUG] 15:51:42.411 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 15:51:42.411 shell.go:PathSeparator() - 41ns
[DEBUG] 15:51:42.411 properties.go:GetString:28 → NO DATA
[TRACE] 15:51:42.411 shell.go:GOOS() - 44ns
[TRACE] 15:51:42.411 shell.go:Flags() - 121ns
[TRACE] 15:51:42.411 shell.go:Pwd() - 122ns
[DEBUG] 15:51:42.411 shell_unix.go:IsWsl:35 → false
[TRACE] 15:51:42.411 shell.go:Pwd() - 179ns
[TRACE] 15:51:42.411 shell_unix.go:IsWsl() - 5.461µs
[TRACE] 15:51:42.411 shell.go:GOOS() - 58ns
[TRACE] 15:51:42.411 shell.go:StackCount() - 215ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Os
[TRACE] 15:51:42.411 shell.go:GOOS() - 54ns
[DEBUG] 15:51:42.411 shell_unix.go:Platform:87 → fedora
[TRACE] 15:51:42.411 shell_unix.go:DirIsWritable(/mnt/data/dev) - 15.693µs
[DEBUG] 15:51:42.411 properties.go:GetBool:22 → display_distro_name: false
[TRACE] 15:51:42.411 shell.go:TemplateCache() - 444ns
[TRACE] 15:51:42.411 shell.go:Flags() - 87ns
[DEBUG] 15:51:42.411 properties.go:GetString:28 → 
[TRACE] 15:51:42.411 shell.go:TemplateCache() - 674ns
[TRACE] 15:51:42.411 shell.go:Pwd() - 122ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 60ns
[TRACE] 15:51:42.411 shell.go:Flags() - 86ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Upgrade
[TRACE] 15:51:42.411 shell.go:Pwd() - 107ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 42ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Root
[TRACE] 15:51:42.411 shell_unix.go:Root() - 1.105µs
[TRACE] 15:51:42.411 shell.go:TemplateCache() - 112ns
[TRACE] 15:51:42.411 shell.go:Pwd() - 150ns
[TRACE] 15:51:42.411 shell.go:GOOS() - 46ns
[TRACE] 15:51:42.411 shell.go:TemplateCache() - 232ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Session
[DEBUG] 15:51:42.411 properties.go:GetString:28 → {{ .Code }}
[DEBUG] 15:51:42.411 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.411 shell.go:Getenv(SSH_CONNECTION) - 4.774µs
[TRACE] 15:51:42.411 shell.go:Pwd() - 228ns
[DEBUG] 15:51:42.411 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.411 shell.go:Getenv(SSH_CLIENT) - 3.955µs
[DEBUG] 15:51:42.411 shell_unix.go:Platform:87 → fedora
[TRACE] 15:51:42.411 shell.go:GOOS() - 58ns
[DEBUG] 15:51:42.411 segment.go:SetEnabled:533 → Segment: Status
[TRACE] 15:51:42.411 shell.go:StatusCodes() - 259ns
[DEBUG] 15:51:42.411 text.go:Render:71 → Rendering template: {{ .Code }}
[TRACE] 15:51:42.412 shell.go:TemplateCache() - 274ns
[DEBUG] 15:51:42.412 properties.go:GetBool:22 → always_enabled: true
[TRACE] 15:51:42.412 shell.go:TemplateCache() - 105ns
[DEBUG] 15:51:42.413 shell.go:RunCommand:531 → NO DATA
[TRACE] 15:51:42.413 shell.go:RunCommand(who am i) - 1.716435ms
[TRACE] 15:51:42.413 shell.go:TemplateCache() - 528ns
[DEBUG] 15:51:42.413 text.go:Render:71 → Rendering template:  {{ if gt .Code 0 }} {{ reason .Code }}{{ else }}{{ end }} 
[DEBUG] 15:51:42.413 text.go:Render:71 → Rendering template:   {{ path .Path .Location }} 
[TRACE] 15:51:42.414 shell.go:TemplateCache() - 1.019µs
[DEBUG] 15:51:42.414 text.go:Render:71 → Rendering template:   
[TRACE] 15:51:42.414 shell.go:Shell() - 1.304µs
[TRACE] 15:51:42.414 shell.go:TemplateCache() - 355ns
[TRACE] 15:51:42.414 shell.go:Shell() - 256ns
[DEBUG] 15:51:42.414 text.go:Render:71 → Rendering template:   
[TRACE] 15:51:42.414 shell.go:Shell() - 101ns
[DEBUG] 15:51:42.414 text.go:Render:71 → Rendering template:  {{ if .WSL }}WSL at {{ end }}{{.Icon}} 
[TRACE] 15:51:42.415 shell.go:TemplateCache() - 330ns
[TRACE] 15:51:42.415 shell.go:Shell() - 207ns
[TRACE] 15:51:42.415 shell.go:TemplateCache() - 275ns
[TRACE] 15:51:42.415 shell.go:Shell() - 152ns
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: diamond
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: diamond
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: powerline
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: powerline
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: powerline
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: powerline
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: powerline
[DEBUG] 15:51:42.415 text.go:Render:71 → Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 15:51:42.416 shell.go:TemplateCache() - 1.354µs
[DEBUG] 15:51:42.416 text.go:Render:71 → Rendering template: diamond
[TRACE] 15:51:42.416 shell.go:Shell() - 861ns
[TRACE] 15:51:42.416 shell.go:Shell() - 103ns
[TRACE] 15:51:42.416 shell.go:Shell() - 50ns
[TRACE] 15:51:42.416 shell.go:Shell() - 51ns
[DEBUG] 15:51:42.416 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.416 shell.go:Getenv(OMP_CACHE_DISABLED) - 7.734µs
[TRACE] 15:51:42.416 shell.go:Flags() - 73ns
[TRACE] 15:51:42.416 shell.go:Flags() - 446ns
[TRACE] 15:51:42.416 shell.go:Pwd() - 1.336µs
[TRACE] 15:51:42.416 shell.go:GOOS() - 105ns
[DEBUG] 15:51:42.416 segment.go:SetEnabled:533 → Segment: Battery
[DEBUG] 15:51:42.416 shell_unix.go:IsWsl:35 → false
[TRACE] 15:51:42.416 shell.go:Flags() - 169ns
[TRACE] 15:51:42.417 shell_unix.go:IsWsl() - 7.722µs
[DEBUG] 15:51:42.417 properties.go:GetInt:40 → precision: 2
[ERROR] 15:51:42.417 shell_windows_nix.go:BatteryState:15 → no battery
[TRACE] 15:51:42.417 shell_windows_nix.go:BatteryState() - 113.739µs
[TRACE] 15:51:42.418 shell.go:Pwd() - 693ns
[TRACE] 15:51:42.418 shell.go:GOOS() - 80ns
[DEBUG] 15:51:42.418 segment.go:SetEnabled:533 → Segment: Sysinfo
[TRACE] 15:51:42.418 shell.go:TemplateCache() - 350ns
[DEBUG] 15:51:42.418 text.go:Render:71 → Rendering template:   {{ round .PhysicalPercentUsed .Precision }}% 
[TRACE] 15:51:42.418 shell.go:TemplateCache() - 203ns
[TRACE] 15:51:42.418 shell.go:Shell() - 313ns
[DEBUG] 15:51:42.418 text.go:Render:71 → Rendering template: plain
[DEBUG] 15:51:42.418 text.go:Render:71 → Rendering template: plain
[TRACE] 15:51:42.419 shell.go:Shell() - 107ns
[TRACE] 15:51:42.419 shell.go:Shell() - 531ns
[TRACE] 15:51:42.419 shell.go:Flags() - 84ns
[TRACE] 15:51:42.419 shell.go:Shell() - 74ns
[TRACE] 15:51:42.419 shell.go:Shell() - 92ns
[DEBUG] 15:51:42.420 shell_unix.go:TerminalWidth:80 → terminal width: 238
[TRACE] 15:51:42.420 shell_unix.go:TerminalWidth() - 1.300321ms
[TRACE] 15:51:42.420 shell.go:Flags() - 99ns
[DEBUG] 15:51:42.420 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.420 shell.go:Getenv(OMP_CACHE_DIR) - 6.896µs
[DEBUG] 15:51:42.420 shell.go:Getenv:326 → NO DATA
[TRACE] 15:51:42.420 shell.go:Getenv(XDG_CACHE_HOME) - 4.032µs
[TRACE] 15:51:42.420 shell_unix.go:CachePath() - 38.292µs
[TRACE] 15:51:42.420 shell.go:Flags() - 70ns
JanDeDobbeleer commented 4 months ago

@pquantin I validated this on linux as well, this worked for me also when it needed to be elevated using sudo oh-my-posh upgrade.

pquantin commented 4 months ago

This is what I tried before filling this issue, but it fails for me:

   pascal        sudo oh-my-posh upgrade                                                                                                                                                                                    41.14% 
[sudo] password for pascal: 

    ⚠️  we don't have permissions to upgrade oh-my-posh, please use elevated permissions to upgrade

   pascal        ll /usr/local/bin/                                                                                                                                                                                         33.41% 
lrwxrwxrwx root root 38 B  Tue Dec  7 09:30:10 2021  npm@ ⇒ ../lib/node_modules/npm/bin/npm-cli.js
lrwxrwxrwx root root 38 B  Tue Dec  7 09:30:10 2021  npx@ ⇒ ../lib/node_modules/npm/bin/npx-cli.js
.rwxr-xr-x root root 16 MB Sat Jun  1 18:38:27 2024  oh-my-posh*
pquantin commented 4 months ago

A 'sudo strace oh-my-posh upgrade' seem to suggest an issue when trying to establish a TCP connection to api.github.com:

execve("/usr/local/bin/oh-my-posh", ["oh-my-posh", "upgrade"], 0x7ffd32840d18 /* 19 vars */) = 0
arch_prctl(ARCH_SET_FS, 0x1453990)      = 0
sched_getaffinity(0, 8192, [0 1 2 3 4 5 6 7]) = 8
openat(AT_FDCWD, "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size", O_RDONLY) = 3
read(3, "2097152\n", 20)                = 8
close(3)                                = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a647000
mmap(NULL, 131072, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a627000
mmap(NULL, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a527000
mmap(NULL, 8388608, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e59c00000
mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e55c00000
mmap(NULL, 536870912, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e35c00000
mmap(NULL, 536870912, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e15c00000
mmap(0xc000000000, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc000000000
mmap(NULL, 33554432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e13c00000
madvise(0x7f1e13c00000, 33554432, MADV_NOHUGEPAGE) = 0
mmap(NULL, 68624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a516000
mmap(0xc000000000, 4194304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xc000000000
mmap(0x7f1e5a627000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a627000
mmap(0x7f1e5a5a7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a5a7000
mmap(0x7f1e5a006000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a006000
mmap(0x7f1e57c30000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1e57c30000
mmap(0x7f1e45d80000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1e45d80000
mmap(0x7f1e25d80000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1e25d80000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a416000
madvise(0x7f1e5a416000, 1048576, MADV_NOHUGEPAGE) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e5a406000
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e13bf0000
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
fcntl(0, F_GETFD)                       = 0
fcntl(1, F_GETFD)                       = 0
fcntl(2, F_GETFD)                       = 0
sigaltstack(NULL, {ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}) = 0
sigaltstack({ss_sp=0xc000008000, ss_flags=0, ss_size=32768}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
gettid()                                = 83801
rt_sigaction(SIGHUP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGILL, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGILL, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGTRAP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTRAP, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGABRT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGABRT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGBUS, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGFPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGFPE, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGUSR1, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGUSR1, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGSEGV, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSEGV, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGUSR2, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGUSR2, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGALRM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGALRM, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGSTKFLT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSTKFLT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGCHLD, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGCHLD, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGURG, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGURG, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGXCPU, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGXCPU, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGXFSZ, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGXFSZ, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGVTALRM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGVTALRM, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGPROF, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPROF, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGWINCH, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGIO, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGIO, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGPWR, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPWR, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGSYS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSYS, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRTMIN, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_1, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_2, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_3, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_3, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_4, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_4, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_5, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_5, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_6, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_6, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_7, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_7, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_8, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_8, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_9, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_9, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_10, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_10, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_11, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_11, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_12, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_12, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_13, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_13, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_14, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_14, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_15, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_15, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_16, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_16, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_17, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_17, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_18, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_18, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_19, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_19, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_20, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_20, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_21, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_21, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_22, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_22, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_23, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_23, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_24, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_24, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_25, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_25, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_26, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_26, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_27, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_27, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_28, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_28, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_29, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_29, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_30, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_30, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_31, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_31, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_32, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_32, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0
clone(child_stack=0xc00004a000, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS, tls=0xc000076098) = 83802
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0
clone(child_stack=0xc000090000, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS, tls=0xc000076898) = 83803
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=83801, si_uid=0} ---
rt_sigreturn({mask=[]})                 = 0
rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0
clone(child_stack=0xc00008c000, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS, tls=0xc000077098) = 83805
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0xc000077148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=512*1024}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=512*1024}) = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e13b70000
fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
fcntl(1, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(2, F_GETFL)                       = 0x8001 (flags O_WRONLY|O_LARGEFILE)
ioctl(1, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
futex(0x1455460, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1455378, FUTEX_WAKE_PRIVATE, 1) = 1
openat(AT_FDCWD, "/proc/stat", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_create1(EPOLL_CLOEXEC)            = 4
pipe2([5, 6], O_NONBLOCK|O_CLOEXEC)     = 0
epoll_ctl(4, EPOLL_CTL_ADD, 5, {events=EPOLLIN, data={u32=21707800, u64=21707800}}) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803585, u64=9159780370950914049}}) = 0
read(3, "cpu  2972916 1085 396030 2039526"..., 4096) = 1660
epoll_ctl(4, EPOLL_CTL_DEL, 3, 0xc00026b9ec) = 0
close(3)                                = 0
openat(AT_FDCWD, "/proc/stat", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803586, u64=9159780370950914050}}) = 0
read(3, "cpu  2972916 1085 396030 2039526"..., 4096) = 1660
read(3, "", 4096)                       = 0
epoll_ctl(4, EPOLL_CTL_DEL, 3, 0xc00026b9ec) = 0
close(3)                                = 0
ioctl(1, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
getppid()                               = 83798
getppid()                               = 83798
getppid()                               = 83798
newfstatat(AT_FDCWD, "", 0xc000352788, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "", 0xc000352858, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/root/.cache", {st_mode=S_IFDIR|0700, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/root/.cache/oh-my-posh", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/root/.cache/oh-my-posh/omp.cache", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803587, u64=9159780370950914051}}) = -1 EPERM (Operation not permitted)
fcntl(3, F_GETFL)                       = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=29651, ...}) = 0
read(3, "{\n    \"environment_platform\": {\n"..., 29652) = 29651
read(3, "", 1)                          = 0
close(3)                                = 0
futex(0xc000077148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803588, u64=9159780370950914052}}) = -1 EPERM (Operation not permitted)
fcntl(3, F_GETFL)                       = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=923, ...}) = 0
read(3, "# This is /run/systemd/resolve/s"..., 65536) = 923
read(3, "", 64613)                      = 0
read(3, "", 65536)                      = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803589, u64=9159780370950914053}}) = -1 EPERM (Operation not permitted)
fcntl(3, F_GETFL)                       = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=707, ...}) = 0
read(3, "# Generated by authselect\n# Do n"..., 65536) = 707
read(3, "", 64829)                      = 0
read(3, "", 65536)                      = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/hosts", {st_mode=S_IFREG|0644, st_size=2819, ...}, 0) = 0
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803590, u64=9159780370950914054}}) = -1 EPERM (Operation not permitted)
fcntl(3, F_GETFL)                       = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
read(3, "127.0.0.1   localhost localhost."..., 65536) = 2819
read(3, "", 62717)                      = 0
read(3, "", 65536)                      = 0
close(3)                                = 0
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 3
setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.53")}, 16) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803591, u64=9159780370950914055}}) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(46987), sin_addr=inet_addr("127.0.0.1")}, [112 => 16]) = 0
getpeername(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.53")}, [112 => 16]) = 0
write(3, "_;\1 \0\1\0\0\0\0\0\1\3api\6github\3com\0\0\34\0\1"..., 43) = 43
read(3, 0xc00033c000, 1232)             = -1 EAGAIN (Resource temporarily unavailable)
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
epoll_pwait(4, [{events=EPOLLOUT, data={u32=2132803592, u64=9159780370950914056}}], 128, 998, NULL, 0) = 1
futex(0x1455460, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1455378, FUTEX_WAKE_PRIVATE, 1) = 1
getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
getpeername(3, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("140.82.121.6")}, [112 => 16]) = 0
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
getsockname(3, {sa_family=AF_INET, sin_port=htons(47610), sin_addr=inet_addr("192.168.0.15")}, [112 => 16]) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(3, SOL_TCP, TCP_KEEPINTVL, [15], 4) = 0
setsockopt(3, SOL_TCP, TCP_KEEPIDLE, [15], 4) = 0
futex(0xc000077148, FUTEX_WAKE_PRIVATE, 1) = 1
getrandom("\x3c\xac\xec\x16\xcb\x48\x6f\x3e\xbc\x85\xdf\x90\x85\xba\x3c\x61\xec\x05\x68\x7e\x1c\x39\x62\xfd\x03\x6f\x7d\xdb\x5e\x89\xce\x98", 32, 0) = 32
getrandom("\x38\xb1\x8d\xa2\x9b\xea\xc0\xef\xb5\x9d\x3a\x52\xa0\xa1\xad\x9a\x1d\x53\xd2\x8e\xdd\x00\xeb\x7b\xda\xf8\xe5\x3a\xb0\x76\x3f\x69", 32, 0) = 32
getrandom("\xec", 1, 0)                 = 1
getrandom("\x60\x21\x9a\xee\x0c\x4c\xc1\xd9\xe1\x73\x25\xe6\x61\x49\xe9\xe6\x6c\x69\x16\x9c\x76\x1e\xcf\x1e\x81\xc5\x03\x36\x13\x27\x38\xc9", 32, 0) = 32
write(3, "\26\3\1\0\373\1\0\0\367\3\3<\254\354\26\313Ho>\274\205\337\220\205\272<a\354\5h~\34"..., 256) = 256
read(3, 0xc00033a240, 576)              = -1 EAGAIN (Resource temporarily unavailable)
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x1455450, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x1455378, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0xc000077148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0xc000100948, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000101148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000077148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0xc000580148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
getpid()                                = 83801
--- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=83801, si_uid=0} ---
rt_sigreturn({mask=[]})                 = 83801
tgkill(83801, 83808, SIGURG)            = 0
futex(0xc000680148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0xc000680148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000100948, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x14b4540, FUTEX_WAIT_PRIVATE, 0, NULL) = ?
+++ exited with 0 +++

In Wireshark I can see the TCP connection being established, a few TLSv1.3 packets being exchanged and a TCP FIN followed by a TCP RST being sent by my machine. Not sure how to move forward.

pquantin commented 4 months ago

Based on https://www.benburwell.com/posts/intercepting-golang-tls-with-wireshark/, it seems like Go does not support SSLKEYLOGFILE environment variable which would explain why I failed to collect the the session keys to decrypt the TCP connection collected with Wireshark and see what happens.

JanDeDobbeleer commented 4 months ago

@pquantin the request is to fetch the latest release information and avoid useless upgrades. You can work around that by using --force on the upgrade command.

pquantin commented 4 months ago

@JanDeDobbeleer thanks for the suggestion, but unfortunately I hit another error according to strace:

sudo oh-my-posh upgrade --force
execve("/usr/local/bin/oh-my-posh", ["oh-my-posh", "upgrade", "--force"], 0x7ffd3130f5c0 /* 19 vars */) = 0
arch_prctl(ARCH_SET_FS, 0x1453990)      = 0
sched_getaffinity(0, 8192, [0 1 2 3])   = 8
openat(AT_FDCWD, "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size", O_RDONLY) = 3
read(3, "2097152\n", 20)                = 8
close(3)                                = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f366cc000
mmap(NULL, 131072, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f366ac000
mmap(NULL, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f365ac000
mmap(NULL, 8388608, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f35c00000
mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f31c00000
mmap(NULL, 536870912, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f11c00000
mmap(NULL, 536870912, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5ef1c00000
mmap(0xc000000000, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc000000000
mmap(NULL, 33554432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5eefc00000
madvise(0x7f5eefc00000, 33554432, MADV_NOHUGEPAGE) = 0
mmap(NULL, 68624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f3659b000
mmap(0xc000000000, 4194304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xc000000000
mmap(0x7f5f366ac000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5f366ac000
mmap(0x7f5f3662c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5f3662c000
mmap(0x7f5f36006000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5f36006000
mmap(0x7f5f33c30000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5f33c30000
mmap(0x7f5f21d80000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5f21d80000
mmap(0x7f5f01d80000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5f01d80000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f3649b000
madvise(0x7f5f3649b000, 1048576, MADV_NOHUGEPAGE) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f3648b000
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5f3647b000
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
fcntl(0, F_GETFD)                       = 0
fcntl(1, F_GETFD)                       = 0
fcntl(2, F_GETFD)                       = 0
sigaltstack(NULL, {ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}) = 0
sigaltstack({ss_sp=0xc000008000, ss_flags=0, ss_size=32768}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
gettid()                                = 6939
rt_sigaction(SIGHUP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGILL, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGILL, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGTRAP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTRAP, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGABRT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGABRT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGBUS, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGFPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGFPE, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGUSR1, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGUSR1, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGSEGV, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSEGV, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGUSR2, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGUSR2, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGALRM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGALRM, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGSTKFLT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSTKFLT, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGCHLD, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGCHLD, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGURG, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGURG, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGXCPU, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGXCPU, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGXFSZ, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGXFSZ, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGVTALRM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGVTALRM, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGPROF, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPROF, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGWINCH, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGIO, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGIO, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGPWR, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPWR, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGSYS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSYS, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRTMIN, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_1, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_2, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_3, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_3, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_4, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_4, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_5, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_5, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_6, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_6, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_7, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_7, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_8, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_8, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_9, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_9, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_10, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_10, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_11, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_11, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_12, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_12, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_13, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_13, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_14, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_14, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_15, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_15, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_16, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_16, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_17, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_17, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_18, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_18, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_19, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_19, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_20, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_20, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_21, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_21, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_22, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_22, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_23, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_23, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_24, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_24, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_25, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_25, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_26, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_26, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_27, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_27, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_28, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_28, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_29, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_29, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_30, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_30, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_31, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_31, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigaction(SIGRT_32, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGRT_32, {sa_handler=0x472c80, sa_mask=~[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x472dc0}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0
clone(child_stack=0xc000048000, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS, tls=0xc000066098) = 6940
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0
clone(child_stack=0xc000080000, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS, tls=0xc000066898) = 6941
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=6939, si_uid=0} ---
rt_sigreturn({mask=[]})                 = 0
--- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=6939, si_uid=0} ---
rt_sigreturn({mask=[]})                 = 0
futex(0xc000080148, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5eefbc0000
futex(0xc000066948, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000080148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=512*1024}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=512*1024}) = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5eefb80000
fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
futex(0xc000067148, FUTEX_WAKE_PRIVATE, 1) = 1
fcntl(1, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(2, F_GETFL)                       = 0x8001 (flags O_WRONLY|O_LARGEFILE)
ioctl(1, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
openat(AT_FDCWD, "/proc/stat", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_create1(EPOLL_CLOEXEC)            = 4
pipe2([5, 6], O_NONBLOCK|O_CLOEXEC)     = 0
epoll_ctl(4, EPOLL_CTL_ADD, 5, {events=EPOLLIN, data={u32=21707800, u64=21707800}}) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803585, u64=9178036666313474049}}) = 0
read(3, "cpu  25866 648 6260 85158 4363 6"..., 4096) = 2450
epoll_ctl(4, EPOLL_CTL_DEL, 3, 0xc0002159ec) = 0
close(3)                                = 0
openat(AT_FDCWD, "/proc/stat", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 3, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803586, u64=9178036666313474050}}) = 0
read(3, "cpu  25866 648 6260 85158 4363 6"..., 4096) = 2450
read(3, "", 4096)                       = 0
epoll_ctl(4, EPOLL_CTL_DEL, 3, 0xc0002159ec) = 0
close(3)                                = 0
ioctl(1, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
getppid()                               = 6936
getppid()                               = 6936
getppid()                               = 6936
ioctl(0, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
futex(0xc000066948, FUTEX_WAKE_PRIVATE, 1) = 1
ioctl(0, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
ioctl(0, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
ioctl(0, TCSETS, {c_iflag=IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ECHOE|ECHOK|ECHOCTL|ECHOKE, ...}) = 0
ioctl(1, TCGETS, {c_iflag=IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ECHOE|ECHOK|ECHOCTL|ECHOKE, ...}) = 0
write(1, "\33[?25l", 6)                 = 6
write(1, "\33[?2004h", 8)               = 8
futex(0xc000114948, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc000067148, FUTEX_WAKE_PRIVATE, 1) = 1
ioctl(1, TCGETS, {c_iflag=IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ECHOE|ECHOK|ECHOCTL|ECHOKE, ...}) = 0
epoll_create1(0)                        = 3
pipe2([7, 8], O_CLOEXEC)                = 0
fcntl(7, F_GETFL)                       = 0 (flags O_RDONLY)
fcntl(7, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
epoll_ctl(4, EPOLL_CTL_ADD, 7, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2132803587, u64=9178036666313474051}}) = 0
fcntl(8, F_GETFL)                       = 0x1 (flags O_WRONLY)
fcntl(8, F_SETFL, O_WRONLY|O_NONBLOCK)  = 0
epoll_ctl(4, EPOLL_CTL_ADD, 8, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2116550657, u64=9178036666297221121}}) = 0
epoll_ctl(3, EPOLL_CTL_ADD, 0, {events=EPOLLIN, data={u32=0, u64=0}}) = 0
fcntl(7, F_GETFL)                       = 0x800 (flags O_RDONLY|O_NONBLOCK)
fcntl(7, F_SETFL, O_RDONLY)             = 0
fcntl(7, F_GETFL)                       = 0 (flags O_RDONLY)
epoll_ctl(3, EPOLL_CTL_ADD, 7, {events=EPOLLIN, data={u32=7, u64=7}}) = 0
futex(0xc000080948, FUTEX_WAKE_PRIVATE, 1) = 1
readlinkat(AT_FDCWD, "/proc/self/exe", "/usr/local/bin/oh-my-posh", 128) = 25
openat(AT_FDCWD, "/usr/local/bin/oh-my-posh", O_WRONLY|O_CLOEXEC) = -1 ETXTBSY (Text file busy)
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0xc000067148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x1453a40, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
nanosleep({tv_sec=0, tv_nsec=3000}, NULL) = 0
+++ exited with 0 +++
JanDeDobbeleer commented 4 months ago

@pquantin this is what we're looking for:

openat(AT_FDCWD, "/usr/local/bin/oh-my-posh", O_WRONLY|O_CLOEXEC) = -1 ETXTBSY (Text file busy)

On macos I can replace a running file, this isn't possible on linux (or the distro you're using). I will have to validate this a bit better on linux apparently.

github-actions[bot] commented 1 month ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.