Skip to content

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

@n1moe1n

Description

@n1moe1n

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions