View Issue Details

IDProjectCategoryView StatusLast Update
0006591unrealircdpublic2025-11-07 20:19
Reportergeekshell Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSDebianOS Version10
Product Version6.2.1 
Summary0006591: OOM kill because of low memory during installation
DescriptionUpgrade fails at this stage:

  CC src/libpcre2_8_la-pcre2_match.lo
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Makefile:2721: recipe for target 'src/libpcre2_8_la-pcre2_match.lo' failed
make[1]: *** [src/libpcre2_8_la-pcre2_match.lo] Error 1
make[1]: Leaving directory '/home/test/unrealircd-6/extras/pcre2-10.45'
Makefile:1581: recipe for target 'all' failed
make: *** [all] Error 2

dmesg tells me it's because of low memory:

and I have this error in dmesg: Out of memory in UB 1905: OOM killed process 32385 (cc1) score 0 vm:173224kB, rss:128360kB, swap:0kB
Steps To ReproduceRun ./Config or ./unrealircd upgrade on low memory machine.
Additional InformationTemporary solution is to use less aggressive C optimization : CFLAGS="-O1" ./Config

This flag didn't work for me with ./unrealircd upgrade.

This is without the flag (default):

    Install prefix ..................... : /home/test/unrealircd-6.2.0.2/extras/pcre2
    C preprocessor ..................... :
    C compiler ......................... : gcc
    Linker ............................. : /usr/bin/ld -m elf_x86_64
    C preprocessor flags ............... :
    C compiler flags ................... : -pthread -O2 -fvisibility=hidden
    Linker flags ....................... : -Wl,-rpath,/home/test/test/lib
    Extra libraries .................... :

    Build 8-bit pcre2 library .......... : yes
    Build 16-bit pcre2 library ......... : no
    Build 32-bit pcre2 library ......... : no
    Include debugging code ............. : no
    Enable JIT compiling support ....... : yes
    Use SELinux allocator in JIT ....... : no
    Enable Unicode support ............. : yes
    Newline char/sequence .............. : lf
    \R matches only ANYCRLF ............ : no
    \C is disabled ..................... : no
    EBCDIC coding ...................... : no
    EBCDIC code for NL ................. : n/a
    Rebuild char tables ................ : no
    Internal link size ................. : 2
    Maximum variable lookbehind ........ : 255
    Nested parentheses limit ........... : 250
    Heap limit ......................... : 20000000 kibibytes
    Match limit ........................ : 10000000
    Match depth limit .................. : MATCH_LIMIT
    Build shared libs .................. : yes
    Build static libs .................. : yes
    Use JIT in pcre2grep ............... : yes
    Enable callouts in pcre2grep ....... : yes
    Enable fork in pcre2grep callouts .. : yes
    Initial buffer size for pcre2grep .. : 20480
    Maximum buffer size for pcre2grep .. : 1048576
    Link pcre2grep with libz ........... : no
    Link pcre2grep with libbz2 ......... : no
    Link pcre2test with libedit ........ : no
    Link pcre2test with libreadline .... : no
    Valgrind support ................... : no
    Code coverage ...................... : no
    Fuzzer support ..................... : no
    Differential fuzzer support ........ : no
    Use %zu and %td .................... : auto

This is with the flag:

pcre2-10.45 configuration summary:

    Install prefix ..................... : /home/test/unrealircd-6.2.0.2/extras/pcre2
    C preprocessor ..................... :
    C compiler ......................... : gcc
    Linker ............................. : /usr/bin/ld -m elf_x86_64
    C preprocessor flags ............... :
    C compiler flags ................... : -pthread -O1 -fno-strict-aliasing -fno-common -funsigned-char -Wall -Wextra -Waggregate-return -Wformat-nonliteral -Wduplicated-cond -Wparentheses -Wno-pointer-sign -Wno-format-zero-length -Wno-unused -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-char-subscripts -Wno-sign-compare -Wno-empty-body -Wno-pragmas -fvisibility=hidden
    Linker flags ....................... : -Wl,-rpath,/home/test/test/lib
    Extra libraries .................... :

    Build 8-bit pcre2 library .......... : yes
    Build 16-bit pcre2 library ......... : no
    Build 32-bit pcre2 library ......... : no
    Include debugging code ............. : no
    Enable JIT compiling support ....... : yes
    Use SELinux allocator in JIT ....... : no
    Enable Unicode support ............. : yes
    Newline char/sequence .............. : lf
    \R matches only ANYCRLF ............ : no
    \C is disabled ..................... : no
    EBCDIC coding ...................... : no
    EBCDIC code for NL ................. : n/a
    Rebuild char tables ................ : no
    Internal link size ................. : 2
    Maximum variable lookbehind ........ : 255
    Nested parentheses limit ........... : 250
    Heap limit ......................... : 20000000 kibibytes
    Match limit ........................ : 10000000
    Match depth limit .................. : MATCH_LIMIT
    Build shared libs .................. : yes
    Build static libs .................. : yes
    Use JIT in pcre2grep ............... : yes
    Enable callouts in pcre2grep ....... : yes
    Enable fork in pcre2grep callouts .. : yes
    Initial buffer size for pcre2grep .. : 20480
    Maximum buffer size for pcre2grep .. : 1048576
    Link pcre2grep with libz ........... : no
    Link pcre2grep with libbz2 ......... : no
    Link pcre2test with libedit ........ : no
    Link pcre2test with libreadline .... : no
    Valgrind support ................... : no
    Code coverage ...................... : no
    Fuzzer support ..................... : no
    Differential fuzzer support ........ : no
    Use %zu and %td .................... : auto

TagsNo tags attached.
3rd party modules

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-11-07 20:19 geekshell New Issue