[Bug 1234405] New: devel:microos/libeconf: Bug libeconf 0.7.5 causes systemd/sddm/pam/libc crash and prevents login
https://bugzilla.suse.com/show_bug.cgi?id=1234405 Bug ID: 1234405 Summary: devel:microos/libeconf: Bug libeconf 0.7.5 causes systemd/sddm/pam/libc crash and prevents login Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: rbrown@suse.com Reporter: pallaswept@proton.me QA Contact: screening-team-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Created attachment 879108 --> https://bugzilla.suse.com/attachment.cgi?id=879108&action=edit output of `journalctl -b -2 |rg dumped -A 40` After today's dup, I rebooted to a desktop with a mouse cursor and otherwise unresponsive. Switching to a TTY showed an error "Unable to start user manager for user 1000". I was unable to login with any account including root. Using the recovery console, I was able to retrieve logs, find this culprit, rollback, and am currently working after locking out the libeconf updates with `sudo zypper al libeconf0 libeconf0-32bit libeconf-devel` Not sure if this is just me, hopefully it is. I did have some custom pam config, which I naturally removed to test, and there was no change, but I did notice that `rpm -qf /etc/pam.d/*` returns several "file foo is not owned by any package", and none of those files are mine. I'm not sure if this is intentional or if it is related. Relevant section of the journal is attached. Please let me know if I can help in any way. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234405 https://bugzilla.suse.com/show_bug.cgi?id=1234405#c2 --- Comment #2 from pallas wept <pallaswept@proton.me> --- (In reply to Stefan Schubert from comment #1)
Could you please add your /usr/etc/security/pam_env.conf and /etc/security/pam_env.conf Perhaps I can reproduce it......
Thanks Stefan, The first file is all commented out (it's unchanged from stock) and the second file does not exist. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234405 https://bugzilla.suse.com/show_bug.cgi?id=1234405#c4 pallas wept <pallaswept@proton.me> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(pallaswept@proton | |.me) | --- Comment #4 from pallas wept <pallaswept@proton.me> --- Created attachment 879129 --> https://bugzilla.suse.com/attachment.cgi?id=879129&action=edit /usr/etc/environment.d/10-pallas.conf -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234405 https://bugzilla.suse.com/show_bug.cgi?id=1234405#c5 --- Comment #5 from pallas wept <pallaswept@proton.me> --- I also have ~/.config/plasma-workspace/env/kwin_env.sh which is all commented out, not sure if that is relevant. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234405 https://bugzilla.suse.com/show_bug.cgi?id=1234405#c6 JS <obs.coke518@passinbox.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |obs.coke518@passinbox.com --- Comment #6 from JS <obs.coke518@passinbox.com> --- I'm having the same issue. Cursor only with black background on tty2. Switch to tty1 and try to login, the following error message is shown: segfault at 55ec1c66414b ip 00007f4f8e97aeab sp 00007ffec4b15598 error 4 in libc.so.6[17aeab,7f4f8e828000+17a000] likely on CPU 5 (core 5, socket 0) Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 90 90 c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 25 03 00 00 <c5> fe 6f 07 c5 fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1 I have not changed pam config. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234405 https://bugzilla.suse.com/show_bug.cgi?id=1234405#c12 JS <obs.coke518@passinbox.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |REOPENED --- Comment #12 from JS <obs.coke518@passinbox.com> --- This issue still occurs on my system when there are more than one file under /etc/environment.d/ Steps to reproduce: 1. Creates two files under /etc/environment.d/: $ sudo touch /etc/environment.d/a.conf /etc/environment.d/b.conf 2. run command su 3. The above command fails: error Segmentation fault (core dumped) I try to use gdb to debug, got the following: Breakpoint 1, econf_mergeFiles (merged_file=0x7ffecb773d18, usr_file=0x5562728da770, etc_file=0x5562728db230) at ../lib/libeconf.c:289 289 *merged_file = calloc(1, sizeof(econf_file)); (gdb) p usr_file->path $22 = 0x5562728db850 "/usr/etc//environment" (gdb) p etc_file->path $23 = 0x5562728c7220 "/etc//environment.d/a.conf" (gdb) c Continuing. Breakpoint 1, econf_mergeFiles (merged_file=0x7ffecb773d18, usr_file=0x5562728da480, etc_file=0x5562728da180) at ../lib/libeconf.c:289 289 *merged_file = calloc(1, sizeof(econf_file)); (gdb) p usr_file->path $24 = 0x0 (gdb) p etc_file->path $25 = 0x5562728c3ef0 "/etc//environment.d/b.conf" (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00007f241617aeab in __strcmp_avx2 () from /lib64/libc.so.6 (gdb) bt #0 0x00007f241617aeab in __strcmp_avx2 () from /lib64/libc.so.6 #1 0x00007f241621c9f4 in econf_mergeFiles (merged_file=0x7ffecb773d18, usr_file=<optimized out>, etc_file=0x5562728da180) at ../lib/libeconf.c:310 #2 econf_mergeFiles (merged_file=merged_file@entry=0x7ffecb773d18, usr_file=<optimized out>, etc_file=0x5562728da180) at ../lib/libeconf.c:282 #3 0x00007f24162210cf in merge_econf_files (key_files=0x5562728d5fb0, merged_files=0x7ffecb773d18) at ../lib/mergefiles.c:225 #4 readConfigWithCallback (result=result@entry=0x7ffecb773d18, config_name=config_name@entry=0x7f241625b44a "environment", config_suffix=config_suffix@entry=0x7f241625b13f "", delim=delim@entry=0x7f241625b456 "=", comment=comment@entry=0x7f241625b140 "#", conf_dirs=<optimized out>, conf_count=0, callback=0x0, callback_data=0x0) at ../lib/readconfig.c:233 #5 0x00007f24162212ef in econf_readConfigWithCallback (key_file=0x7ffecb773d18, project=<optimized out>, usr_subdir=<optimized out>, config_name=0x7f241625b44a "environment", config_suffix=0x7f241625b13f "", delim=0x7f241625b456 "=", comment=0x7f241625b140 "#", callback=0x0, callback_data=0x0) at ../lib/libeconf.c:429 #6 0x00007f241625a7c1 in ?? () from /usr/lib64/security/pam_env.so #7 0x00007f2416258a79 in ?? () from /usr/lib64/security/pam_env.so #8 0x00007f2416259f2e in ?? () from /usr/lib64/security/pam_env.so #9 0x00007f241625a3ec in ?? () from /usr/lib64/security/pam_env.so #10 0x00007f241625a647 in pam_sm_setcred () from /usr/lib64/security/pam_env.so #11 0x00007f24162328e8 in ?? () from /lib64/libpam.so.0 #12 0x00007f2416232f74 in ?? () from /lib64/libpam.so.0 #13 0x00007f2416231e5b in pam_setcred () from /lib64/libpam.so.0 #14 0x000055626c3711df in ?? () #15 0x000055626c36cd1b in ?? () #16 0x00007f241602a2ae in __libc_start_call_main () from /lib64/libc.so.6 #17 0x00007f241602a379 in __libc_start_main_impl () from /lib64/libc.so.6 #18 0x000055626c36cd45 in ?? () (gdb) c Continuing. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234405 https://bugzilla.suse.com/show_bug.cgi?id=1234405#c13 --- Comment #13 from JS <obs.coke518@passinbox.com> --- If I revert commit 2d8423e794ba5d8cbba9bf706fb93790f4ea2dd2 "libeconf: don't allocate array from size 0", rebuild and install libeconf, it does not segfault. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com