Memory dump
Kamilcuk opened this issue · comments
Found a bug? - We would like to help you and smash the bug away.
Describe the bug
Xfreerdp3 finished with:
[09:59:59:699] [37699:00009368] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::Video::Data::v08.01:10} OnOpen=(nil), OnClose=0x7c709a26bd30
[09:59:59:720] [37699:00009368] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::Video::Control::v08.01:9} OnOpen=(nil), OnClose=0x7c709a26bd70
[09:59:59:721] [37699:00009368] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::Geometry::v08.01:11} OnOpen=(nil), OnClose=0x7c709a28ad70
[10:00:00:25] [37699:00009344] [ERROR][com.winpr.crt] - [winpr_aligned_free]: _aligned_free: memory block was not allocated by _aligned_malloc!
[10:00:00:25] [37699:00009344] [ERROR][com.winpr.crt] - [winpr_aligned_free]: _aligned_free: memory block was not allocated by _aligned_malloc!
[10:00:00:25] [37699:00009344] [ERROR][com.winpr.crt] - [winpr_aligned_free]: _aligned_free: memory block was not allocated by _aligned_malloc!
[10:00:00:25] [37699:00009344] [ERROR][com.winpr.synch.event] - [SetEvent]: SetEvent: hEvent is not an event
[10:00:00:25] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [fatal_handler]: Caught signal 'Naruszenie ochrony pamięci' [11]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 0: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=winpr_backtrace [0x7c7099d15ee0]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 1: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=winpr_log_backtrace_ex [0x7c7099d187c0]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 2: dli_fname=/usr/lib/libfreerdp3.so.3 [0x7c7099e00000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 3: dli_fname=/usr/lib/libc.so.6 [0x7c7099abe000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 4: dli_fname=/usr/lib/libc.so.6 [0x7c7099abe000], dli_sname=sem_wait [0x7c7099b514b0]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 5: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=EnterCriticalSection [0x7c7099cec9e0]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 6: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=ArrayList_Clear [0x7c7099d1dab0]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 7: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=ArrayList_Free [0x7c7099d21c00]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 8: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=winpr_CloseThreadpool [0x7c7099d39100]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 9: dli_fname=/usr/lib/libfreerdp3.so.3 [0x7c7099e00000], dli_sname=yuv_context_free [0x7c7099fc5b70]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 10: dli_fname=/usr/lib/libfreerdp3.so.3 [0x7c7099e00000], dli_sname=h264_context_free [0x7c7099fc5c10]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 11: dli_fname=/usr/lib/libfreerdp-client3.so.3 [0x7c709a219000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 12: dli_fname=/usr/lib/libfreerdp-client3.so.3 [0x7c709a219000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 13: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=PubSub_OnEvent [0x7c7099d1d7b0]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 14: dli_fname=xfreerdp [0x618f7b4da000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 15: dli_fname=/usr/lib/libwinpr3.so.3 [0x7c7099ca0000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 16: dli_fname=/usr/lib/libc.so.6 [0x7c7099abe000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 17: dli_fname=/usr/lib/libc.so.6 [0x7c7099abe000], dli_sname=(null) [(nil)]
[10:00:00:26] [37699:00009344] [ERROR][com.freerdp.utils.signal] - [winpr_log_backtrace_ex]: 18: unresolvable, address=(nil)
./xfreerdp.sh: linia 153: 37699 Naruszenie ochrony pamięci (zrzut pamięci) "${rdp[@]}" "$@"
The "Naruszenie ochrony pamięci (zrzut pamięci)" means "segmentation fault (memory dump)", I happened to have Polish locale at this time.
To Reproduce
It "happened", maybe it will happen again, will see.
Expected behavior
It's a seg fault.
Application details
- FreeRDP version (
xfreerdp /version
)
$ xfreerdp --version
This is FreeRDP version 3.4.1-dev0 (8df13033d)
Keyboard Shortcuts:
<Right CTRL>
releases keyboard and mouse grab
<CTRL>+<ALT>+<Return>
toggles fullscreen state of the application
<CTRL>+<ALT>+c
toggles remote control in a remote assistance session
Action Script
Executes a predefined script on key press.
Should the script not exist it is ignored.
Scripts can be provided at the default localtion ~/.config/freerdp/action.sh or as command line argument /action:script:<path>
The script will receive the current key combination as argument.
The output of the script is parsed for 'key-local' which tells that the script used the key combination, otherwise the combination is forwarded to the remote.
- Command line used
xfreerdp /v:.. /d:.. /u:.. /p.. /cert:ignore /auth-pkg-list:ntlm,!kerberos /cache:bitmap:on,codec:rfx,glyph:on,offscreen:on /audio-mode:0 /auto-reconnect /network:lan /multitransport /log-level:INFO /compression-level:2 /gfx:RFX +geometry +title:RDP:GTS +video +aero +fonts +themes -wallpaper +clipboard +bpp:32 /window-position:0x0 /size:2560x1378
- Output of
xfreerdp /buildconfig
This is FreeRDP version 3.4.1-dev0 (8df13033d)
Build configuration: BUILD_TESTING=OFF WINPR_HAVE_AIO_H=1 WINPR_HAVE_EXECINFO_BACKTRACE=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS_FD=1 WINPR_HAVE_EXECINFO_HEADER=1 WINPR_HAVE_FCNTL_H=1 WINPR_HAVE_GETLOGIN_R=1 WINPR_HAVE_GETPWUID_R=1 WINPR_HAVE_INTTYPES_H=1 WINPR_HAVE_POLL_H=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIBS= WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_SYMBOL=1 WINPR_HAVE_STDBOOL_H=1 WINPR_HAVE_STDINT_H=1 WINPR_HAVE_STRNDUP=1 WINPR_HAVE_SYSLOG_H=1 WINPR_HAVE_SYS_EVENTFD_H=1 WINPR_HAVE_SYS_FILIO_H= WINPR_HAVE_SYS_SELECT_H=1 WINPR_HAVE_SYS_SOCKIO_H= WINPR_HAVE_SYS_TIMERFD_H=1 WINPR_HAVE_TM_GMTOFF=1 WINPR_HAVE_UNISTD_H=1 WINPR_HAVE_UNWIND_H=1 WITH_AAD=ON WITH_ABSOLUTE_PLUGIN_LOAD_PATHS=ON WITH_ADD_PLUGIN_TO_RPATH=OFF WITH_ALSA=ON WITH_BINARY_VERSIONING=OFF WITH_CAIRO=OFF WITH_CCACHE=ON WITH_CHANNELS=ON WITH_CLANG_FORMAT=ON WITH_CLIENT=ON WITH_CLIENT_AVAILABLE=1 WITH_CLIENT_CHANNELS=ON WITH_CLIENT_CHANNELS_AVAILABLE=1 WITH_CLIENT_COMMON=ON WITH_CLIENT_INTERFACE=OFF WITH_CLIENT_SDL=ON WITH_CLIENT_SDL_AVAILABLE=1 WITH_CUPS=ON WITH_DEBUG_ALL=OFF WITH_DEBUG_CAPABILITIES=OFF WITH_DEBUG_CERTIFICATE=OFF WITH_DEBUG_CHANNELS=OFF WITH_DEBUG_CLIPRDR=OFF WITH_DEBUG_CODECS=OFF WITH_DEBUG_DVC=OFF WITH_DEBUG_EVENTS=OFF WITH_DEBUG_KBD=OFF WITH_DEBUG_LICENSE=OFF WITH_DEBUG_MUTEX=OFF WITH_DEBUG_NEGO=OFF WITH_DEBUG_NLA=OFF WITH_DEBUG_NTLM=OFF WITH_DEBUG_RAIL=OFF WITH_DEBUG_RDP=OFF WITH_DEBUG_RDPDR=OFF WITH_DEBUG_RDPEI=OFF WITH_DEBUG_RDPGFX=OFF WITH_DEBUG_REDIR=OFF WITH_DEBUG_RFX=OFF WITH_DEBUG_RINGBUFFER=OFF WITH_DEBUG_SCARD=OFF WITH_DEBUG_SCHANNEL=OFF WITH_DEBUG_SDL_EVENTS=OFF WITH_DEBUG_SDL_KBD_EVENTS=OFF WITH_DEBUG_SND=OFF WITH_DEBUG_SVC=OFF WITH_DEBUG_SYMBOLS=OFF WITH_DEBUG_THREADS=OFF WITH_DEBUG_TIMEZONE=OFF WITH_DEBUG_TRANSPORT=OFF WITH_DEBUG_TSG=OFF WITH_DEBUG_TSMF=OFF WITH_DEBUG_TSMF_AVAILABLE=0 WITH_DEBUG_URBDRC=OFF WITH_DEBUG_WND=OFF WITH_DEBUG_X11=OFF WITH_DEBUG_X11_LOCAL_MOVESIZE=OFF WITH_DEBUG_XV=OFF WITH_DSP_EXPERIMENTAL=OFF WITH_DSP_FFMPEG=ON WITH_DSP_FFMPEG_AVAILABLE=1 WITH_EVENTFD_READ_WRITE=1 WITH_FAAC=OFF WITH_FAAD2=OFF WITH_FFMPEG=ON WITH_FREERDP_DEPRECATED=OFF WITH_FREERDP_DEPRECATED_COMMANDLINE=OFF WITH_FUSE=ON WITH_GFX_H264=ON WITH_GPROF=OFF WITH_GSM=OFF WITH_ICU=ON WITH_INTERNAL_MD4=OFF WITH_INTERNAL_MD5=OFF WITH_INTERNAL_RC4=OFF WITH_IPP=OFF WITH_JPEG=ON WITH_KRB5=ON WITH_KRB5_NO_NTLM_FALLBACK=OFF WITH_LAME=OFF WITH_LIBRARY_VERSIONING=ON WITH_LIBRESSL=OFF WITH_LODEPNG=OFF WITH_MACAUDIO=OFF WITH_MACAUDIO_AVAILABLE=0 WITH_MANPAGES=ON WITH_MBEDTLS=OFF WITH_NATIVE_SSPI=OFF WITH_NEON=OFF WITH_OPENCL=OFF WITH_OPENH264=OFF WITH_OPENSC_PKCS11_LINKED=OFF WITH_OPENSSL=ON WITH_OPUS=OFF WITH_OSS=ON WITH_PCSC=ON WITH_PKCS11=ON WITH_PLATFORM_SERVER=ON WITH_POLL=ON WITH_PROFILER=OFF WITH_PROXY=ON WITH_PROXY_APP=ON WITH_PROXY_EMULATE_SMARTCARD=OFF WITH_PROXY_MODULES=ON WITH_PULSE=ON WITH_RDTK=ON WITH_SAMPLE=ON WITH_SANITIZE_ADDRESS=OFF WITH_SANITIZE_ADDRESS_AVAILABLE=1 WITH_SANITIZE_MEMORY=OFF WITH_SANITIZE_MEMORY_AVAILABLE=1 WITH_SANITIZE_THREAD=OFF WITH_SANITIZE_THREAD_AVAILABLE=1 WITH_SDL_IMAGE_DIALOGS=OFF WITH_SDL_LINK_SHARED=ON WITH_SERVER=ON WITH_SERVER_CHANNELS=ON WITH_SERVER_INTERFACE=ON WITH_SHADOW=ON WITH_SMARTCARD_EMULATE=ON WITH_SMARTCARD_INSPECT=OFF WITH_SMARTCARD_PCSC=ON WITH_SOXR=OFF WITH_SSE2=OFF WITH_SWSCALE=ON WITH_SYSTEMD=ON WITH_THIRD_PARTY=OFF WITH_UNICODE_BUILTIN=OFF WITH_URIPARSER=OFF WITH_VAAPI=OFF WITH_VAAPI_AVAILABLE=1 WITH_VALGRIND_MEMCHECK=OFF WITH_VALGRIND_MEMCHECK_AVAILABLE=1 WITH_VERBOSE_WINPR_ASSERT=ON WITH_VIDEO_FFMPEG=ON WITH_VIDEO_FFMPEG_AVAILABLE=1 WITH_WAYLAND=ON WITH_WEBVIEW=ON WITH_WEBVIEW_QT=OFF WITH_WINPR_DEPRECATED=OFF WITH_WINPR_TOOLS=ON WITH_WIN_CONSOLE=ON WITH_X11=ON WITH_XCURSOR=ON WITH_XEXT=ON WITH_XFIXES=ON WITH_XI=ON WITH_XINERAMA=ON WITH_XRANDR=ON WITH_XRENDER=ON WITH_XV=ON
Build type: Release
CFLAGS: -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -Wall -fasynchronous-unwind-tables -fexceptions -fstack-protector-all -g -grecord-gcc-switches -Wl,-z,defs -Wl,-z,now -Wl,-z,relro -Werror=implicit-function-declaration -g -fvar-tracking-assignments -ffile-prefix-map=/home/kamil/.cache/yay/freerdp-git/src=/usr/src/debug/freerdp-git -Wall -Wpedantic -Wno-padded -Wno-cast-align -Wno-declaration-after-statement -fPIC -Wall -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -fno-omit-frame-pointer
Compiler: GNU, 13.2.1
Target architecture: x64
Keyboard Shortcuts:
<Right CTRL>
releases keyboard and mouse grab
<CTRL>+<ALT>+<Return>
toggles fullscreen state of the application
<CTRL>+<ALT>+c
toggles remote control in a remote assistance session
Action Script
Executes a predefined script on key press.
Should the script not exist it is ignored.
Scripts can be provided at the default localtion ~/.config/freerdp/action.sh or as command line argument /action:script:<path>
The script will receive the current key combination as argument.
The output of the script is parsed for 'key-local' which tells that the script used the key combination, otherwise the combination is forwarded to the remote.
- OS version connecting to (server side)
That's windows 11.
- If available the log output from a run with
/log-level:trace 2>&1 | tee log.txt
I'll check if it happens again.
- If you built it yourself add some notes which tag/commit/branch you have used, also your cmake parameters and compiler can help
$ LC_ALL=C pacman -Qi freerdp
Name : freerdp-git
Version : 3.4.0.r1.g8df13033d-1
Description : Free implementation of the Remote Desktop Protocol (RDP)
Architecture : x86_64
URL : https://github.com/FreeRDP/FreeRDP
Licenses : Apache
Groups : None
Provides : libfreerdp2.so libfreerdp-client2.so libfreerdp-server2 libfreerdp-shadow2.so
libfreerdp-shadow-subsystem2.so libwinpr2.so libwinpr-tools2.so libuwac0.so=0-64 freerdp
Depends On : glibc libcups libx11 libxcursor libxext libxdamage libxfixes libxkbcommon libxi libxinerama
libxkbfile libxrandr libxrender libxtst pcsclite wayland cjson fuse3 pkcs11-helper sdl2_ttf
webkit2gtk alsa-lib libasound.so=2-64 ffmpeg libavcodec.so=60-64 libavutil.so=58-64
libswresample.so=4-64 libswscale.so=7-64 icu libicuuc.so=74-64 libjpeg-turbo libjpeg.so libpulse
libpulse.so=0-64 libusb libusb-1.0.so=0-64 openssl libcrypto.so=3-64 libssl.so=3-64 pam
libpam.so=0-64 systemd-libs libsystemd.so
Optional Deps : None
Required By : None
Optional For : remmina
Conflicts With : freerdp
Replaces : None
Installed Size : 40.69 MiB
Packager : Kamil Cukrowski <kamilcukrowski@gmail.com>
Build Date : Thu Mar 14 11:47:57 2024
Install Date : Thu Mar 14 11:49:47 2024
Install Reason : Explicitly installed
Install Script : No
Validated By : None
Environment (please complete the following information):
- OS: [e.g. Linux/Windows/Android/..] Archlinux
- Version/Distribution: [e.g. Debian 10, Windows 2008, Android 10] Latest.
- Architecture: [amd64, arm]: amd64
Additional context
I'll update xfreerdp from git, this is just FYI. If it is not usefull, feel free to close it.
Thanks for making xfreerdp!
can you retry with a current version?
the commit is from last month and we´ve been busy cleaning up a lot of issues in our ongoing code hardening session
so closing for the time being, ping me if it happens again.