<div dir="ltr">Hello,<div><br></div><div>When I attempt to use the image rhel8/postgresql-10 in an OpenShift 4.x cluster whose nodes have huge pages enabled it crashes with the following message:</div><div><br></div><div>"running bootstrap script ... child process was terminated by signal 7: Bus error"</div><div><br></div><div>This seems to be related to an existing issue [1]. My conclusion is that if I want to run this image in such a cluster I'm gonna need to disable huge pages in the postgres config, is that correct?</div><div><br></div><div>What would be the correct way of doing this? I overwrote postgres sample config inside the image (added huge_pages=off to it) and that got postgres running but I still see a few bus errors during initdb (seems like initdb runs using an empty postgres config and I could not figure out a way of passing -c huge_pages=off to it).</div><div><br></div><div><div>[1] <a href="https://github.com/opencontainers/runtime-spec/issues/1050">https://github.com/opencontainers/runtime-spec/issues/1050</a></div><div><br></div><div>Thanks for your help, follow the full log I see when starting the image (without overwriting the sample config):</div></div><div><br></div><div>The files belonging to this database system will be owned by user "postgres".<br>This user must also own the server process.<br><br>The database cluster will be initialized with locale "en_US.utf8".<br>The default database encoding has accordingly been set to "UTF8".<br>The default text search configuration will be set to "english".<br><br>Data page checksums are disabled.<br><br>fixing permissions on existing directory /var/lib/pgsql/data/userdata ... ok<br>creating subdirectories ... ok<br>selecting default max_connections ... sh: line 1:    22 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=100 -c shared_buffers=1000 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    24 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=50 -c shared_buffers=500 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    26 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=40 -c shared_buffers=400 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    28 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=30 -c shared_buffers=300 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    30 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=200 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>20<br>selecting default shared_buffers ... sh: line 1:    32 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=16384 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    34 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=8192 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    36 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=4096 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    38 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=3584 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    40 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=3072 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    42 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=2560 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    44 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=2048 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    46 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=1536 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    48 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=1000 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    50 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=900 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    52 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=800 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    54 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=700 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    56 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=600 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    58 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=500 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    60 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=400 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    62 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=300 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    64 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=200 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    66 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=100 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>sh: line 1:    68 Bus error               (core dumped) "/usr/bin/postgres" --boot -x0 -F -c max_connections=20 -c shared_buffers=50 -c dynamic_shared_memory_type=none < "/dev/null" > "/dev/null" 2>&1<br>400kB<br>selecting default timezone ... Etc/UTC<br>selecting dynamic shared memory implementation ... posix<br>creating configuration files ... ok<br>running bootstrap script ... child process was terminated by signal 7: Bus error<br>initdb: removing contents of data directory "/var/lib/pgsql/data/userdata"<br></div></div>