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

报错 Signal Segmentation fault received, exiting... #136

Open
PC12138-Z opened this issue Sep 12, 2024 · 16 comments
Open

报错 Signal Segmentation fault received, exiting... #136

PC12138-Z opened this issue Sep 12, 2024 · 16 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@PC12138-Z
Copy link

新版本UA2F 开启之后会拦截经过路由的所有数据,我关了ua2f就正常上网了,不知道是不是不兼容的问题,我的另一个路由就是没事,是正常的,之前旧版本(应该是4.6或者4.7版本)就没事两个路由都能正常使用。

我发现这问题之后我以为是新版本缺少依赖,所以我编译新固件的时候把ua2f也编译进去了,结果问题依旧,查log显示正常开启,实际上也是上不了网,里面有一条报错Kernel does not support packet timestamps,不知道是不是内核的原因

屏幕截图 2024-09-12 095005
屏幕截图 2024-09-12 094637

@Zxilly Zxilly added the bug Something isn't working label Sep 12, 2024
@Zxilly
Copy link
Owner

Zxilly commented Sep 12, 2024

有哪里出bug了,但是不太清楚什么原因

@Zxilly
Copy link
Owner

Zxilly commented Sep 12, 2024

不过你是怎么编译的,为啥git相关的信息都是空的

@PC12138-Z
Copy link
Author

不过你是怎么编译的,为啥git相关的信息都是空的

我把4.8.3到4.8.0版本都装了一遍,就4.8.0的不会显示git为空,4.8.3git为全空,4.8.2-4.8.1为Git branch 空。

最后一张为4.8.0,但是我安装4.8.0之后正常运行一会还是会报错 Signal Segmentation fault received, exiting...

屏幕截图 2024-09-12 095005
屏幕截图 2024-09-12 165514
屏幕截图 2024-09-12 165809
屏幕截图 2024-09-12 170809

@PC12138-Z
Copy link
Author

有哪里出bug了,但是不太清

换成4.7.1就正常了,4.8.0以上版本都有问题,启用ua2f后,路由之后的设备会断网,但是路由没断网,估计是把经过路由的数据都拦截了。
不知道是不是 Kernel does not support packet timestamps 的原因,因为4.7.1没有报错Kernel does not support packet timestamps,4.8.0的git不会为空,但是会报Kernel does not support packet timestamps

@Zxilly
Copy link
Owner

Zxilly commented Sep 12, 2024

命令行执行 ulimit -c unlimited 开启 coredump, 崩溃发生后上传 /tmp 目录下的 .core 文件和 /usr/bin/ua2f,打个 zip 包可以传 GitHub Issue 里

@Zxilly
Copy link
Owner

Zxilly commented Sep 12, 2024

4.8.0 以上主要是加了一个fallback支持,可能哪里没写好

@PC12138-Z
Copy link
Author

命令行执行 ulimit -c unlimited 开启 coredump, 崩溃发生后上传 /tmp 目录下的 .core 文件和 /usr/bin/ua2f,打个 zip 包可以传 GitHub Issue 里

coredump 没有抓到东西,先把ua2f文件给你发了
ua2f.zip

@Zxilly
Copy link
Owner

Zxilly commented Sep 12, 2024

ulimit -c unlimited
echo "/tmp/%e-%p-%t.core" > /proc/sys/kernel/core_pattern
echo "1" > /proc/sys/fs/suid_dumpable

如果没有core文件,试试以上命令

@PC12138-Z
Copy link
Author

ulimit -c unlimited
echo "/tmp/%e-%p-%t.core" > /proc/sys/kernel/core_pattern
echo "1" > /proc/sys/fs/suid_dumpable

如果没有core文件,试试以上命令
还是没有core文件

@Zxilly
Copy link
Owner

Zxilly commented Sep 12, 2024

麻烦用最新分支上的代码重新编译一下吧,之前错误的捕获了Segmentation fault信号

@PC12138-Z
Copy link
Author

麻烦用最新分支上的代码重新编译一下吧,之前错误的捕获了Segmentation fault信号

试了还是报错,我想会不会是内核的原因,

我就把我另一个路由器刷了最新的分支编译的固件,内核从5.15.158升级到了5.15.164,装的ua2f最新版本,在没升级之前是不会报 git空 跟 Kernel does not support packet timestamps,升级之后就如下图,但是ua2f是正常起作用的,试了一下抓core文件也是没有

屏幕截图 2024-09-13 105553

之前出问题的路由器内核也是最新5.15.164,估计是arm平台的问题了。

@Zxilly
Copy link
Owner

Zxilly commented Sep 13, 2024

等我有空了加个内置的错误追踪吧

@kobe-heli
Copy link

同样的问题

@Zxilly
Copy link
Owner

Zxilly commented Sep 23, 2024

@JinXinYa 请上传 coredump 文件和 /usr/bin/ua2f 文件

@kobe-heli
Copy link

没有coredump文件
屏幕截图 2024-09-23 190016
屏幕截图 2024-09-23 190054

@Zxilly
Copy link
Owner

Zxilly commented Sep 23, 2024

用最新的master分支上的代码编译不会捕获错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants