Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363397 - w3m-0.5.3-r1 infinite loop/stack overflow with boehm-gc-7.2_alpha4-r1
Summary: w3m-0.5.3-r1 infinite loop/stack overflow with boehm-gc-7.2_alpha4-r1
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 22:27 UTC by Ed Catmur
Modified: 2013-02-04 05:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
w3m-0.5.2-gc72.patch (w3m-0.5.2-gc72.patch,527 bytes, text/plain)
2011-04-12 22:27 UTC, Ed Catmur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2011-04-12 22:27:25 UTC
Created attachment 269727 [details]
w3m-0.5.2-gc72.patch

USE="doc" x11-libs/libX11-1.4.3 build stalls at:

  GEN    Compose/zh_TW.html
  GEN    Compose/zh_TW.big5.html
  GEN    Compose/zh_TW.UTF-8.html

Tracing the active process indicates w3m is stuck in

(gdb) where
#0  0xb76f21a1 in GC_get_warn_proc () at misc.c:1222
#1  0x0804f09d in wrap_GC_warn_proc (
    msg=0xb76fa39c "GC Warning: Repeated allocation of very large block (appr. size %ld):\n\tMay lead to memory leak and poor performance.\n", arg=1277952)
    at main.c:315
#2  0xb76e60b4 in GC_allochblk_nth (sz=1276152, kind=0, flags=0, n=60, 
    may_split=1) at allchblk.c:721
#3  0xb76e62d8 in GC_allochblk (sz=1276152, kind=0, flags=0) at allchblk.c:625

This is caused by the Gentoo patch w3m-0.5.2-gc72.patch for boehm-gc-7.2 API change; the installed GC warn proc instead of the intended behaviour of calling the previously installed warn proc calls itself (in a tail call; I assume gcc has optimised this and thus it spins rather than falling off the stack).

I attach a corrected patch.
Comment 1 Ed Catmur 2011-04-12 22:30:52 UTC
I think cjk might want this? matsuu committed the original patch.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-12 22:33:09 UTC
(In reply to comment #1)
> I think cjk might want this? matsuu committed the original patch.

cvs/gentoo-x86/www-client/w3m $ cat metadata.xml 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
<use>
        <flag name='lynxkeymap'>If you prefer Lynx-like key binding</flag>
</use>
</pkgmetadata>
Comment 3 Patrick Lauer gentoo-dev 2013-02-04 05:09:17 UTC
Cannot reproduce with current versions.