[Bug 1926387] Re: Probable libc issue causing executable built with cmake crashes

Balint Reczey 1926387 at bugs.launchpad.net
Mon May 31 18:17:50 UTC 2021


The executable crashes with other versions of libc6 as well, such as
2.31-0ubuntu6 from Focal's development.

** Changed in: glibc (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1926387

Title:
  Probable libc issue causing executable built with cmake crashes

Status in glibc package in Ubuntu:
  Invalid

Bug description:
  I'm using Ubuntu 20.04.2 LTS and crafting demo apps for studying purpose. Yesterday everything is OK, the executable built by cmake got no error and return exit codes programmatically.
  This morning I performed `apt update & apt upgrade`:

  ```
  正在读取软件包列表... 完成
  正在分析软件包的依赖关系树
  正在读取状态信息... 完成
  正在计算更新... 完成
  下列软件包将被升级:
    apt-fast geogebra-classic glibc-doc gnome-shell-extension-appindicator
    grub-common grub-efi-amd64-bin grub-efi-amd64-signed grub-pc grub-pc-bin
    grub2-common kicad kicad-demos kicad-footprints kicad-libraries
    kicad-packages3d kicad-symbols libc-bin libc-dev-bin libc6 libc6:i386
    libc6-dbg libc6-dev libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32
    libldap-2.4-2 libldap-2.4-2:i386 libldap-common locales python-pip-whl
    python3-pip typora
  升级了 33 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
  需要下载 577 MB 的归档。
  解压缩后会消耗 2,938 kB 的额外空间。
  您希望继续执行吗? [Y/n]
  获取:1 https://typora.io/linux ./ typora 0.10.4-1 [67.2 MB]
  获取:2 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc6-dev-x32 amd64 2.31-0ubuntu9.3 [1,977 kB]
  获取:3 http://www.geogebra.net/linux stable/main amd64 geogebra-classic amd64 6.0.639.0-202104221123 [69.3 MB]
  获取:4 https://launchpad.proxy.ustclug.org/apt-fast/stable/ubuntu focal/main amd64 apt-fast all 1.9.11-1~ubuntu20.04.1 [35.7 kB]
  获取:5 https://launchpad.proxy.ustclug.org/kicad/kicad-5.1-releases/ubuntu focal/main amd64 kicad amd64 5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1 [22.9 MB]
  获取:6 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc6-dev-i386 amd64 2.31-0ubuntu9.3 [1,903 kB]
  获取:7 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc6-i386 amd64 2.31-0ubuntu9.3 [2,724 kB]
  获取:8 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc6-dev amd64 2.31-0ubuntu9.3 [2,520 kB]
  获取:9 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc-dev-bin amd64 2.31-0ubuntu9.3 [71.8 kB]
  获取:10 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc6-x32 amd64 2.31-0ubuntu9.3 [2,778 kB]
  获取:11 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc6-dbg amd64 2.31-0ubuntu9.3 [10.5 MB]
  获取:12 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc6 amd64 2.31-0ubuntu9.3 [2,713 kB]
  获取:13 https://mirrors.hit.edu.cn/ubuntu focal-updates/main i386 libc6 i386 2.31-0ubuntu9.3 [2,571 kB]
  获取:14 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 locales all 2.31-0ubuntu9.3 [3,862 kB]
  获取:15 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libc-bin amd64 2.31-0ubuntu9.3 [635 kB]
  获取:16 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 glibc-doc all 2.31-0ubuntu9.3 [20.4 kB]
  获取:17 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 gnome-shell-extension-appindicator all 33.1-0ubuntu0.20.04.2 [27.7 kB]
  获取:18 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 grub-pc amd64 2.04-1ubuntu26.11 [125 kB]
  获取:19 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 grub2-common amd64 2.04-1ubuntu26.11 [590 kB]
  获取:20 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 grub-pc-bin amd64 2.04-1ubuntu26.11 [971 kB]
  获取:21 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 grub-efi-amd64-signed amd64 1.167+2.04-1ubuntu44 [482 kB]
  获取:22 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 grub-efi-amd64-bin amd64 2.04-1ubuntu44 [727 kB]
  获取:23 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 grub-common amd64 2.04-1ubuntu26.11 [1,875 kB]
  获取:24 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libldap-common all 2.4.49+dfsg-2ubuntu1.8 [16.6 kB]
  获取:25 https://mirrors.hit.edu.cn/ubuntu focal-updates/main amd64 libldap-2.4-2 amd64 2.4.49+dfsg-2ubuntu1.8 [155 kB]
  获取:26 https://mirrors.hit.edu.cn/ubuntu focal-updates/main i386 libldap-2.4-2 i386 2.4.49+dfsg-2ubuntu1.8 [168 kB]
  获取:27 https://mirrors.hit.edu.cn/ubuntu focal-updates/universe amd64 python3-pip all 20.0.2-5ubuntu1.3 [230 kB]
  获取:28 https://mirrors.hit.edu.cn/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.3 [1,806 kB]
  获取:29 https://launchpad.proxy.ustclug.org/kicad/kicad-5.1-releases/ubuntu focal/main amd64 kicad-demos all 5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1 [987 kB]
  获取:30 https://launchpad.proxy.ustclug.org/kicad/kicad-5.1-releases/ubuntu focal/main amd64 kicad-footprints all 5.1.10-202104251634+302ac78ba~10~ubuntu20.04.1 [2,723 kB]
  获取:31 https://launchpad.proxy.ustclug.org/kicad/kicad-5.1-releases/ubuntu focal/main amd64 kicad-libraries all 5.1.10-202104251635+7~ubuntu20.04.1 [1,408 B]
  获取:32 https://launchpad.proxy.ustclug.org/kicad/kicad-5.1-releases/ubuntu focal/main amd64 kicad-packages3d all 5.1.10-202104261003+7abe02f3~7~ubuntu20.04.1 [373 MB]
  获取:32 https://launchpad.proxy.ustclug.org/kicad/kicad-5.1-releases/ubuntu focal/main amd64 kicad-packages3d all 5.1.10-202104261003+7abe02f3~7~ubuntu20.04.1 [373 MB]
  获取:33 https://launchpad.proxy.ustclug.org/kicad/kicad-5.1-releases/ubuntu focal/main amd64 kicad-symbols all 5.1.10-202104251637+6dec5004~6~ubuntu20.04.1 [1,162 kB]
  已下载 434 MB,耗时 16分 51秒 (430 kB/s)
  正在从软件包中解出模板:100%
  正在预设定软件包 ...
  (正在读取数据库 ... 系统当前共安装有 381638 个文件和目录。)
  准备解压 .../0-libc6-dev-x32_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc6-dev-x32 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../1-libc6-dev-i386_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc6-dev-i386 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../2-libc6-i386_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc6-i386 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  被已安装的软件包 libc6:i386 (2.31-0ubuntu9.2) 中的文件替换了...
  准备解压 .../3-libc6-dev_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc6-dev:amd64 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../4-libc-dev-bin_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc-dev-bin (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../5-libc6-x32_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc6-x32 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../6-libc6-dbg_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc6-dbg:amd64 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../7-libc6_2.31-0ubuntu9.3_i386.deb  ...
  正在反配置 libc6:amd64 (2.31-0ubuntu9.2) ...
  正在解压 libc6:i386 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../8-libc6_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc6:amd64 (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  正在设置 libc6:amd64 (2.31-0ubuntu9.3) ...
  (正在读取数据库 ... 系统当前共安装有 381638 个文件和目录。)
  准备解压 .../locales_2.31-0ubuntu9.3_all.deb  ...
  正在解压 locales (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../libc-bin_2.31-0ubuntu9.3_amd64.deb  ...
  正在解压 libc-bin (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  正在设置 libc-bin (2.31-0ubuntu9.3) ...
  (正在读取数据库 ... 系统当前共安装有 381638 个文件和目录。)
  准备解压 .../00-geogebra-classic_6.0.639.0-202104221123_amd64.deb  ...
  正在解压 geogebra-classic (6.0.639.0-202104221123) 并覆盖 (6.0.637.0-20210413052
  3) ...
  准备解压 .../01-apt-fast_1.9.11-1~ubuntu20.04.1_all.deb  ...
  正在解压 apt-fast (1.9.11-1~ubuntu20.04.1) 并覆盖 (1.9.10-1~ubuntu20.04.1) ...
  准备解压 .../02-glibc-doc_2.31-0ubuntu9.3_all.deb  ...
  正在解压 glibc-doc (2.31-0ubuntu9.3) 并覆盖 (2.31-0ubuntu9.2) ...
  准备解压 .../03-gnome-shell-extension-appindicator_33.1-0ubuntu0.20.04.2_all.deb
    ...
  正在解压 gnome-shell-extension-appindicator (33.1-0ubuntu0.20.04.2) 并覆盖 (33.1
  -0ubuntu0.20.04.1) ...
  准备解压 .../04-grub-pc_2.04-1ubuntu26.11_amd64.deb  ...
  正在解压 grub-pc (2.04-1ubuntu26.11) 并覆盖 (2.04-1ubuntu26.9) ...
  准备解压 .../05-grub2-common_2.04-1ubuntu26.11_amd64.deb  ...
  正在解压 grub2-common (2.04-1ubuntu26.11) 并覆盖 (2.04-1ubuntu26.9) ...
  准备解压 .../06-grub-pc-bin_2.04-1ubuntu26.11_amd64.deb  ...
  正在解压 grub-pc-bin (2.04-1ubuntu26.11) 并覆盖 (2.04-1ubuntu26.9) ...
  准备解压 .../07-grub-efi-amd64-signed_1.167+2.04-1ubuntu44_amd64.deb  ...
  正在解压 grub-efi-amd64-signed (1.167+2.04-1ubuntu44) 并覆盖 (1.142.11+2.04-1ubu
  ntu26.9) ...
  准备解压 .../08-grub-efi-amd64-bin_2.04-1ubuntu44_amd64.deb  ...
  正在解压 grub-efi-amd64-bin (2.04-1ubuntu44) 并覆盖 (2.04-1ubuntu26.9) ...
  准备解压 .../09-grub-common_2.04-1ubuntu26.11_amd64.deb  ...
  正在解压 grub-common (2.04-1ubuntu26.11) 并覆盖 (2.04-1ubuntu26.9) ...
  准备解压 .../10-kicad_5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1_amd64.deb
   ...
  正在解压 kicad (5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1) 并覆盖 (5.1.9-2
  02103250833+73d0e3b20d~88~ubuntu20.04.1) ...
  准备解压 .../11-kicad-demos_5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1_all.
  deb  ...
  正在解压 kicad-demos (5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1) 并覆盖 (5
  .1.9-202103250833+73d0e3b20d~88~ubuntu20.04.1) ...
  准备解压 .../12-kicad-footprints_5.1.10-202104251634+302ac78ba~10~ubuntu20.04.1_
  all.deb  ...
  正在解压 kicad-footprints (5.1.10-202104251634+302ac78ba~10~ubuntu20.04.1) 并覆
  盖 (5.1.9-202012230803+302ac78b~10~ubuntu20.04.1) ...
  准备解压 .../13-kicad-libraries_5.1.10-202104251635+7~ubuntu20.04.1_all.deb  ...
  正在解压 kicad-libraries (5.1.10-202104251635+7~ubuntu20.04.1) 并覆盖 (5.1.9-202
  012230805+7~ubuntu20.04.1) ...
  准备解压 .../14-kicad-packages3d_5.1.10-202104261003+7abe02f3~7~ubuntu20.04.1_al
  l.deb  ...
  正在解压 kicad-packages3d (5.1.10-202104261003+7abe02f3~7~ubuntu20.04.1) 并覆盖
  (5.1.9-202012230825+7abe02f3~7~ubuntu20.04.1) ...
  准备解压 .../15-kicad-symbols_5.1.10-202104251637+6dec5004~6~ubuntu20.04.1_all.d
  eb  ...
  正在解压 kicad-symbols (5.1.10-202104251637+6dec5004~6~ubuntu20.04.1) 并覆盖 (5.
  1.9-202012230806+6dec5004~6~ubuntu20.04.1) ...
  准备解压 .../16-libldap-common_2.4.49+dfsg-2ubuntu1.8_all.deb  ...
  正在解压 libldap-common (2.4.49+dfsg-2ubuntu1.8) 并覆盖 (2.4.49+dfsg-2ubuntu1.7)
   ...
  准备解压 .../17-libldap-2.4-2_2.4.49+dfsg-2ubuntu1.8_amd64.deb  ...
  正在反配置 libldap-2.4-2:i386 (2.4.49+dfsg-2ubuntu1.7) ...
  正在解压 libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) 并覆盖 (2.4.49+dfsg-2ubunt
  u1.7) ...
  准备解压 .../18-libldap-2.4-2_2.4.49+dfsg-2ubuntu1.8_i386.deb  ...
  正在解压 libldap-2.4-2:i386 (2.4.49+dfsg-2ubuntu1.8) 并覆盖 (2.4.49+dfsg-2ubuntu
  1.7) ...
  准备解压 .../19-python3-pip_20.0.2-5ubuntu1.3_all.deb  ...
  正在解压 python3-pip (20.0.2-5ubuntu1.3) 并覆盖 (20.0.2-5ubuntu1.1) ...
  准备解压 .../20-python-pip-whl_20.0.2-5ubuntu1.3_all.deb  ...
  正在解压 python-pip-whl (20.0.2-5ubuntu1.3) 并覆盖 (20.0.2-5ubuntu1.1) ...
  准备解压 .../21-typora_0.10.4-1_amd64.deb  ...
  正在解压 typora (0.10.4-1) 并覆盖 (0.9.98-1) ...
  正在设置 geogebra-classic (6.0.639.0-202104221123) ...
  正在设置 kicad-footprints (5.1.10-202104251634+302ac78ba~10~ubuntu20.04.1) ...
  正在设置 kicad-packages3d (5.1.10-202104261003+7abe02f3~7~ubuntu20.04.1) ...
  正在设置 kicad-demos (5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1) ...
  正在设置 locales (2.31-0ubuntu9.3) ...
  Generating locales (this might take a while)...
    en_AG.UTF-8... done
    en_AU.UTF-8... done
    en_BW.UTF-8... done
    en_CA.UTF-8... done
    en_DK.UTF-8... done
    en_GB.UTF-8... done
    en_HK.UTF-8... done
    en_IE.UTF-8... done
    en_IL.UTF-8... done
    en_IN.UTF-8... done
    en_NG.UTF-8... done
    en_NZ.UTF-8... done
    en_PH.UTF-8... done
    en_SG.UTF-8... done
    en_US.UTF-8... done
    en_ZA.UTF-8... done
    en_ZM.UTF-8... done
    en_ZW.UTF-8... done
    ja_JP.UTF-8... done
    zh_CN.UTF-8... done
    zh_HK.UTF-8... done
    zh_SG.UTF-8... done
    zh_TW.UTF-8... done
  Generation complete.
  正在设置 libldap-common (2.4.49+dfsg-2ubuntu1.8) ...
  正在设置 libc6-dbg:amd64 (2.31-0ubuntu9.3) ...
  正在设置 libc6-x32 (2.31-0ubuntu9.3) ...
  正在设置 grub-common (2.04-1ubuntu26.11) ...
  update-rc.d: warning: start and stop actions are no longer supported; falling ba
  ck to defaults
  正在设置 glibc-doc (2.31-0ubuntu9.3) ...
  正在设置 kicad-symbols (5.1.10-202104251637+6dec5004~6~ubuntu20.04.1) ...
  正在设置 kicad (5.1.10-202104251637+88a1d61d58~88~ubuntu20.04.1) ...
  正在设置 libc6:i386 (2.31-0ubuntu9.3) ...
  正在设置 kicad-libraries (5.1.10-202104251635+7~ubuntu20.04.1) ...
  正在设置 gnome-shell-extension-appindicator (33.1-0ubuntu0.20.04.2) ...
  正在设置 typora (0.10.4-1) ...
  正在设置 libc6-i386 (2.31-0ubuntu9.3) ...
  正在设置 python-pip-whl (20.0.2-5ubuntu1.3) ...
  正在设置 grub-efi-amd64-bin (2.04-1ubuntu44) ...
  正在设置 libc-dev-bin (2.31-0ubuntu9.3) ...
  正在设置 apt-fast (1.9.11-1~ubuntu20.04.1) ...
  正在设置 grub2-common (2.04-1ubuntu26.11) ...
  正在设置 libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) ...
  正在设置 libldap-2.4-2:i386 (2.4.49+dfsg-2ubuntu1.8) ...
  正在设置 grub-pc-bin (2.04-1ubuntu26.11) ...
  正在设置 grub-pc (2.04-1ubuntu26.11) ...
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  正在生成 grub 配置文件 ...
  找到 Linux 镜像:/boot/vmlinuz-5.8.0-50-generic
  找到 initrd 镜像:/boot/initrd.img-5.8.0-50-generic
  找到 Linux 镜像:/boot/vmlinuz-5.8.0-49-generic
  找到 initrd 镜像:/boot/initrd.img-5.8.0-49-generic
  找到 Windows Boot Manager 位于 /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
  Adding boot menu entry for UEFI Firmware Settings
  完成
  正在设置 python3-pip (20.0.2-5ubuntu1.3) ...
  正在设置 libc6-dev:amd64 (2.31-0ubuntu9.3) ...
  正在设置 libc6-dev-i386 (2.31-0ubuntu9.3) ...
  正在设置 grub-efi-amd64-signed (1.167+2.04-1ubuntu44) ...
  Trying to migrate /boot/efi into esp config
  Installing grub to /boot/efi.
  正在为 x86_64-efi 平台进行安装。
  安装完成。没有报告错误。
  正在设置 libc6-dev-x32 (2.31-0ubuntu9.3) ...
  正在处理用于 install-info (6.7.0.dfsg.2-5) 的触发器 ...
  正在处理用于 bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) 的触发器 ...
  Rebuilding /usr/share/applications/bamf-2.index...
  正在处理用于 desktop-file-utils (0.24-1ubuntu3) 的触发器 ...
  正在处理用于 mime-support (3.64ubuntu1) 的触发器 ...
  正在处理用于 hicolor-icon-theme (0.17-2) 的触发器 ...
  正在处理用于 gnome-menus (3.36.0-1ubuntu1) 的触发器 ...
  正在处理用于 libc-bin (2.31-0ubuntu9.3) 的触发器 ...
  正在处理用于 systemd (245.4-4ubuntu3.6) 的触发器 ...
  正在处理用于 man-db (2.9.1-1) 的触发器 ...
  正在处理用于 shared-mime-info (1.15-1) 的触发器 ...
  ```

  Then the newly built executable won't run and prints these:

  ```
  $ ./hs_launcher
  /home/donmor/temp/hs_launcher/cmake-build-debug/hs_launcher: error while loading shared libraries: __vdso_gettimeofday: invalid mode for dlopen(): Invalid argument
  ```

  and return an exit code 127. I rolled back my code and it still
  crashes.

  According to vdso(7), the vdso things is a part of libc-dev package,
  which is built from glibc source package.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: libc6 2.31-0ubuntu9.3
  ProcVersionSignature: Ubuntu 5.8.0-50.56~20.04.1-generic 5.8.18
  Uname: Linux 5.8.0-50-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.16
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: Unity:Unity7:ubuntu
  Date: Wed Apr 28 09:43:04 2021
  InstallationDate: Installed on 2021-03-15 (43 days ago)
  InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
  SourcePackage: glibc
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1926387/+subscriptions



More information about the foundations-bugs mailing list