Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#987 - libnss-mysql+pacman woes
|
DetailsCore was generated by `pacman -Sy'.
Program terminated with signal 11, Segmentation fault. #0 0x00000000 in ?? () pacman -Sy causes segfault in pacman (libtar maybe), but works *sometimes* with nscd started. we got more debug last time we tried to trace it back, something in geteuid() i think... a dynamic build of pacman works as far as I can remember... |
This task depends upon
What happens is that your static linked pacman does some requests to nsswitch, which links in a dynamic mysql module. Since pacman only has reserved space for the nsswitch part without additional dynamic modules, it segfaults (it also segfaults with a newer version of glibc, since the newer glibc has a larger nsswitch part I guess).
Two solutions:
- Use nscd
- Use a dynamic pacman
Any idea why nscd fails some of the time?
Or how we'd upgrade glibc with a dynamic pacman?
About upgrading glibc with dynamic pacman: it should do, but I didn't try it. Does it give a "text file in use" error message?
About 1/4 times I can reproduce a crash WITH nscd running... maybe I'll try to trace that back and see if it differs.
[root@host root]# /etc/rc.d/nscd start
:: Starting nscd [DONE]
[root@host root]# pacman -Sy
:: Synchronizing package databases...
current [#################################################################################################] 100% 37K 294.9K/s 00:00:00
Segmentation fault
[root@host root]# rm /tmp/pacman.lck
[root@host root]# pacman -Sy
:: Synchronizing package databases...
current [#################################################################################################] 100% 37K 6401K/s 00:00:00
Segmentation fault
[root@host root]# rm /tmp/pacman.lck
[root@host root]# pacman -Sy
:: Synchronizing package databases...
current [#################################################################################################] 100% 37K 6173K/s 00:00:00
extra [#################################################################################################] 100% 145K 8091K/s 00:00:00
[root@host root]# /etc/rc.d/nscd stop
I can reproduce this (as far as the inconsitancy goes) on multiple systems.
no more segfaults using libnss-mysql for me