Bug 21596

Summary: rpm emits a mandb/col error on removing or installing joe and other packages
Product: Mageia Reporter: Shlomi Fish <shlomif>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: lists.jjorge, marja11, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: man-db CVE:
Status comment:

Description Shlomi Fish 2017-08-23 15:23:56 CEST
Description of problem:

On my mageia v7 x86-64 system, removing or installing "joe" (or other packages with manpages), gives me this error:

root@telaviv1:~$ u  joe
sudo urpmi --auto --keep --resume --noclean --downloader wget --wget-options -c joe
WARNING: --keep option is in use. Some strange problems may happen


    http://mirror.math.princeton.edu/pub/mageia/distrib/cauldron/x86_64/media/core/release/joe-4.4-1.mga7.x86_64.rpm
installing joe-4.4-1.mga7.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     #############################################
      1/1: joe                   #############################################
col: write error
/usr/bin/mandb: can't write to standard output
/usr/bin/mandb: col: Segmentation fault (core dumped)
root@telaviv1:~$

Also see:

root@telaviv1:~$ rpm -e joe
col: write error
/usr/bin/mandb: can't write to standard output
/usr/bin/mandb: col: Segmentation fault (core dumped)
root@telaviv1:~$ rpm -Uvh /var/cache/urpmi/rpms/joe-4.4-1.mga7.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:joe-4.4-1.mga7                   ################################# [100%]
col: write error
/usr/bin/mandb: can't write to standard output
/usr/bin/mandb: col: Segmentation fault (core dumped)
root@telaviv1:~$ /usr/bin/mandb -q
root@telaviv1:~$


Version-Release number of selected component (if applicable):

Mageia v7

How reproducible:

Always.

Steps to Reproduce:
1. urpmi joe
2. urpme joe
3.
Comment 1 Marja Van Waes 2017-08-24 08:45:22 CEST
Using which rpm?

rpm-4.13.0.1-11.mga7 from core or 
rpm-4.13.90-0.git14002.12.mga7 from testing?

Keywords: (none) => NEEDINFO
CC: (none) => marja11, thierry.vignaud
Assignee: bugsquad => rpmstack

Comment 2 Shlomi Fish 2017-08-24 10:12:28 CEST
(In reply to Marja van Waes from comment #1)
> Using which rpm?
> 
> rpm-4.13.0.1-11.mga7 from core or 
> rpm-4.13.90-0.git14002.12.mga7 from testing?

shlomif@telaviv1:~$ rpm -q rpm
rpm-4.13.90-0.git14002.12.mga7

Thanks!
Thierry Vignaud 2017-08-24 16:45:31 CEST

Source RPM: rpm => rpm-4.13.90-0.git14002.12.mga7, man-db

Comment 3 Shlomi Fish 2017-09-29 16:52:34 CEST
Removing NEEDINFO.

Keywords: NEEDINFO => (none)

Comment 4 Shlomi Fish 2018-03-20 14:05:27 CET
still happens with rpm-4.14.1-3.mga7 - any news?
Comment 5 Thierry Vignaud 2018-03-31 17:05:37 CEST
That's a man-db issue, not a rpm one

Source RPM: rpm-4.13.90-0.git14002.12.mga7, man-db => man-db

Thierry Vignaud 2018-03-31 17:05:45 CEST

Assignee: rpmstack => bugsquad

Comment 6 Marja Van Waes 2018-06-11 22:27:05 CEST
(In reply to Thierry Vignaud from comment #5)
> That's a man-db issue, not a rpm one

Thanks for telling what the real culprit is :-)

Assigning to all packagers collectively, even if you're the registered maintainer of man-db, because you obviously don't have time for this issue ;-)

Assignee: bugsquad => pkg-bugs

Comment 7 Thierry Vignaud 2018-06-12 13:15:13 CEST
Isn't that one fixed since the update to man-db-2.8.3-1.mga7?

Keywords: (none) => NEEDINFO

Comment 8 Shlomi Fish 2018-06-12 14:08:33 CEST
(In reply to Thierry Vignaud from comment #7)
> Isn't that one fixed since the update to man-db-2.8.3-1.mga7?

sudo urpmi --auto --keep --resume --noclean --no-recommends --downloader wget --wget-options -c coreutils-doc
WARNING: --keep option is in use. Some strange problems may happen


    http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/coreutils-doc-8.29-1.mga7.noarch.rpm
installing coreutils-doc-8.29-1.mga7.noarch.rpm from /var/cache/urpmi/rpms     
Preparing...                     #############################################
      1/1: coreutils-doc         #############################################
col: write error
/usr/bin/mandb: can't write to standard output
/usr/bin/mandb: col: Segmentation fault (core dumped)
shlomif@telaviv1:~$ rpm -q man-db
man-db-2.8.3-1.mga7

I guess not. :(.

Keywords: NEEDINFO => (none)

Comment 9 José Jorge 2018-06-12 21:08:52 CEST
If at the same time we could prevent mandb update to be triggered for each urpmi split? It would be nice to only trigger at the end of all rpms install.

CC: (none) => lists.jjorge

Comment 10 Thierry Vignaud 2018-08-01 09:45:56 CEST
Fixed in man-db-2.8.4-1.mga7

Resolution: (none) => FIXED
Status: NEW => RESOLVED