Project

General

Profile

Actions

Bug #3574

closed

Using checkgenericfilecontent Technique with 16Ko content leads to error

Added by Nicolas CHARLES almost 11 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
1
Assignee:
-
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

With Rudder 2.6 (CFEngine 3.4.4), when using a very very large content for file edition leads to a nasty stacktrace on the agent side :

*** buffer overflow detected ***: /var/rudder/cfengine-community/bin/cf-promises terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f9ef79ae007]
/lib/x86_64-linux-gnu/libc.so.6(+0x107f00)[0x7f9ef79acf00]
/var/rudder/cfengine-community/bin/cf-promises[0x425239]
/var/rudder/cfengine-community/bin/cf-promises[0x427439]
/var/rudder/cfengine-community/bin/cf-promises[0x4277c7]
/var/rudder/cfengine-community/bin/cf-promises[0x40fc04]
/var/rudder/cfengine-community/bin/cf-promises[0x41001b]
/var/rudder/cfengine-community/bin/cf-promises[0x41ba92]
/var/rudder/cfengine-community/bin/cf-promises[0x41c07a]
/var/rudder/cfengine-community/bin/cf-promises[0x40526f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f9ef78c676d]
/var/rudder/cfengine-community/bin/cf-promises[0x405331]
======= Memory map: ========
00400000-004a2000 r-xp 00000000 fd:01 16053                              /var/rudder/cfengine-community/bin/cf-promises
006a1000-006a2000 r--p 000a1000 fd:01 16053                              /var/rudder/cfengine-community/bin/cf-promises
006a2000-006a7000 rw-p 000a2000 fd:01 16053                              /var/rudder/cfengine-community/bin/cf-promises
006a7000-006c9000 rw-p 00000000 00:00 0 
014b4000-0165e000 rw-p 00000000 00:00 0                                  [heap]
7f9ef6404000-7f9ef6419000 r-xp 00000000 fd:01 262869                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f9ef6419000-7f9ef6618000 ---p 00015000 fd:01 262869                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f9ef6618000-7f9ef6619000 r--p 00014000 fd:01 262869                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f9ef6619000-7f9ef661a000 rw-p 00015000 fd:01 262869                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f9ef661a000-7f9ef6624000 r-xp 00000000 fd:01 263064                     /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f9ef6624000-7f9ef6824000 ---p 0000a000 fd:01 263064                     /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f9ef6824000-7f9ef6825000 r--p 0000a000 fd:01 263064                     /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f9ef6825000-7f9ef6826000 rw-p 0000b000 fd:01 263064                     /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f9ef6826000-7f9ef683d000 r-xp 00000000 fd:01 263058                     /lib/x86_64-linux-gnu/libnsl-2.15.so
7f9ef683d000-7f9ef6a3c000 ---p 00017000 fd:01 263058                     /lib/x86_64-linux-gnu/libnsl-2.15.so
7f9ef6a3c000-7f9ef6a3d000 r--p 00016000 fd:01 263058                     /lib/x86_64-linux-gnu/libnsl-2.15.so
7f9ef6a3d000-7f9ef6a3e000 rw-p 00017000 fd:01 263058                     /lib/x86_64-linux-gnu/libnsl-2.15.so
7f9ef6a3e000-7f9ef6a40000 rw-p 00000000 00:00 0 
7f9ef6a40000-7f9ef6a48000 r-xp 00000000 fd:01 263066                     /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f9ef6a48000-7f9ef6c47000 ---p 00008000 fd:01 263066                     /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f9ef6c47000-7f9ef6c48000 r--p 00007000 fd:01 263066                     /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f9ef6c48000-7f9ef6c49000 rw-p 00008000 fd:01 263066                     /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f9ef6c49000-7f9ef6c61000 r-xp 00000000 fd:01 263057                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7f9ef6c61000-7f9ef6e61000 ---p 00018000 fd:01 263057                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7f9ef6e61000-7f9ef6e62000 r--p 00018000 fd:01 263057                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7f9ef6e62000-7f9ef6e63000 rw-p 00019000 fd:01 263057                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7f9ef6e63000-7f9ef6e65000 rw-p 00000000 00:00 0 
7f9ef6e65000-7f9ef6e6c000 r-xp 00000000 fd:01 263069                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f9ef6e6c000-7f9ef706b000 ---p 00007000 fd:01 263069                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f9ef706b000-7f9ef706c000 r--p 00006000 fd:01 263069                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f9ef706c000-7f9ef706d000 rw-p 00007000 fd:01 263069                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f9ef706d000-7f9ef7079000 r-xp 00000000 fd:01 263063                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f9ef7079000-7f9ef7278000 ---p 0000c000 fd:01 263063                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f9ef7278000-7f9ef7279000 r--p 0000b000 fd:01 263063                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f9ef7279000-7f9ef727a000 rw-p 0000c000 fd:01 263063                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f9ef727a000-7f9ef727c000 r-xp 00000000 fd:01 263070                     /lib/x86_64-linux-gnu/libdl-2.15.so
7f9ef727c000-7f9ef747c000 ---p 00002000 fd:01 263070                     /lib/x86_64-linux-gnu/libdl-2.15.so
7f9ef747c000-7f9ef747d000 r--p 00002000 fd:01 263070                     /lib/x86_64-linux-gnu/libdl-2.15.so
7f9ef747d000-7f9ef747e000 rw-p 00003000 fd:01 263070                     /lib/x86_64-linux-gnu/libdl-2.15.so
7f9ef747e000-7f9ef7494000 r-xp 00000000 fd:01 266982                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f9ef7494000-7f9ef7693000 ---p 00016000 fd:01 266982                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f9ef7693000-7f9ef7694000 r--p 00015000 fd:01 266982                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f9ef7694000-7f9ef7695000 rw-p 00016000 fd:01 266982                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f9ef7695000-7f9ef76a4000 r-xp 00000000 fd:01 262271                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f9ef76a4000-7f9ef78a3000 ---p 0000f000 fd:01 262271                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f9ef78a3000-7f9ef78a4000 r--p 0000e000 fd:01 262271                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f9ef78a4000-7f9ef78a5000 rw-p 0000f000 fd:01 262271                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f9ef78a5000-7f9ef7a58000 r-xp 00000000 fd:01 263054                     /lib/x86_64-linux-gnu/libc-2.15.so
7f9ef7a58000-7f9ef7c57000 ---p 001b3000 fd:01 263054                     /lib/x86_64-linux-gnu/libc-2.15.so
7f9ef7c57000-7f9ef7c5b000 r--p 001b2000 fd:01 263054                     /lib/x86_64-linux-gnu/libc-2.15.so
7f9ef7c5b000-7f9ef7c5d000 rw-p 001b6000 fd:01 263054                     /lib/x86_64-linux-gnu/libc-2.15.so
7f9ef7c5d000-7f9ef7c62000 rw-p 00000000 00:00 0 
7f9ef7c62000-7f9ef7c7a000 r-xp 00000000 fd:01 263074                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7f9ef7c7a000-7f9ef7e79000 ---p 00018000 fd:01 263074                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7f9ef7e79000-7f9ef7e7a000 r--p 00017000 fd:01 263074                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7f9ef7e7a000-7f9ef7e7b000 rw-p 00018000 fd:01 263074                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7f9ef7e7b000-7f9ef7e7f000 rw-p 00000000 00:00 0 
7f9ef7e7f000-7f9ef801e000 r-xp 00000000 fd:01 265076                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f9ef801e000-7f9ef821d000 ---p 0019f000 fd:01 265076                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f9ef821d000-7f9ef8238000 r--p 0019e000 fd:01 265076                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f9ef8238000-7f9ef8243000 rw-p 001b9000 fd:01 265076                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f9ef8243000-7f9ef8247000 rw-p 00000000 00:00 0 
7f9ef8247000-7f9ef8283000 r-xp 00000000 fd:01 263910                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f9ef8283000-7f9ef8482000 ---p 0003c000 fd:01 263910                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f9ef8482000-7f9ef8483000 r--p 0003b000 fd:01 263910                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f9ef8483000-7f9ef8484000 rw-p 0003c000 fd:01 263910                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f9ef8484000-7f9ef8514000 r-xp 00000000 fd:01 272812                     /usr/lib/libtokyocabinet.so.8.27.0
7f9ef8514000-7f9ef8713000 ---p 00090000 fd:01 272812                     /usr/lib/libtokyocabinet.so.8.27.0
7f9ef8713000-7f9ef8714000 r--p 0008f000 fd:01 272812                     /usr/lib/libtokyocabinet.so.8.27.0
7f9ef8714000-7f9ef8716000 rw-p 00090000 fd:01 272812                     /usr/lib/libtokyocabinet.so.8.27.0
7f9ef8716000-7f9ef880f000 r-xp 00000000 fd:01 263053                     /lib/x86_64-linux-gnu/libm-2.15.so
7f9ef880f000-7f9ef8a0e000 ---p 000f9000 fd:01 263053                     /lib/x86_64-linux-gnu/libm-2.15.so
7f9ef8a0e000-7f9ef8a0f000 r--p 000f8000 fd:01 263053                     /lib/x86_64-linux-gnu/libm-2.15.so
7f9ef8a0f000-7f9ef8a10000 rw-p 000f9000 fd:01 263053                     /lib/x86_64-linux-gnu/libm-2.15.so
7f9ef8a10000-7f9ef8a17000 r-xp 00000000 fd:01 263060                     /lib/x86_64-linux-gnu/librt-2.15.so
7f9ef8a17000-7f9ef8c16000 ---p 00007000 fd:01 263060                     /lib/x86_64-linux-gnu/librt-2.15.so
7f9ef8c16000-7f9ef8c17000 r--p 00006000 fd:01 263060                     /lib/x86_64-linux-gnu/librt-2.15.so
7f9ef8c17000-7f9ef8c18000 rw-p 00007000 fd:01 263060                     /lib/x86_64-linux-gnu/librt-2.15.so
7f9ef8c18000-7f9ef8c3a000 r-xp 00000000 fd:01 263056                     /lib/x86_64-linux-gnu/ld-2.15.so
7f9ef8e2e000-7f9ef8e34000 rw-p 00000000 00:00 0 
7f9ef8e35000-7f9ef8e3a000 rw-p 00000000 00:00 0 
7f9ef8e3a000-7f9ef8e3b000 r--p 00022000 fd:01 263056                     /lib/x86_64-linux-gnu/ld-2.15.so
7f9ef8e3b000-7f9ef8e3d000 rw-p 00023000 fd:01 263056                     /lib/x86_64-linux-gnu/ld-2.15.so
7fff42c37000-7fff42c85000 rw-p 00000000 00:00 0                          [stack]
7fff42d40000-7fff42d41000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

Attached is the content I used as a file content

Note : it used to work on Rudder 2.5


Files

large.txt (4.54 KB) large.txt Nicolas CHARLES, 2013-05-03 14:06

Related issues 2 (0 open2 closed)

Related to Rudder - User story #3575: The input field in Directive screen should match CFEngine limitationsResolvedActions
Related to Rudder - User story #2738: Handle big files payloads in the Enforce a file content TechniqueRejectedNicolas CHARLESActions
Actions

Also available in: Atom PDF