Bug 13685 - *** glibc detected *** pre-grohtml: free(): invalid pointer: 0xb7f588dc ***
Summary: *** glibc detected *** pre-grohtml: free(): invalid pointer: 0xb7f588dc ***
Status: REOPENED
Alias: None
Product: Sisyphus
Classification: Development
Component: groff-extra (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
: 29353 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-13 16:15 MSK by Vladimir V. Kamarzin
Modified: 2020-02-09 00:05 MSK (History)
5 users (show)

See Also:


Attachments
example manpage (4.14 KB, text/plain)
2011-01-13 12:32 MSK, Vladimir V. Kamarzin
no flags Details
openconnect manpage (8.47 KB, application/octet-stream)
2012-05-22 21:13 MSK, Alexey Shabalin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir V. Kamarzin 2007-12-13 16:15:46 MSK
groff падает при попытке сконвертировать man в html, если отсутствует groff-ps:

[builder@vvk doc]$ groff -man -Thtml ../man/cyr_dbtool.8 > man/cyr_dbtool.8.html
*** glibc detected *** pre-grohtml: free(): invalid pointer: 0xb7f588dc ***
======= Backtrace: =========
/lib/libc.so.6[0xb7d88402]
/lib/libc.so.6(cfree+0x89)[0xb7d89a79]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb7f2df6d]
pre-grohtml[0x804b154]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7d3c05c]
pre-grohtml(__gxx_personality_v0+0x75)[0x8049371]
======= Memory map: ========
groff: pre-grohtml: Signal 6
Comment 1 Alexey Gladkov 2007-12-13 16:27:18 MSK
Видимо, это моё.
Comment 2 Slava Semushin 2008-08-01 10:51:34 MSD
Что-то не смог воспроизвести:

[coder@pbf64 ~]$ groff -man -Thtml addr2line.1 
groff: can't find `DESC' file
groff:fatal error: invalid device `html'

groff-base-1.19.2-alt2.0, ru_RU.UTF8, x86_64

Может надо именно такой файл?
Comment 3 Alexey Gladkov 2008-08-23 03:30:02 MSD
В сизиф отправлена сборка: groff-1.19.3-alt1.20080822. Указанная команда работает корректно.
Comment 4 Vladimir V. Kamarzin 2011-01-13 11:53:19 MSK
Воспроизводится при сборке cyrus-imap:

[...]
make: Entering directory `/usr/src/RPM/BUILD/cyrus-imapd-2.4.6/doc'
mkdir -p man
for man in ../man/*.[1-9]; \
        do \
                echo "=== $man ==="; \
                groff -man -Thtml $man > man/`basename $man`.html; \
        done
=== ../man/arbitron.8 ===
groff: troff: Signal 11
post-grohtml:<standard input> (/usr/share/groff/site-tmac/man.local):668:warning: no final `x stop' command
=== ../man/chk_cyrus.8 ===
*** glibc has detected an error in troff: double free or corruption (!prev): 0x081fb928 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6960a)[0x401be60a]
/lib/libc.so.6(+0x6ab1a)[0x401bfb1a]
/lib/libc.so.6(cfree+0x71)[0x401c2741]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0x400cebed]
troff[0x80898f2]
troff[0x806eb33]
troff[0x8080f34]
troff[0x807023d]
troff[0x804bd71]
troff[0x8050242]
troff[0x80578c2]
troff[0x804a72d]
troff[0x80666a9]
troff[0x806aafc]
troff[0x806ae97]
troff[0x806c3d4]
/lib/libc.so.6(__libc_start_main+0xe6)[0x4016bc66]
troff[0x8049561]
======= Memory map: ========
groff: troff: Signal 6
post-grohtml:<standard input> (/usr/share/groff/site-tmac/man.local):409:warning: no final `x stop' command


При ручном запуске из hsh-shell:
[builder@vvk doc]$ groff -man -Thtml ../man/deliver.8 > man/deliver.html
troff: out of memory
post-grohtml:<standard input> (/usr/share/groff/site-tmac/man.local):401:warning: no final `x stop' command
Comment 5 Alexey Gladkov 2011-01-13 12:19:09 MSK
Добавьте в аттач ман-страницу, на которой падает.
Comment 6 Vladimir V. Kamarzin 2011-01-13 12:32:41 MSK
Created attachment 4751 [details]
example manpage
Comment 7 Alexey Shabalin 2012-05-22 21:13:34 MSK
Created attachment 5469 [details]
openconnect manpage
Comment 8 Alexey Shabalin 2012-05-22 21:14:54 MSK
openconnect-3.20. при сборке в хэшер получаю:

groff -t -K UTF-8 -mandoc -Txhtml ../openconnect.8 | sed -e '1,/<body>/d' -e '/<\/body>/,$d' > openconnect.8.inc

*** glibc has detected an error in pre-grohtml: double free or corruption (out): 0x00002ba98b78c250 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x71646)[0x2ba98bcaf646]
/lib64/libc.so.6(cfree+0x6c)[0x2ba98bcb43fc]
pre-grohtml[0x40375b]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x2ba98bc5cbdd]
pre-grohtml[0x401c69]
======= Memory map: ========
groff: pre-grohtml: Signal 6

man-файл приложил.
Comment 9 Sergey Y. Afonin 2015-07-10 22:57:32 MSK
*** Bug 29353 has been marked as a duplicate of this bug. ***
Comment 10 Sergey Y. Afonin 2015-07-10 23:04:47 MSK
Может, обновить ? 1.22.3 есть.
Comment 11 Vitaly Lipatov 2020-02-09 00:05:31 MSK
Проблема всё ещё на месте, без groff-ps получаем:

[builder@localhost .in]$ pre-grohtml 
free(): invalid pointer
Aborted

[builder@localhost .in]$ epmqf pre-grohtml
Note: pre-grohtml is placed as /usr/bin/pre-grohtml
 $ rpm -qf /usr/bin/pre-grohtml
groff-extra-1.22.3-alt2.x86_64