-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nextcloud-setup: free() Invalid Pointer #108262
Comments
Hmm can you please give us a backtrace from |
Sure, here is the
and here's the Reading symbols from /nix/store/i706qi3j3r0rh5dp8qhwdg5qmjvsmj0g-php-7.4.12/bin/php...
(No debugging symbols found in /nix/store/i706qi3j3r0rh5dp8qhwdg5qmjvsmj0g-php-7.4.12/bin/php)
[New LWP 7969]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libthread_db.so.1".
Core was generated by `/nix/store/vc7rr3jz8mnvhl1ii6zj1bkwvhcs2jwm-php-with-extensions-7.4.12/bin/php'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f25574eb08a in raise () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
warning: File "/nix/store/hxs99j1kx878pxxw5lbdarml69r5f1qb-gcc-9.3.0-lib/lib/libstdc++.so.6.0.28-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load:/nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib".
To enable execution of this file add
add-auto-load-safe-path /nix/store/hxs99j1kx878pxxw5lbdarml69r5f1qb-gcc-9.3.0-lib/lib/libstdc++.so.6.0.28-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) bt
#0 0x00007f25574eb08a in raise () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#1 0x00007f25574d5528 in abort () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#2 0x00007f255752c8a8 in __libc_message () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#3 0x00007f2557533a0a in malloc_printerr () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#4 0x00007f255753536c in _int_free () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#5 0x00007b2542c2195f in numa_init () from /nix/store/dgb0w5fsdym9k2hazvnbhsknrbmbi8a2-numactl-2.0.13/lib/libnuma.so.1
#6 0x00007f25583f28fa in call_init.part ()
from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#7 0x00007f25583f2a36 in _dl_init () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#8 0x00007f25575e1bac in _dl_catch_exception () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#9 0x00007f25583f6db4 in dl_open_worker ()
from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#10 0x00007f25575e1b65 in _dl_catch_exception () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#11 0x00007f25583f620a in _dl_open () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#12 0x00007f255795e246 in dlopen_doit () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libdl.so.2
#13 0x00007f25575e1b65 in _dl_catch_exception () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#14 0x00007f25575e1bff in _dl_catch_error () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#15 0x00007f255795e8f5 in _dlerror_run () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libdl.so.2
#16 0x00007f255795e2c6 in dlopen@@GLIBC_2.2.5 () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libdl.so.2
#17 0x000000000070b484 in php_load_shlib ()
#18 0x000000000070b554 in php_load_extension ()
#19 0x00000000007cd3de in zend_llist_apply ()
#20 0x000000000077b24a in php_ini_register_extensions ()
#21 0x0000000000773989 in php_module_startup ()
#22 0x000000000086926d in php_cli_startup ()
#23 0x000000000063635a in main () |
Apologies, seems like that is some other trace from a cron that apparently has executed right after the
Reading symbols from /nix/store/i706qi3j3r0rh5dp8qhwdg5qmjvsmj0g-php-7.4.12/bin/php...
(No debugging symbols found in /nix/store/i706qi3j3r0rh5dp8qhwdg5qmjvsmj0g-php-7.4.12/bin/php)
[New LWP 8984]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libthread_db.so.1".
Core was generated by `/nix/store/vc7rr3jz8mnvhl1ii6zj1bkwvhcs2jwm-php-with-extensions-7.4.12/bin/php'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fa17a34508a in raise () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
warning: File "/nix/store/hxs99j1kx878pxxw5lbdarml69r5f1qb-gcc-9.3.0-lib/lib/libstdc++.so.6.0.28-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load:/nix/store/vran8acwir59772hj4vscr7zribvp7l5-gcc-9.3.0-lib".
To enable execution of this file add
add-auto-load-safe-path /nix/store/hxs99j1kx878pxxw5lbdarml69r5f1qb-gcc-9.3.0-lib/lib/libstdc++.so.6.0.28-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) bt
#0 0x00007fa17a34508a in raise () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#1 0x00007fa17a32f528 in abort () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#2 0x00007fa17a3868a8 in __libc_message () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#3 0x00007fa17a38da0a in malloc_printerr () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#4 0x00007fa17a38f36c in _int_free () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#5 0x00007ba165a7a95f in numa_init () from /nix/store/dgb0w5fsdym9k2hazvnbhsknrbmbi8a2-numactl-2.0.13/lib/libnuma.so.1
#6 0x00007fa17b24c8fa in call_init.part ()
from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#7 0x00007fa17b24ca36 in _dl_init () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#8 0x00007fa17a43bbac in _dl_catch_exception () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#9 0x00007fa17b250db4 in dl_open_worker ()
from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#10 0x00007fa17a43bb65 in _dl_catch_exception () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#11 0x00007fa17b25020a in _dl_open () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
#12 0x00007fa17a7b8246 in dlopen_doit () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libdl.so.2
#13 0x00007fa17a43bb65 in _dl_catch_exception () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#14 0x00007fa17a43bbff in _dl_catch_error () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6
#15 0x00007fa17a7b88f5 in _dlerror_run () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libdl.so.2
#16 0x00007fa17a7b82c6 in dlopen@@GLIBC_2.2.5 () from /nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libdl.so.2
#17 0x000000000070b484 in php_load_shlib ()
#18 0x000000000070b554 in php_load_extension ()
#19 0x00000000007cd3de in zend_llist_apply ()
#20 0x000000000077b24a in php_ini_register_extensions ()
#21 0x0000000000773989 in php_module_startup ()
#22 0x000000000086926d in php_cli_startup ()
#23 0x000000000063635a in main () |
Gotta sleep now, will think about this tomorrow. |
Maybe something was written to the |
I cannot seem to find any such logs for nextcloud. Is there anything else I can help with? |
Looks like it fails to load an extension and at some point, in Are you able to run |
It seems like EDIT: It doesn't work, tried both
EDIT 2: Here's the
gdb trace: (gdb) bt
#0 0x00007ff55436408a in raise () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#1 0x00007ff55434e528 in abort () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#2 0x00007ff5543a58a8 in __libc_message () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#3 0x00007ff5543aca0a in malloc_printerr () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#4 0x00007ff5543ae36c in _int_free () from /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6
#5 0x00000000005f229d in zend_hash_destroy ()
#6 0x00007bf54378138f in zm_shutdown_mysqli ()
from /nix/store/86zavhr7anx1711snwfgjz8sfdy6diiv-php-mysqli-7.3.24/lib/php/extensions/mysqli.so
#7 0x00000000005e7db9 in module_destructor ()
#8 0x00000000005e102c in module_destructor_zval ()
#9 0x00000000005f2d4a in zend_hash_graceful_reverse_destroy ()
#10 0x00000000005e20af in zend_shutdown ()
#11 0x0000000000578662 in php_module_shutdown ()
#12 0x0000000000456f44 in main () |
When I try any of these versions (the same |
@talyz AFAIU @Thunderbottom so, this is a fairly weird problem we haven't encountered yet, so I'd ask for some patience until we figured out the problem itself. To investigate the issue, I'd have some follow-up questions:
|
No worries, and thank you for all the help so far! I'm willing to give as much information as required to help fix this issue. Just so we are on the same page, I am deploying nextcloud on my server through nixops. To answer your questions:
Let me know if there's any other information I could provide. Thanks! |
So it's confusing but we can create many Thanks! |
@Ma27 Yeah, that's as much as I gathered as well. Looking at the @aanderse That is the version of @Thunderbottom Could you try running |
@aanderse, sorry for the confusion. I thought it would end up using the same derivation in the nix-shell as well. Here's the output without the nix-shell: https://del.dog/icrunexeri.txt @talyz the command didn't output anything, so I suppose that passed the integrity check? |
@talyz yeah, sorry, I was confused for a moment and referenced the wrong |
I'm not sure sure, sometimes the A few more ideas regarding the
Another idea: is this target server a QEMU VM (or sth. similar)? If that's the case and there isn't anything sensitive, you could export it as |
@Thunderbottom Yep, that's correct. I should output a message for every error it finds, so it should be okay. @aanderse Ah, I see, that makes sense :) |
@aanderse
@Ma27 I did run My server is running on hetzner cloud. So I don't think it would be possible to export the VM as a qcow image :( |
even though those are also virtualized, I didn't find a quick way in their UI for such an export. For now, two more things:
|
|
We also have to consider that Hetzner Cloud VM or the NixOS Install ISO may be causing the issue. Could you try deploying the same configuration on a Virtualbox VM, or a different cloud provider, using NixOps? If it's not reproducible anywhere else, I don't think there's much we can do and Hetzner support would have to take over. |
I could try something later this week :) |
@talyz I may be blind, but does Hetzner Cloud even have NixOS ISOs? IIRC I had to kexec into a NixOS after booting into an Ubuntu on Hetzner Cloud. Regarding the note of @talyz: which ISO did you use @Thunderbottom ? If I use the same one, the issue may become reproducible. On a first glance I couldn't find the culprit in the Tbh I don't think that we'll be really successful with more guessing, a few more ideas on how to isolate the issue:
{
vmname = { pkgs, ... }: {
# your config here
};
} Then build it with |
I set up NixOS using nixos-infect, although I don't know if that should make any difference since deploying with I could try setting up a VM locally later this week and see if that works. |
Okay, I just fired up a Hetzner Cloud VM (CX11) and installed NixOS via
The output of
However, both PHP 7.4 and 7.3 work fine:
So I guess we can rule out that as well :/ |
I could set up a new instance on hetzner and replicate my current setup there. Maybe it really is a filesystem issue?
|
That would be a good idea. I'm sorry, but I currently don't know what else could be the issue atm. |
I shall update here when I get around setting it up (tomorrow, maybe). Thank you all for your time and effort! Really appreciate all the help :) |
If I had to guess, I'd blame this on The relevant configuration option is |
Do you mind telling me what exactly I need to do here? It seems like the default option is |
Oh, good catch, @ajs124! @Thunderbottom Are you perhaps importing the |
@ajs124 amazing! Seems like that was the issue. @talyz yeah, I did have So does this mean the PHP package needs to check if the |
Okay, that's good. If you run into additional problems, try disabling the whole profile - it changes lots of options that could be detrimental to stability, performance or both. I don't think any package or service should have to check
It should therefore be considered highly experimental, as should the |
So far so good! Everything seems to be working as intended.
I think this would be good to know in the manual, yeah. Thank you everyone for your time and effort to help solve this issue. I really appreciate it! |
Enabling the profile can lead to hard-to-debug issues, which should be warned about in addition to the cost in features and performance. See NixOS#108262 for an example.
Enabling the profile can lead to hard-to-debug issues, which should be warned about in addition to the cost in features and performance. See NixOS#108262 for an example. (cherry picked from commit 0f0d5c0)
Description
Trying to set up
pkgs.nextcloud20
on a NixOS server using NixOps:nixops deploy
, fails with the error:To Reproduce
Steps to reproduce the behavior:
nixops deploy
Expected behavior
Nextcloud (in current context,
pkgs.nextcloud20
) should be installed.Additional context
Don't know if this is relevant, but both my server and my host system are
amd64
machines.Notify maintainers
@schneefux
@bachp
@globin
@fpletz
@Ma27
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Host System:
NixOps Server:
The text was updated successfully, but these errors were encountered: