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

bear 3.1.4 hangs when proxy is enabled in ubuntu 24.04 #581

Closed
yu3s opened this issue Jun 25, 2024 · 3 comments
Closed

bear 3.1.4 hangs when proxy is enabled in ubuntu 24.04 #581

yu3s opened this issue Jun 25, 2024 · 3 comments

Comments

@yu3s
Copy link

yu3s commented Jun 25, 2024

To Reproduce

 ((3.1.4)) ~/workspace/git/Bear/build ✘ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.usr/local/ -DENABLE_UNIT_TESTS=OFF -DENABLE_FUNC_TESTS=OFF ../
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Release' as none was specified.
-- Looking for nlohman_json dependency
-- Looking for nlohman_json dependency -- not found
-- Looking for fmt dependency
-- Looking for fmt dependency -- not found
-- Looking for spdlog dependency
-- Looking for spdlog dependency -- not found
-- Looking for gRPC::grpc++ dependency
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for modules 'protobuf>=3.11;grpc++>=1.26'
--   Package 'protobuf', required by 'virtual:world', not found
--   Package 'grpc++', required by 'virtual:world', not found
-- Looking for gRPC::grpc++ dependency -- not found
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/finn/workspace/git/Bear/build
 ((3.1.4)) ~/workspace/git/Bear/build ✘ make -j16 && make install
 ~ ✘ bear --version
bear 3.1.4
 ~ ✘ ldd ~/.usr/local/bin/bear
        linux-vdso.so.1 (0x00007ffd4ef07000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007a9b60c4c000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007a9b5fc00000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007a9b5ff17000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007a9b60c1f000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007a9b5f800000)
        /lib64/ld-linux-x86-64.so.2 (0x00007a9b60c7d000)
 ~ ✘ ldd ~/.usr/local/lib/bear/wrapper
        linux-vdso.so.1 (0x00007fff2cbfe000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x0000796417883000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x0000796416800000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000079641779a000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000079641776d000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000796416400000)
        /lib64/ld-linux-x86-64.so.2 (0x00007964178b4000)
 ~ ✘ cat Makefile
all:
        echo 'test'
 ~ ✘ bear -- make

Expected behavior
output test

Environment:

  • OS name: linux
  • OS version: ubuntu 24.04
  • OS architecture: x86_64
  • Bear version: 3.1.4
  • Bear install method: source

Additional context
gdb --args bear -- make

GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bear...
(gdb) run
Starting program: /home/finn/.usr/local/bin/bear -- make

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) n
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after vfork from child process 480557]
^C
Program received signal SIGINT, Interrupt.
0x00007ffff79107a7 in __GI___wait4 (pid=480557, stat_loc=0x7fffffffd0a0, options=0, usage=0x0)
    at ../sysdeps/unix/sysv/linux/wait4.c:30
warning: 30     ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory
(gdb) bt
#0  0x00007ffff79107a7 in __GI___wait4 (pid=480557, stat_loc=0x7fffffffd0a0, options=0, usage=0x0)
    at ../sysdeps/unix/sysv/linux/wait4.c:30
#1  0x000055555565e042 in sys::Process::wait(bool) ()
#2  0x0000555555640163 in (anonymous namespace)::execute(sys::Process::Builder, std::basic_string_view<char, std::char_traits<char> > const&) ()
#3  0x0000555555640b55 in bear::Command::execute() const ()
#4  0x0000555555634a9f in int ps::main<bear::Application>(int, char**, char**) ()
#5  0x00007ffff782a1ca in __libc_start_call_main (main=main@entry=0x555555634c80 <main>, argc=argc@entry=3,
    argv=argv@entry=0x7fffffffdad8) at ../sysdeps/nptl/libc_start_call_main.h:58
#6  0x00007ffff782a28b in __libc_start_main_impl (main=0x555555634c80 <main>, argc=3, argv=0x7fffffffdad8,
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdac8)
    at ../csu/libc-start.c:360
#7  0x000055555563a785 in _start ()
(gdb)
@rizsotto
Copy link
Owner

Hi @yu3s , thanks for the report. Could you run bear -v -v -v -v -- make and attach the output of that to this ticket?

@yu3s
Copy link
Author

yu3s commented Jun 25, 2024

Hi @yu3s , thanks for the report. Could you run bear -v -v -v -v -- make and attach the output of that to this ticket?

 ~ ✘ bear -v -v -v -v -- make
Unrecognized parameter: "-v"
Usage: bear <command> [--output <arg>] [--verbose] -- ...
 ~ ✘ bear --help
Usage: bear <command> [--output <arg>] [--verbose] -- ...

commands
  intercept
  citnames

  --output <arg>       path of the result file (default: compile_commands.json)
  --verbose            run in verbose mode
  -- ...               command to execute

advanced options
  --append             append result to an existing output file
  --config <arg>       path of the config file
  --force-preload      force to use library preload
  --force-wrapper      force to use compiler wrappers

developer options
  --bear-path <arg>    path to the bear executable (default: /home/finn/.usr/local/bin/bear)
  --library <arg>      path to the preload library (default: /home/finn/.usr/local/lib/bear/libexec.so)
  --wrapper <arg>      path to the wrapper executable (default: /home/finn/.usr/local/lib/bear/wrapper)
  --wrapper-dir <arg>  path to the wrapper directory (default: /home/finn/.usr/local/lib/bear/wrapper.d)

query options
  --help               print help and exit
  --version            print version and exit
 ~ ✘ bear --verbose --verbose --verbose --verbose -- make
[07:08:20.229934, br, 530958] bear: 3.1.4
[07:08:20.230085, br, 530958] arguments: ["bear", "--verbose", "--verbose", "--verbose", "--verbose", "--", "make"]
[07:08:20.230371, br, 530958] environment: ["SHELL=/bin/bash", "SESSION_MANAGER=local/finn-GLO-GXXX:@/tmp/.ICE-unix/128468,unix/finn-GLO-GXXX:/tmp/.ICE-unix/128468", "WINDOWID=108590062876240", "QT_ACCESSIBILITY=1", "COLORTERM=truecolor", "XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg", "XDG_MENU_PREFIX=gnome-", "TERM_PROGRAM_VERSION=3.4", "GNOME_DESKTOP_SESSION_ID=this-is-deprecated", "TMUX=/tmp/tmux-1000/default,491050,0", "LESS_TERMCAP_se=\x1b[27m\x1b(B\x1b[m", "LESS_TERMCAP_so=\x1b[1m\x1b[33m\x1b[44m", "GNOME_SHELL_SESSION_MODE=ubuntu", "SSH_AUTH_SOCK=/run/user/1000/keyring/ssh", "MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=", "XMODIFIERS=@im=ibus", "DESKTOP_SESSION=ubuntu", "EDITOR=vim", "LESS_TERMCAP_ZV=", "LESS_TERMCAP_ZW=", "GTK_MODULES=gail:atk-bridge", "LESS_TERMCAP_ZN=", "LESS_TERMCAP_ZO=", "PWD=/home/finn", "XDG_SESSION_DESKTOP=ubuntu", "LOGNAME=finn", "XDG_SESSION_TYPE=wayland", "SYSTEMD_EXEC_PID=128522", "XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.A2IMP2", "IM_CONFIG_CHECK_ENV=1", "GJS_DEBUG_TOPICS=JS ERROR;JS LOG", "HOME=/home/finn", "USERNAME=finn", "IM_CONFIG_PHASE=1", "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=00: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=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;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:", "XDG_CURRENT_DESKTOP=ubuntu:GNOME", "MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service/memory.pressure", "WAYLAND_DISPLAY=wayland-0", "INVOCATION_ID=9a6ef0bdf3d445a486eb57c4ce54d03d", "MANAGERPID=2547", "ALACRITTY_SOCKET=/run/user/1000/Alacritty-wayland-0-491006.sock", "GJS_DEBUG_OUTPUT=stderr", "GNOME_SETUP_DISPLAY=:1", "GROFF_NO_SGR=1", "LESSCLOSE=/usr/bin/lesspipe %s %s", "XDG_SESSION_CLASS=user", "LESS_TERMCAP_mh=\x1b[2m", "TERM=xterm-256color", "LESS_TERMCAP_mb=\x1b[1m\x1b[32m", "LESS_TERMCAP_me=\x1b(B\x1b[m", "LESS_TERMCAP_md=\x1b[1m\x1b[36m", "LESS_TERMCAP_mr=\x1b[7m", "LESSOPEN=| /usr/bin/lesspipe %s", "USER=finn", "TMUX_PANE=%3", "DISPLAY=:0", "LESS_TERMCAP_ue=\x1b[24m\x1b(B\x1b[m", "SHLVL=2", "LESS_TERMCAP_us=\x1b[4m\x1b[1m\x1b[37m", "GSM_SKIP_SSH_AGENT_WORKAROUND=true", "QT_IM_MODULE=ibus", "XDG_RUNTIME_DIR=/run/user/1000", "PS1=\\[\\033[01;31m\\]$(__git_ps1 \" (%s)\")\\[\\033[00m\\] \\[\\033[01;33m\\]\\w\\[\\033[00m\\] \\[\\033[01;32m\\]✘\\[\\033[00m\\] ", "DEBUGINFOD_URLS=https://debuginfod.ubuntu.com ", "JOURNAL_STREAM=8:721903", "XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop", "PATH=/home/finn/.usr/local/bin/:/home/finn/.usr/local/sbin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin", "ALACRITTY_LOG=/tmp/Alacritty-491006.log", "GDMSESSION=ubuntu", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "ALACRITTY_WINDOW_ID=108590062876240", "GIO_LAUNCHED_DESKTOP_FILE_PID=491006", "GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/Alacritty.desktop", "TERM_PROGRAM=tmux", "_=/home/finn/.usr/local/bin/bear", "OLDPWD=/home/finn/workspace/git/vim"]
[07:08:20.230431, br, 530958] sysname: Linux
[07:08:20.230437, br, 530958] release: 6.8.0-35-generic
[07:08:20.230440, br, 530958] version: #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:51:52 UTC 2024
[07:08:20.230442, br, 530958] machine: x86_64
[07:08:20.230475, br, 530958] arguments parsed: {program: bear, arguments: [{--: [make]}, {--bear-path: [/home/finn/.usr/local/bin/bear]}, {--library: [/home/finn/.usr/local/lib/bear/libexec.so]}, {--output: [compile_commands.json]}, {--verbose: []}, {--wrapper: [/home/finn/.usr/local/lib/bear/wrapper]}, {--wrapper-dir: [/home/finn/.usr/local/lib/bear/wrapper.d]}]}
[07:08:20.231582, br, 530958] Process spawned. [pid: 530959, command: ["/home/finn/.usr/local/bin/bear", "intercept", "--library", "/home/finn/.usr/local/lib/bear/libexec.so", "--wrapper", "/home/finn/.usr/local/lib/bear/wrapper", "--wrapper-dir", "/home/finn/.usr/local/lib/bear/wrapper.d", "--output", "compile_commands.events.json", "--verbose", "--", "make"]]
[07:08:20.231629, br, 530958] Process wait requested. [pid: 530959]
[07:08:20.235079, br, 530959] bear: 3.1.4
[07:08:20.235198, br, 530959] arguments: ["/home/finn/.usr/local/bin/bear", "intercept", "--library", "/home/finn/.usr/local/lib/bear/libexec.so", "--wrapper", "/home/finn/.usr/local/lib/bear/wrapper", "--wrapper-dir", "/home/finn/.usr/local/lib/bear/wrapper.d", "--output", "compile_commands.events.json", "--verbose", "--", "make"]
[07:08:20.235433, br, 530959] environment: ["ALACRITTY_LOG=/tmp/Alacritty-491006.log", "ALACRITTY_SOCKET=/run/user/1000/Alacritty-wayland-0-491006.sock", "ALACRITTY_WINDOW_ID=108590062876240", "COLORTERM=truecolor", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "DEBUGINFOD_URLS=https://debuginfod.ubuntu.com ", "DESKTOP_SESSION=ubuntu", "DISPLAY=:0", "EDITOR=vim", "GDMSESSION=ubuntu", "GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/Alacritty.desktop", "GIO_LAUNCHED_DESKTOP_FILE_PID=491006", "GJS_DEBUG_OUTPUT=stderr", "GJS_DEBUG_TOPICS=JS ERROR;JS LOG", "GNOME_DESKTOP_SESSION_ID=this-is-deprecated", "GNOME_SETUP_DISPLAY=:1", "GNOME_SHELL_SESSION_MODE=ubuntu", "GROFF_NO_SGR=1", "GSM_SKIP_SSH_AGENT_WORKAROUND=true", "GTK_MODULES=gail:atk-bridge", "HOME=/home/finn", "IM_CONFIG_CHECK_ENV=1", "IM_CONFIG_PHASE=1", "INVOCATION_ID=9a6ef0bdf3d445a486eb57c4ce54d03d", "JOURNAL_STREAM=8:721903", "LANG=en_US.UTF-8", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LESSOPEN=| /usr/bin/lesspipe %s", "LESS_TERMCAP_ZN=", "LESS_TERMCAP_ZO=", "LESS_TERMCAP_ZV=", "LESS_TERMCAP_ZW=", "LESS_TERMCAP_mb=\x1b[1m\x1b[32m", "LESS_TERMCAP_md=\x1b[1m\x1b[36m", "LESS_TERMCAP_me=\x1b(B\x1b[m", "LESS_TERMCAP_mh=\x1b[2m", "LESS_TERMCAP_mr=\x1b[7m", "LESS_TERMCAP_se=\x1b[27m\x1b(B\x1b[m", "LESS_TERMCAP_so=\x1b[1m\x1b[33m\x1b[44m", "LESS_TERMCAP_ue=\x1b[24m\x1b(B\x1b[m", "LESS_TERMCAP_us=\x1b[4m\x1b[1m\x1b[37m", "LOGNAME=finn", "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=00: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=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;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:", "MANAGERPID=2547", "MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service/memory.pressure", "MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=", "OLDPWD=/home/finn/workspace/git/vim", "PATH=/home/finn/.usr/local/bin/:/home/finn/.usr/local/sbin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin", "PS1=\\[\\033[01;31m\\]$(__git_ps1 \" (%s)\")\\[\\033[00m\\] \\[\\033[01;33m\\]\\w\\[\\033[00m\\] \\[\\033[01;32m\\]✘\\[\\033[00m\\] ", "PWD=/home/finn", "QT_ACCESSIBILITY=1", "QT_IM_MODULE=ibus", "SESSION_MANAGER=local/finn-GLO-GXXX:@/tmp/.ICE-unix/128468,unix/finn-GLO-GXXX:/tmp/.ICE-unix/128468", "SHELL=/bin/bash", "SHLVL=2", "SSH_AUTH_SOCK=/run/user/1000/keyring/ssh", "SYSTEMD_EXEC_PID=128522", "TERM=xterm-256color", "TERM_PROGRAM=tmux", "TERM_PROGRAM_VERSION=3.4", "TMUX=/tmp/tmux-1000/default,491050,0", "TMUX_PANE=%3", "USER=finn", "USERNAME=finn", "WAYLAND_DISPLAY=wayland-0", "WINDOWID=108590062876240", "XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.A2IMP2", "XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg", "XDG_CURRENT_DESKTOP=ubuntu:GNOME", "XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop", "XDG_MENU_PREFIX=gnome-", "XDG_RUNTIME_DIR=/run/user/1000", "XDG_SESSION_CLASS=user", "XDG_SESSION_DESKTOP=ubuntu", "XDG_SESSION_TYPE=wayland", "XMODIFIERS=@im=ibus", "_=/home/finn/.usr/local/bin/bear"]
[07:08:20.235481, br, 530959] sysname: Linux
[07:08:20.235487, br, 530959] release: 6.8.0-35-generic
[07:08:20.235495, br, 530959] version: #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:51:52 UTC 2024
[07:08:20.235506, br, 530959] machine: x86_64
[07:08:20.235541, br, 530959] arguments parsed: {program: intercept, arguments: [{--: [make]}, {--library: [/home/finn/.usr/local/lib/bear/libexec.so]}, {--output: [compile_commands.events.json]}, {--verbose: []}, {--wrapper: [/home/finn/.usr/local/lib/bear/wrapper]}, {--wrapper-dir: [/home/finn/.usr/local/lib/bear/wrapper.d]}, {command: [intercept]}]}
[07:08:20.235805, br, 530959] Created library preload session. [library=/home/finn/.usr/local/lib/bear/libexec.so, executor=/home/finn/.usr/local/lib/bear/wrapper]
[07:08:20.237969, br, 530959] Running gRPC server. dns:///localhost:41431
[07:08:20.238631, br, 530959] Process spawned. [pid: 530964, command: ["/home/finn/.usr/local/lib/bear/wrapper", "--destination", "dns:///localhost:41431", "--verbose", "--execute", "/usr/bin/make", "--", "make"]]
[07:08:20.238684, br, 530959] Process wait requested. [pid: 530964]
[07:08:20.241521, el, 530964] lib.cc; on_load
[07:08:20.242309, wr, 530964, ppid: 530959] wrapper: 3.1.4
[07:08:20.242329, wr, 530964, ppid: 530959] arguments: ["/home/finn/.usr/local/lib/bear/wrapper", "--destination", "dns:///localhost:41431", "--verbose", "--execute", "/usr/bin/make", "--", "make"]
[07:08:20.242490, wr, 530964, ppid: 530959] environment: ["ALACRITTY_LOG=/tmp/Alacritty-491006.log", "ALACRITTY_SOCKET=/run/user/1000/Alacritty-wayland-0-491006.sock", "ALACRITTY_WINDOW_ID=108590062876240", "COLORTERM=truecolor", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus", "DEBUGINFOD_URLS=https://debuginfod.ubuntu.com ", "DESKTOP_SESSION=ubuntu", "DISPLAY=:0", "EDITOR=vim", "GDMSESSION=ubuntu", "GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/Alacritty.desktop", "GIO_LAUNCHED_DESKTOP_FILE_PID=491006", "GJS_DEBUG_OUTPUT=stderr", "GJS_DEBUG_TOPICS=JS ERROR;JS LOG", "GNOME_DESKTOP_SESSION_ID=this-is-deprecated", "GNOME_SETUP_DISPLAY=:1", "GNOME_SHELL_SESSION_MODE=ubuntu", "GROFF_NO_SGR=1", "GSM_SKIP_SSH_AGENT_WORKAROUND=true", "GTK_MODULES=gail:atk-bridge", "HOME=/home/finn", "IM_CONFIG_CHECK_ENV=1", "IM_CONFIG_PHASE=1", "INTERCEPT_REPORT_COMMAND=/home/finn/.usr/local/lib/bear/wrapper", "INTERCEPT_REPORT_DESTINATION=dns:///localhost:41431", "INTERCEPT_VERBOSE=true", "INVOCATION_ID=9a6ef0bdf3d445a486eb57c4ce54d03d", "JOURNAL_STREAM=8:721903", "LANG=en_US.UTF-8", "LD_PRELOAD=/home/finn/.usr/local/lib/bear/libexec.so", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LESSOPEN=| /usr/bin/lesspipe %s", "LESS_TERMCAP_ZN=", "LESS_TERMCAP_ZO=", "LESS_TERMCAP_ZV=", "LESS_TERMCAP_ZW=", "LESS_TERMCAP_mb=\x1b[1m\x1b[32m", "LESS_TERMCAP_md=\x1b[1m\x1b[36m", "LESS_TERMCAP_me=\x1b(B\x1b[m", "LESS_TERMCAP_mh=\x1b[2m", "LESS_TERMCAP_mr=\x1b[7m", "LESS_TERMCAP_se=\x1b[27m\x1b(B\x1b[m", "LESS_TERMCAP_so=\x1b[1m\x1b[33m\x1b[44m", "LESS_TERMCAP_ue=\x1b[24m\x1b(B\x1b[m", "LESS_TERMCAP_us=\x1b[4m\x1b[1m\x1b[37m", "LOGNAME=finn", "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=00: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=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;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:", "MANAGERPID=2547", "MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service/memory.pressure", "MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=", "OLDPWD=/home/finn/workspace/git/vim", "PATH=/home/finn/.usr/local/bin/:/home/finn/.usr/local/sbin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin", "PS1=\\[\\033[01;31m\\]$(__git_ps1 \" (%s)\")\\[\\033[00m\\] \\[\\033[01;33m\\]\\w\\[\\033[00m\\] \\[\\033[01;32m\\]✘\\[\\033[00m\\] ", "PWD=/home/finn", "QT_ACCESSIBILITY=1", "QT_IM_MODULE=ibus", "SESSION_MANAGER=local/finn-GLO-GXXX:@/tmp/.ICE-unix/128468,unix/finn-GLO-GXXX:/tmp/.ICE-unix/128468", "SHELL=/bin/bash", "SHLVL=2", "SSH_AUTH_SOCK=/run/user/1000/keyring/ssh", "SYSTEMD_EXEC_PID=128522", "TERM=xterm-256color", "TERM_PROGRAM=tmux", "TERM_PROGRAM_VERSION=3.4", "TMUX=/tmp/tmux-1000/default,491050,0", "TMUX_PANE=%3", "USER=finn", "USERNAME=finn", "WAYLAND_DISPLAY=wayland-0", "WINDOWID=108590062876240", "XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.A2IMP2", "XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg", "XDG_CURRENT_DESKTOP=ubuntu:GNOME", "XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop", "XDG_MENU_PREFIX=gnome-", "XDG_RUNTIME_DIR=/run/user/1000", "XDG_SESSION_CLASS=user", "XDG_SESSION_DESKTOP=ubuntu", "XDG_SESSION_TYPE=wayland", "XMODIFIERS=@im=ibus", "_=/home/finn/.usr/local/bin/bear"]
[07:08:20.242555, wr, 530964, ppid: 530959] arguments parsed: {program: /home/finn/.usr/local/lib/bear/wrapper, arguments: [{--: [make]}, {--destination: [dns:///localhost:41431]}, {--execute: [/usr/bin/make]}, {--verbose: []}]}
[07:08:20.243704, wr, 530964, ppid: 530959] gRPC call requested: supervise::Supervisor::Resolve

@yu3s
Copy link
Author

yu3s commented Jun 25, 2024

I know the reason now. It appears when I run v2ray, which is a proxy software.

sudo apt install libgrpc++-dev protobuf-compiler-grpc

Install dependencies from packages on Ubuntu 24.04, resolved.

 ~ ✘ bear -- make
echo 'test'
test
 ~

Thanks.

ps: I didn't install the packages at first because I did this in Ubuntu 18.04

@yu3s yu3s closed this as completed Jun 25, 2024
@yu3s yu3s changed the title bear 3.1.4 hang in ubuntu 24.04 bear 3.1.4 hangs when proxy is enabled in ubuntu 24.04 Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants