scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Segmentation fault error

Open RadioactivePlays opened this issue 3 years ago • 1 comments

  • [x] I have read the FAQ.
  • [x] I have searched in existing issues.

Environment

  • OS: Ubuntu Kylin (Ubuntu 22.04 based)
  • scrcpy version: 1.24
  • installation method: both manual build, apt, and snap lead me to the same error.
  • device model: Motorola One Macro
  • Android version: 10

In both snap and deb installations i get the segmentation fault (core dumped) when i execute the scrcpy. In manual build, the following occurs when i start the installantion script.

./install_release.sh
[scrcpy] Downloading prebuilt server...
--2022-06-17 05:44:56--  https://github.com/Genymobile/scrcpy/releases/download/v1.24/scrcpy-server-v1.24
Resolving github.com (github.com)... 20.201.28.151
Connecting to github.com (github.com)|20.201.28.151|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/f2b006ce-8ac0-4875-96cc-1c3097d6a85b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220617%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220617T094456Z&X-Amz-Expires=300&X-Amz-Signature=c7a439135a81ea882486e2c76be3edac5e60c89ea7110c8334104578079a7f72&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v1.24&response-content-type=application%2Foctet-stream [following]
--2022-06-17 05:44:56--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/f2b006ce-8ac0-4875-96cc-1c3097d6a85b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220617%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220617T094456Z&X-Amz-Expires=300&X-Amz-Signature=c7a439135a81ea882486e2c76be3edac5e60c89ea7110c8334104578079a7f72&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v1.24&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 41159 (40K) [application/octet-stream]
Saving to: ‘scrcpy-server’

scrcpy-server       100%[===================>]  40.19K  --.-KB/s    in 0.06s   

2022-06-17 05:44:57 (713 KB/s) - ‘scrcpy-server’ saved [41159/41159]

[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 0.61.2
Source dir: /home/wesley/scrcpy
Build dir: /home/wesley/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 1.24
C compiler for the host machine: cc (gcc 11.2.0 "cc (Ubuntu 11.2.0-19ubuntu1) 11.2.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency libavformat found: YES 58.76.100
Run-time dependency libavcodec found: YES 58.134.100
Run-time dependency libavutil found: YES 56.70.100
Run-time dependency sdl2 found: YES 2.0.20
Run-time dependency libavdevice found: YES 58.13.100
Run-time dependency libusb-1.0 found: YES 1.0.25
Checking for function "strdup" : YES 
Checking for function "asprintf" : YES 
Checking for function "vasprintf" : YES 
Header <sys/socket.h> has symbol "SOCK_CLOEXEC" : YES 
Configuring config.h using configuration
Build targets in project: 3
NOTICE: Future-deprecated features used:
 * 0.56.0: {'meson.source_root'}

scrcpy 1.24

  User defined options
    buildtype      : release
    strip          : True
    b_lto          : true
    prebuilt_server: scrcpy-server

Found ninja-1.10.1 at /usr/bin/ninja
[54/54] Linking target app/scrcpy
FAILED: app/scrcpy 
cc  -o app/scrcpy app/scrcpy.p/src_main.c.o app/scrcpy.p/src_adb_adb.c.o app/scrcpy.p/src_adb_adb_device.c.o app/scrcpy.p/src_adb_adb_parser.c.o app/scrcpy.p/src_adb_adb_tunnel.c.o app/scrcpy.p/src_cli.c.o app/scrcpy.p/src_clock.c.o app/scrcpy.p/src_compat.c.o app/scrcpy.p/src_control_msg.c.o app/scrcpy.p/src_controller.c.o app/scrcpy.p/src_decoder.c.o app/scrcpy.p/src_demuxer.c.o app/scrcpy.p/src_device_msg.c.o app/scrcpy.p/src_icon.c.o app/scrcpy.p/src_file_pusher.c.o app/scrcpy.p/src_fps_counter.c.o app/scrcpy.p/src_frame_buffer.c.o app/scrcpy.p/src_input_manager.c.o app/scrcpy.p/src_keyboard_inject.c.o app/scrcpy.p/src_mouse_inject.c.o app/scrcpy.p/src_opengl.c.o app/scrcpy.p/src_options.c.o app/scrcpy.p/src_receiver.c.o app/scrcpy.p/src_recorder.c.o app/scrcpy.p/src_scrcpy.c.o app/scrcpy.p/src_screen.c.o app/scrcpy.p/src_server.c.o app/scrcpy.p/src_version.c.o app/scrcpy.p/src_video_buffer.c.o app/scrcpy.p/src_util_acksync.c.o app/scrcpy.p/src_util_file.c.o app/scrcpy.p/src_util_intmap.c.o app/scrcpy.p/src_util_intr.c.o app/scrcpy.p/src_util_log.c.o app/scrcpy.p/src_util_net.c.o app/scrcpy.p/src_util_net_intr.c.o app/scrcpy.p/src_util_process.c.o app/scrcpy.p/src_util_process_intr.c.o app/scrcpy.p/src_util_strbuf.c.o app/scrcpy.p/src_util_str.c.o app/scrcpy.p/src_util_term.c.o app/scrcpy.p/src_util_thread.c.o app/scrcpy.p/src_util_tick.c.o app/scrcpy.p/src_sys_unix_file.c.o app/scrcpy.p/src_sys_unix_process.c.o app/scrcpy.p/src_v4l2_sink.c.o app/scrcpy.p/src_usb_aoa_hid.c.o app/scrcpy.p/src_usb_hid_keyboard.c.o app/scrcpy.p/src_usb_hid_mouse.c.o app/scrcpy.p/src_usb_scrcpy_otg.c.o app/scrcpy.p/src_usb_screen_otg.c.o app/scrcpy.p/src_usb_usb.c.o -flto -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group /usr/lib/x86_64-linux-gnu/libavformat.so /usr/lib/x86_64-linux-gnu/libavcodec.so /usr/lib/x86_64-linux-gnu/libavutil.so /usr/lib/x86_64-linux-gnu/libSDL2.so /usr/lib/x86_64-linux-gnu/libavdevice.so /usr/lib/x86_64-linux-gnu/libusb-1.0.so -Wl,--end-group
during IPA pass: icf
lto1: internal compiler error: Segmentation fault
0x7fb40430451f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7fb4042ebd8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7fb4042ebe3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
lto-wrapper: fatal error: cc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

RadioactivePlays avatar Jun 17 '22 10:06 RadioactivePlays

Your compiler is crashing. You should report the bug to gcc as explained in the error message.

rom1v avatar Jun 17 '22 11:06 rom1v