Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Mosdns cannot run, reporting Segmentation fault. | Mosdns无法启动,输出Segmentation fault #857

Open
4 tasks done
cca2878 opened this issue Nov 23, 2024 · 1 comment

Comments

@cca2878
Copy link

cca2878 commented Nov 23, 2024

在提交之前,请确认

  • 我已经尝试搜索过 Issue ,但没有找到相关问题。
  • 我正在使用最新的 mosdns 版本(或者最新的 commit),问题依旧存在。
  • 我仔细看过 wiki 后仍然无法自行解决该问题。
  • 我非常确定这是 mosdns 核心的问题。(如果是通过第三方衍生软件使用 mosdns 核心,不确定问题源头时,请先向衍生软件开发者提交问题。)

mosdns 版本

5.3.3-r1

操作系统

ImmortalWrt 24.10-SNAPSHOT x86/64

Bug 描述和复现步骤

Description | 描述:

Just mosdns cannot start up.
Even command mosdns version will also report 'segfault'.

就是无法启动。
即使是mosdns version命令也会报错“segfault”

Possibly useful information | 可能有用的信息:

sbwml/luci-app-mosdns#277

  • Now compiler 'gcc13.3' has be tested and mosdns still doesn't work.
    现在gcc13.3编译器也已经被测试过,mosdns仍然无法启动。
  • Firmware is compiled with option PIE (Position-Independent Executable) and SSP (Stack-Smashing Protection) enabled.
    编译固件时启用了PIE和SSP选项。

使用的配置文件

Null

mosdns 的 log 记录

Sat Nov 23 16:17:10 2024 kern.info kernel: [  705.777664] mosdns[10850]: segfault at 56289463f030 ip 00007f889bec8a93 sp 00007ffe99185530 error 6 in libc.so[7f889be79000+54000] likely on CPU 1 (core 1, socket 0)
Sat Nov 23 16:17:10 2024 kern.info kernel: [  705.794584] Code: 48 8b 44 24 28 48 01 f0 48 89 c6 48 8b 44 24 18 48 89 30 e9 92 fd ff ff 48 8b 4c 24 58 48 8b 44 24 28 48 01 c8 48 8b 4c 24 18 <48> 89 01 e9 78 fd ff ff 49 8b 57 10 48 8b 7c 24 18 67 e8 d1 67 ff
@Zerorigin
Copy link

手动下载的 mosdns core 核心?
如果是的话,有可能是不小心下载到不同 ARCH 架构的核心了。
(下 amd64 架构的核心,不小心下到 arm64 架构的核心)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants