Found a bug in Nextcloud, Apache server hangup

Nextcloud version : 12.0.3
Operating system and version: Linux version 4.9.0-3-686 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06)
Apache or nginx version: Apache/2.4.25 (Debian)
PHP version: PHP 7.0.19-1 (cli) (built: May 11 2017 14:04:47) ( NTS )
Is this the first time you’ve seen this error?: No

Can you reliably replicate it? (If so, please outline steps): Yes.

  1. Login with an administrator
  2. go to the Users section (top left)
  3. Enter the new username user_test, password 45282125
  4. Click “create”
  5. Lost connection to server

The issue you are facing:
Lost connection to server

The output of your Nextcloud log in Admin > Logging:
Nothing is suspicious

The output of your Apache/nginx/system log in /var/log/____:

tail -100 /var/log/apache2/error.log
b73c5000-b73cc000 r-xp 00000000 08:01 1839989 /usr/lib/apache2/modules/mod_deflate.so
b73cc000-b73cd000 —p 00007000 08:01 1839989 /usr/lib/apache2/modules/mod_deflate.so
b73cd000-b73ce000 r–p 00007000 08:01 1839989 /usr/lib/apache2/modules/mod_deflate.so
b73ce000-b73cf000 rw-p 00008000 08:01 1839989 /usr/lib/apache2/modules/mod_deflate.so
b73cf000-b73d1000 rw-p 00000000 00:00 0
b73d1000-b73d9000 r-xp 00000000 08:01 1839972 /usr/lib/apache2/modules/mod_autoindex.so
b73d9000-b73da000 r–p 00007000 08:01 1839972 /usr/lib/apache2/modules/mod_autoindex.so
b73da000-b73db000 rw-p 00008000 08:01 1839972 /usr/lib/apache2/modules/mod_autoindex.so
b73db000-b73dd000 rw-p 00000000 00:00 0
b73dd000-b73de000 r-xp 00000000 08:01 1839971 /usr/lib/apache2/modules/mod_authz_user.so
b73de000-b73df000 r–p 00000000 08:01 1839971 /usr/lib/apache2/modules/mod_authz_user.so
b73df000-b73e0000 rw-p 00001000 08:01 1839971 /usr/lib/apache2/modules/mod_authz_user.so
b73e0000-b73e2000 rw-p 00000000 00:00 0
b73e2000-b73e4000 r-xp 00000000 08:01 1839969 /usr/lib/apache2/modules/mod_authz_host.so
b73e4000-b73e5000 r–p 00001000 08:01 1839969 /usr/lib/apache2/modules/mod_authz_host.so
b73e5000-b73e6000 rw-p 00002000 08:01 1839969 /usr/lib/apache2/modules/mod_authz_host.so
b73e6000-b73e8000 rw-p 00000000 00:00 0
b73e8000-b73ec000 r-xp 00000000 08:01 1839965 /usr/lib/apache2/modules/mod_authz_core.so
b73ec000-b73ed000 —p 00004000 08:01 1839965 /usr/lib/apache2/modules/mod_authz_core.so
b73ed000-b73ee000 r–p 00004000 08:01 1839965 /usr/lib/apache2/modules/mod_authz_core.so
b73ee000-b73ef000 rw-p 00005000 08:01 1839965 /usr/lib/apache2/modules/mod_authz_core.so
b73ef000-b73f1000 rw-p 00000000 00:00 0
b73f1000-b73f3000 r-xp 00000000 08:01 1839961 /usr/lib/apache2/modules/mod_authn_file.so
b73f3000-b73f4000 r–p 00001000 08:01 1839961 /usr/lib/apache2/modules/mod_authn_file.so
b73f4000-b73f5000 rw-p 00002000 08:01 1839961 /usr/lib/apache2/modules/mod_authn_file.so
b73f5000-b73f7000 rw-p 00000000 00:00 0
b73f7000-b73f9000 r-xp 00000000 08:01 1839958 /usr/lib/apache2/modules/mod_authn_core.so
b73f9000-b73fa000 r–p 00001000 08:01 1839958 /usr/lib/apache2/modules/mod_authn_core.so
b73fa000-b73fb000 rw-p 00002000 08:01 1839958 /usr/lib/apache2/modules/mod_authn_core.so
b73fb000-b73fd000 rw-p 00000000 00:00 0
b73fd000-b7400000 r-xp 00000000 08:01 1839954 /usr/lib/apache2/modules/mod_auth_basic.so
b7400000-b7401000 r–p 00002000 08:01 1839954 /usr/lib/apache2/modules/mod_auth_basic.so
b7401000-b7402000 rw-p 00003000 08:01 1839954 /usr/lib/apache2/modules/mod_auth_basic.so
b7402000-b7404000 rw-p 00000000 00:00 0
b7404000-b7407000 r-xp 00000000 08:01 1839951 /usr/lib/apache2/modules/mod_alias.so
b7407000-b7408000 —p 00003000 08:01 1839951 /usr/lib/apache2/modules/mod_alias.so
b7408000-b7409000 r–p 00003000 08:01 1839951 /usr/lib/apache2/modules/mod_alias.so
b7409000-b740a000 rw-p 00004000 08:01 1839951 /usr/lib/apache2/modules/mod_alias.so
b740a000-b740c000 rw-p 00000000 00:00 0
b740c000-b740e000 r-xp 00000000 08:01 1839949 /usr/lib/apache2/modules/mod_access_compat.so
b740e000-b740f000 r–p 00001000 08:01 1839949 /usr/lib/apache2/modules/mod_access_compat.so
b740f000-b7410000 rw-p 00002000 08:01 1839949 /usr/lib/apache2/modules/mod_access_compat.so
b7410000-b7446000 rw-p 00000000 00:00 0
b7446000-b746d000 r-xp 00000000 08:01 2228227 /lib/i386-linux-gnu/libexpat.so.1.6.2
b746d000-b746f000 r–p 00026000 08:01 2228227 /lib/i386-linux-gnu/libexpat.so.1.6.2
b746f000-b7470000 rw-p 00028000 08:01 2228227 /lib/i386-linux-gnu/libexpat.so.1.6.2
b7470000-b7473000 r-xp 00000000 08:01 2231484 /lib/i386-linux-gnu/libdl-2.24.so
b7473000-b7474000 r–p 00002000 08:01 2231484 /lib/i386-linux-gnu/libdl-2.24.so
b7474000-b7475000 rw-p 00003000 08:01 2231484 /lib/i386-linux-gnu/libdl-2.24.so
b7475000-b7477000 rw-p 00000000 00:00 0
b7477000-b7480000 r-xp 00000000 08:01 2231483 /lib/i386-linux-gnu/libcrypt-2.24.so
b7480000-b7481000 r–p 00008000 08:01 2231483 /lib/i386-linux-gnu/libcrypt-2.24.so
b7481000-b7482000 rw-p 00009000 08:01 2231483 /lib/i386-linux-gnu/libcrypt-2.24.so
b7482000-b74a9000 rw-p 00000000 00:00 0
b74a9000-b74b0000 r-xp 00000000 08:01 2231497 /lib/i386-linux-gnu/librt-2.24.so
b74b0000-b74b1000 r–p 00006000 08:01 2231497 /lib/i386-linux-gnu/librt-2.24.so
b74b1000-b74b2000 rw-p 00007000 08:01 2231497 /lib/i386-linux-gnu/librt-2.24.so
b74b2000-b74b6000 r-xp 00000000 08:01 2228320 /lib/i386-linux-gnu/libuuid.so.1.3.0
b74b6000-b74b7000 r–p 00003000 08:01 2228320 /lib/i386-linux-gnu/libuuid.so.1.3.0
b74b7000-b74b8000 rw-p 00004000 08:01 2228320 /lib/i386-linux-gnu/libuuid.so.1.3.0
b74b8000-b7669000 r-xp 00000000 08:01 2231481 /lib/i386-linux-gnu/libc-2.24.so
b7669000-b766a000 —p 001b1000 08:01 2231481 /lib/i386-linux-gnu/libc-2.24.so
b766a000-b766c000 r–p 001b1000 08:01 2231481 /lib/i386-linux-gnu/libc-2.24.so
b766c000-b766d000 rw-p 001b3000 08:01 2231481 /lib/i386-linux-gnu/libc-2.24.so
b766d000-b7670000 rw-p 00000000 00:00 0
b7670000-b7689000 r-xp 00000000 08:01 2231495 /lib/i386-linux-gnu/libpthread-2.24.so
b7689000-b768a000 r–p 00018000 08:01 2231495 /lib/i386-linux-gnu/libpthread-2.24.so
b768a000-b768b000 rw-p 00019000 08:01 2231495 /lib/i386-linux-gnu/libpthread-2.24.so
b768b000-b768d000 rw-p 00000000 00:00 0
b768d000-b76c3000 r-xp 00000000 08:01 1579529 /usr/lib/i386-linux-gnu/libapr-1.so.0.5.2
b76c3000-b76c4000 r–p 00035000 08:01 1579529 /usr/lib/i386-linux-gnu/libapr-1.so.0.5.2
b76c4000-b76c5000 rw-p 00036000 08:01 1579529 /usr/lib/i386-linux-gnu/libapr-1.so.0.5.2
b76c5000-b76ed000 r-xp 00000000 08:01 1579532 /usr/lib/i386-linux-gnu/libaprutil-1.so.0.5.4
b76ed000-b76ee000 —p 00028000 08:01 1579532 /usr/lib/i386-linux-gnu/libaprutil-1.so.0.5.4
b76ee000-b76ef000 r–p 00028000 08:01 1579532 /usr/lib/i386-linux-gnu/libaprutil-1.so.0.5.4
b76ef000-b76f0000 rw-p 00029000 08:01 1579532 /usr/lib/i386-linux-gnu/libaprutil-1.so.0.5.4
b76f0000-b7767000 r-xp 00000000 08:01 2228260 /lib/i386-linux-gnu/libpcre.so.3.13.3
b7767000-b7768000 r–p 00076000 08:01 2228260 /lib/i386-linux-gnu/libpcre.so.3.13.3
b7768000-b7769000 rw-p 00077000 08:01 2228260 /lib/i386-linux-gnu/libpcre.so.3.13.3
b7769000-b776a000 r–p 00000000 08:01 1573517 /usr/lib/locale/C.UTF-8/LC_IDENTIFICATION
b776a000-b7771000 rw-p 00000000 00:00 0
b7771000-b7773000 r–p 00000000 00:00 0 [vvar]
b7773000-b7775000 r-xp 00000000 00:00 0 [vdso]
b7775000-b7798000 r-xp 00000000 08:01 2231477 /lib/i386-linux-gnu/ld-2.24.so
b7798000-b7799000 r–p 00022000 08:01 2231477 /lib/i386-linux-gnu/ld-2.24.so
b7799000-b779a000 rw-p 00023000 08:01 2231477 /lib/i386-linux-gnu/ld-2.24.so
bfed2000-bfef3000 rw-p 00000000 00:00 0 [stack]
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
[Thu Oct 05 10:46:41.437779 2017] [core:notice] [pid 25384] AH00052: child pid 25396 exit signal Aborted (6)
[Thu Oct 05 10:46:41.440159 2017] [mpm_prefork:notice] [pid 25384] AH00169: caught SIGTERM, shutting down
zend_mm_heap corrupted
[Thu Oct 05 10:46:42.182742 2017] [mpm_prefork:notice] [pid 26039] AH00163: Apache/2.4.25 (Debian) configured – resuming normal operations
[Thu Oct 05 10:46:42.183299 2017] [core:notice] [pid 26039] AH00094: Command line: ‘/usr/sbin/apache2’


Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.

"zend_mm_heap corrupted"
I suggest to increment your output_buffering= value in php.ini and replicate this.

Also check your servers memory, check free -h and give us the output before running this. Might it be that memory is getting full.

1 Like

mod_deflate is listed in the admin manual troubleshooting to possibly cause problems.

Low chance that it’s the reason for your issue, but wanted to mention it.