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

augtool generates a memory segmentation fault while read a large file /etc/sysconfig/ipset #845

Open
n1moe1n opened this issue Oct 16, 2024 · 1 comment

Comments

@n1moe1n
Copy link

n1moe1n commented Oct 16, 2024

Hi,

a memory access error is generated when reading the file /etc/sysconfig/ipset

  • lines in ipset
$ wc -l /etc/sysconfig/ipset
168146 /etc/sysconfig/ipset
  • augtool with strace
$ strace ./augtool


close(3)                                = 0
stat("/etc/sysconfig/ipset", {st_mode=S_IFREG|0644, st_size=4673066, ...}) = 0
openat(AT_FDCWD, "/etc/sysconfig/ipset", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4673066, ...}) = 0
...
...
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7ffe7469aff8} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

best regards

@n1moe1n
Copy link
Author

n1moe1n commented Oct 16, 2024

augtool> info
version = 1.14.1

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

1 participant