当前位置: 首页 > news >正文

如何做网站豆瓣天津百度推广网络科技公司

如何做网站豆瓣,天津百度推广网络科技公司,商城 静态网站模板,淘宝上的网站建设能信吗ubuntu 20.04 搭建crash dump问题分析环境 1 安装依赖软件1.1 linux-dump1.2 kexec-tools1.3 安装crash工具1.4 安装gdb调试工具1.5 安装ubuntu内核调试符号1.5.1 GPG 秘钥导入1.5.2 添加仓库配置1.5.3 更新软件包1.5.4 下载和安装内核调试符号1.5.5 验证内核调试符号已经被安装… ubuntu 20.04 搭建crash dump问题分析环境 1 安装依赖软件1.1 linux-dump1.2 kexec-tools1.3 安装crash工具1.4 安装gdb调试工具1.5 安装ubuntu内核调试符号1.5.1 GPG 秘钥导入1.5.2 添加仓库配置1.5.3 更新软件包1.5.4 下载和安装内核调试符号1.5.5 验证内核调试符号已经被安装 1.6 配置转储内存大小 2 触发系统异常验证2.1 开启kdump服务2.2 查看kdump服务当前的状态2.3 手动触发crash dump2.3.1 切换为 root 用户2.3.2 触发crash dump 3 kernel dump文件分析3.1 crash dump文件的位置3.2 crash工具分析crash dump文件 4 遇到的问题以及解决办法4.1 makeinfo is missing on your system4.1.1 问题现象4.1.2 解决方法 4.2 crash工具和主机安装的gdb版本不一致导致的异常4.2.1 问题的现象4.2.2 解决办法 4.3 /dev/mem: Operation not permitted4.3.1 问题的现象4.3.2 解决方法 主机环境和内核版本信息 testtest:~/software/crash$ uname -r 5.15.0-74-generic testtest:~/software/crash$testtest:~/software/crash$ cat /etc/lsb-release DISTRIB_IDUbuntu DISTRIB_RELEASE20.04 DISTRIB_CODENAMEfocal DISTRIB_DESCRIPTIONUbuntu 20.04.6 LTS testtest:~/software/crash$1 安装依赖软件 参考了Ubuntu Kernel crash dump这篇文章 1.1 linux-dump sudo apt install linux-crashdump1.2 kexec-tools sudo apt-get install kexec-tools1.3 安装crash工具 sudo apt install crash1.4 安装gdb调试工具 sudo apt-get install gdb1.5 安装ubuntu内核调试符号 sudo apt-get install linux-image-$(uname -r)-dbgsym如果通过上面的命令安装ubuntu内核调试符号则需要通过下面的方法去安装参考文章安装ubuntu内核调试符号 1.5.1 GPG 秘钥导入 确保您拥有系统的 GPG 密钥。适用于16.04 及更高版本的 Ubuntu sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8CAB6595FDFF622对于旧的发布版本: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01.5.2 添加仓库配置 codename$(lsb_release -c | awk {print $2}) sudo tee /etc/apt/sources.list.d/ddebs.list EOF deb http://ddebs.ubuntu.com/ ${codename} main restricted universe multiverse deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse deb http://ddebs.ubuntu.com/ ${codename}-updates main restricted universe multiverse deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse EOF1.5.3 更新软件包 sudo apt-get update1.5.4 下载和安装内核调试符号 sudo apt-get install linux-image-$(uname -r)-dbgsym1.5.5 验证内核调试符号已经被安装 包含调试信息的文件名为 vmlinux-XXX-debug其中 XXX 是内核版本。该文件存储在 /usr/lib/debug/boot 目录下。 1.6 配置转储内存大小 修改配置/etc/default/grub.d/kdump-tools.cfg以支持kernel crash dump现场保存。 GRUB_CMDLINE_LINUX_DEFAULT$GRUB_CMDLINE_LINUX_DEFAULT crashkernel384M-:512M2 触发系统异常验证 2.1 开启kdump服务 systemctl start kdump-tools-dump.servicesystemctl enable kdump-tools-dump.service2.2 查看kdump服务当前的状态 testtest:~/software/crash$ service kdump-tools-dump status ● kdump-tools-dump.service - Kernel crash dump capture serviceLoaded: loaded (/lib/systemd/system/kdump-tools-dump.service; static; vendor preset: enabled)Active: active (exited) since Tue 2023-11-14 10:19:58 CST; 56s agoMain PID: 126662 (codeexited, status0/SUCCESS)Tasks: 0 (limit: 37610)Memory: 0BCGroup: /system.slice/kdump-tools-dump.service11月 14 10:19:58 test systemd[1]: Starting Kernel crash dump capture service... 11月 14 10:19:58 test kdump-tools[126662]: Starting kdump-tools: 11月 14 10:19:58 test kdump-tools[126669]: * Cannot change symbolic links when kdump is loaded 11月 14 10:19:58 test systemd[1]: Finished Kernel crash dump capture service. testtest:~/software/crash$2.3 手动触发crash dump 2.3.1 切换为 root 用户 sudo -s2.3.2 触发crash dump echo 1 /proc/sys/kernel/sysrqecho c /proc/sysrq-trigger3 kernel dump文件分析 3.1 crash dump文件的位置 testtest:~/software/crash$ ls /var/crash/ 202311132045 kexec_cmd linux-image-5.15.0-74-generic-202311132357.crash _opt_kingsoft_wps-office_office6_wpscloudsvr.1000.uploaded _usr_bin_crash.0.uploaded 202311132231 linux-image-5.15.0-74-generic-202311132045.crash _opt_kingsoft_wps-office_office6_wpscloudsvr.1000.crash _usr_bin_crash.0.crash 202311132357 linux-image-5.15.0-74-generic-202311132231.crash _opt_kingsoft_wps-office_office6_wpscloudsvr.1000.upload _usr_bin_crash.0.upload testtest:~/software/crash$3.2 crash工具分析crash dump文件 testtest:~/software/crash$ sudo crash -d /usr/bin/gdb /usr/lib/debug/boot/vmlinux-5.15.0-74-generic /var/crash/202311132357/dump.202311132357 crash 8.0.3 Copyright (C) 2002-2022 Red Hat, Inc. Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation Copyright (C) 1999-2006 Hewlett-Packard Co Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited Copyright (C) 2006, 2007 VA Linux Systems Japan K.K. Copyright (C) 2005, 2011, 2020-2022 NEC Corporation Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc. Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. Copyright (C) 2015, 2021 VMware, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter help copying to see the conditions. This program has absolutely no warranty. Enter help warranty for details.GNU gdb (GDB) 10.2 Copyright (C) 2021 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-pc-linux-gnu. Type show configuration for configuration details. 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...KERNEL: /usr/lib/debug/boot/vmlinux-5.15.0-74-genericDUMPFILE: /var/crash/202311132357/dump.202311132357 [PARTIAL DUMP]CPUS: 16DATE: Mon Nov 13 23:56:58 CST 2023UPTIME: 00:11:00 LOAD AVERAGE: 0.71, 0.84, 0.58TASKS: 1636NODENAME: testRELEASE: 5.15.0-74-genericVERSION: #81~20.04.2-Ubuntu SMP Fri May 26 19:56:20 UTC 2023MACHINE: x86_64 (2900 Mhz)MEMORY: 31.8 GBPANIC: Kernel panic - not syncing: sysrq triggered crashPID: 10269COMMAND: bashTASK: ffff89a4d1334d40 [THREAD_INFO: ffff89a4d1334d40]CPU: 0STATE: TASK_RUNNING (PANIC)crash bt PID: 10269 TASK: ffff89a4d1334d40 CPU: 0 COMMAND: bash#0 [ffff94d441397c48] machine_kexec at ffffffff9688afe0#1 [ffff94d441397ca8] __crash_kexec at ffffffff96998c02#2 [ffff94d441397d78] panic at ffffffff974cf4b6#3 [ffff94d441397df8] sysrq_handle_crash at ffffffff96feea5a#4 [ffff94d441397e08] __handle_sysrq.cold at ffffffff97524bf2#5 [ffff94d441397e50] write_sysrq_trigger at ffffffff96fef548#6 [ffff94d441397e68] proc_reg_write at ffffffff96c23b57#7 [ffff94d441397e88] vfs_write at ffffffff96b83a76#8 [ffff94d441397ec0] ksys_write at ffffffff96b85de7#9 [ffff94d441397f00] __x64_sys_write at ffffffff96b85e8a #10 [ffff94d441397f10] do_syscall_64 at ffffffff97571d39 #11 [ffff94d441397f28] do_syscall_64 at ffffffff97571d49 #12 [ffff94d441397f50] entry_SYSCALL_64_after_hwframe at ffffffff97600099RIP: 00007fc202171077 RSP: 00007ffe9fcff018 RFLAGS: 00000246RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fc202171077RDX: 0000000000000002 RSI: 000055c60be1a9e0 RDI: 0000000000000001RBP: 000055c60be1a9e0 R8: 000000000000000a R9: 0000000000000001R10: 000055c60b144017 R11: 0000000000000246 R12: 0000000000000002R13: 00007fc2022506a0 R14: 00007fc20224c4a0 R15: 00007fc20224b8a0ORIG_RAX: 0000000000000001 CS: 0033 SS: 002b crash4 遇到的问题以及解决办法 4.1 ‘makeinfo’ is missing on your system 4.1.1 问题现象 /home/test/software/crash/gdb-10.2/missing: line 81: makeinfo: command not found WARNING: makeinfo is missing on your system.You should only need it if you modified a .texi file, orany other file indirectly affecting the aspect of the manual.You might want to install the Texinfo package:http://www.gnu.org/software/texinfo/The spurious makeinfo call might also be the consequence ofusing a buggy make (AIX, DU, IRIX), in which case you mightwant to install GNU make:http://www.gnu.org/software/make/ make[5]: *** [Makefile:542: bfd.info] Error 127 make[4]: *** [Makefile:1643: info-recursive] Error 1 make[3]: *** [Makefile:2771: all-bfd] Error 2 make[3]: *** Waiting for unfinished jobs.... config.status: creating Makefile config.status: creating import/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing default commands make[2]: *** [Makefile:860: all] Error 2 crash build failed make[1]: *** [Makefile:263: gdb_merge] Error 1 make: *** [Makefile:254: all] Error 24.1.2 解决方法 sudo apt-get update sudo apt-get install texinfo4.2 crash工具和主机安装的gdb版本不一致导致的异常 4.2.1 问题的现象 GNU gdb (GDB) 7.6 Copyright (C) 2013 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-unknown-linux-gnu...WARNING: kernel relocated [344MB]: patching 145829 gdb minimal_symbol valuesplease wait... (patching 145829 gdb minimal_symbol values) Segmentation faulttesttest:~/software/crash$ gdb --version GNU gdb (Ubuntu 10.2-0ubuntu1~20.04~1) 10.2 Copyright (C) 2021 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. testtest:~/software/crash$4.2.2 解决办法 sudo apt purge crashgit clone https://github.com/crash-utility/crash.gitcd crashmake -j8 sudo make install crash --version4.3 /dev/mem: Operation not permitted 4.3.1 问题的现象 sudo crash /usr/lib/debug/boot/vmlinux-5.15.0-74-genericcrash 7.2.8 Copyright (C) 2002-2020 Red Hat, Inc. Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation Copyright (C) 1999-2006 Hewlett-Packard Co Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited Copyright (C) 2006, 2007 VA Linux Systems Japan K.K. Copyright (C) 2005, 2011 NEC Corporation Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc. Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter help copying to see the conditions. This program has absolutely no warranty. Enter help warranty for details.crash: /dev/mem: Operation not permitted4.3.2 解决方法 参考1.6节修改/etc/default/grub.d/kdump-tools.cfg文件添加下面的配置以支持 GRUB_CMDLINE_LINUX_DEFAULT$GRUB_CMDLINE_LINUX_DEFAULT crashkernel384M-:512M然后修改/dev/mem的权限 sudo chmod 777 /dev/mem
http://www.hkea.cn/news/14534888/

相关文章:

  • h5个人博客网站模板无锡制作网站公司简介
  • 用qq空间做网站优秀个人网页设计案例分析
  • 新版织梦腾讯3366小游戏门户网站模板源码甘肃省集约化网站建设
  • 惠州市建设工程交易中心网站网站页面跳转怎么做
  • 忻州市中小企业局网站产品展示类网站模板
  • 官方网站welcome怎么注册关于网站建设分类
  • 专业做胶粘剂招聘网站玉环市建设局网站
  • 长沙 网站建设品牌推荐做网站流量怎么赚钱吗
  • 联合易网做网站建设银行网站怎么开通手机通知
  • 亿创电力建设集团有限公司网站wordpress新建页面
  • 百度网站如何做drupal和wordpress
  • 建设工程监理考试网站广州企业网站哪家好
  • 手机网站制作吧网络营销是什么内容
  • 建设银行在网站上开通短信提醒wordpress会员卡系统
  • 中国门户网站有哪些一个空间可以做多个网站吗
  • 无锡网站建设网服装网站建设策划书的基本结构
  • 卢松松的网站专业的菏泽网站建设
  • 沧州大型网站建设免费个人网站建站申请一下
  • 电脑做系统ppt下载网站网络文化有限公司网站建设策划书
  • 夜场酒吧娱乐ktv类企业网站源码wordpress搭建的网站能干什么
  • 宁波网站建设联系电话查询网站建设方案意见
  • 珠海营销型网站做充值网站
  • 东莞做个网站国内最近新闻
  • 自微网站首页企业网站优化怎么做
  • 厦门海沧网站建设服装设计就业前景如何
  • 安徽富通建设集团有限公司网站北京网页设计 网页制作
  • 政务网站建设 紧急通知口碑最好的装修公司排行
  • 网站建设及推广的书深圳福田会展中心近期展会
  • 网站设计编程招聘网页设计师
  • 不用服务器做视频网站照片视频制作软件app