nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
368 stars 19 forks source link

Server crashes the session upon opening the browser link #125

Closed davidbudzynski closed 1 year ago

davidbudzynski commented 1 year ago

Describe the bug

Opening the link on startup (tested in Firefox developer edition) crashes the entire R session:

httpgd server running at:
  http://127.0.0.1:42417/live?token=aoNjDRES
> /usr/include/c++/12.2.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>; reference = unsigned int&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
[2]    251117 IOT instruction (core dumped)  R --quiet --no-save --no-restore

To Reproduce

  1. run httpgd loaded from your .Rprofile and instantiated on startup
  2. Click or copy the link and open in the browser

Environment

Session info:

> sessionInfo()
R version 4.2.2 (2022-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Arch Linux

Matrix products: default
BLAS:   /usr/lib/libopenblasp-r0.3.21.so
LAPACK: /usr/lib/liblapack.so.3.11.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] httpgd_2.0.0.9000

loaded via a namespace (and not attached):
[1] compiler_4.2.2    parallelly_1.32.1 parallel_4.2.2    tools_4.2.2
[5] unigd_0.1.0.9000  systemfonts_1.0.4
nx10 commented 1 year ago

What compiler did you use to compile the package? It seems like somehow an instruction was compiled that is not compatible with your CPU. It also looks like it's coming from the c++ standard library used.

Edit: I would suggest checking if there is something unusual in your R compiler setup and if not downgrading to a more stable compiler and re-install both unigd and httpgd.

davidbudzynski commented 1 year ago

I didn’t mess with any compiler settings so it should be using GCC to compile it. I’ll try reinstalling the package but I didn’t change my hardware parts either so it should all work fine.

On Mon, 12 Dec 2022 at 12:11 Florian Rupprecht @.***> wrote:

What compiler did you use to compile the package? It seems like somehow an instruction was compiled that is not compatible with your CPU. It also looks like it's coming from the c++ standard library used.

— Reply to this email directly, view it on GitHub https://github.com/nx10/httpgd/issues/125#issuecomment-1346366666, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANPFTKIL7UBBREF342DXOY3WM4I6HANCNFSM6AAAAAAS32HAEY . You are receiving this because you authored the thread.Message ID: @.***>

nx10 commented 1 year ago

Can you attach the complete install/compile output? And gcc --version

davidbudzynski commented 1 year ago

It looks like after reinstalling my issue is gone. Here's the output of the compilation in case you're interested:

install.packages("httpgd")
Installing package into ‘/home/david/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.org/src/contrib/httpgd_1.3.0.tar.gz'
Content type 'application/x-gzip' length 391943 bytes (382 KB)
==================================================
downloaded 382 KB

httpgd server running at:
  http://127.0.0.1:45411/live?token=nSLcJZrr
* installing *source* package ‘httpgd’ ...
** package ‘httpgd’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread
Using PKG_LIBS=-lcairo -lfreetype
** libs
rm -f httpgd.so AsyncLater.o Base64.o DrawData.o Httpgd.o HttpgdApiAsync.o HttpgdCompress.o HttpgdDataStore.o HttpgdDev.o HttpgdRng.o HttpgdWebServer.o PlotHistory.o RendererCairo.o RendererJson.o RendererManager.o RendererMeta.o RendererStrings.o RendererSvg.o RendererTikZ.o cpp11.o devGeneric.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c AsyncLater.cpp -o AsyncLater.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c Base64.cpp -o Base64.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c DrawData.cpp -o DrawData.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c Httpgd.cpp -o Httpgd.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c HttpgdApiAsync.cpp -o HttpgdApiAsync.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c HttpgdCompress.cpp -o HttpgdCompress.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c HttpgdDataStore.cpp -o HttpgdDataStore.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c HttpgdDev.cpp -o HttpgdDev.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c HttpgdRng.cpp -o HttpgdRng.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c HttpgdWebServer.cpp -o HttpgdWebServer.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c PlotHistory.cpp -o PlotHistory.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RendererCairo.cpp -o RendererCairo.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RendererJson.cpp -o RendererJson.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RendererManager.cpp -o RendererManager.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RendererMeta.cpp -o RendererMeta.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RendererStrings.cpp -o RendererStrings.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RendererSvg.cpp -o RendererSvg.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RendererTikZ.cpp -o RendererTikZ.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c cpp11.cpp -o cpp11.o
g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -pthread  -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/cpp11/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/later/include' -I'/home/david/R/x86_64-pc-linux-gnu-library/4.2/systemfonts/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c devGeneric.cpp -o devGeneric.o
g++ -std=gnu++17 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o httpgd.so AsyncLater.o Base64.o DrawData.o Httpgd.o HttpgdApiAsync.o HttpgdCompress.o HttpgdDataStore.o HttpgdDev.o HttpgdRng.o HttpgdWebServer.o PlotHistory.o RendererCairo.o RendererJson.o RendererManager.o RendererMeta.o RendererStrings.o RendererSvg.o RendererTikZ.o cpp11.o devGeneric.o -lcairo -lfreetype -lpng -lz -L/usr/lib64/R/lib -lR
installing to /home/david/R/x86_64-pc-linux-gnu-library/4.2/00LOCK-httpgd/00new/httpgd/libs
** R
** inst
** byte-compile and prepare package for lazy loading
httpgd server running at:
  http://127.0.0.1:46553/live?token=h2SCi7Y3
Server closing... Closed.
** help
*** installing help indices
*** copying figures
** building package indices
httpgd server running at:
  http://127.0.0.1:47785/live?token=LMj1TclT
Server closing... Closed.
** installing vignettes
Warning in read.dcf(file.path(p, "DESCRIPTION"), c("Package", "Version")) :
  cannot open compressed file '/home/david/R/x86_64-pc-linux-gnu-library/4.2/httpgd/DESCRIPTION', probable reason 'No such file or directory'
** testing if installed package can be loaded from temporary location
httpgd server running at:
  http://127.0.0.1:53753/live?token=hZZl3Ovj
Server closing... Closed.
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
httpgd server running at:
  http://127.0.0.1:60903/live?token=kKqsXmNW
Server closing... Closed.
** testing if installed package keeps a record of temporary installation path
* DONE (httpgd)

The downloaded source packages are in
        ‘/tmp/Rtmp4w4hvS/downloaded_packages’

my gcc version:

gcc (GCC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'm closing this but if you spot anyting unusual, feel free to re-open.