lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Lynx 2.8.3.dev8: CPU problems connecting to a site


From: Frederic L . W . Meunier
Subject: Re: lynx-dev Lynx 2.8.3.dev8: CPU problems connecting to a site
Date: Sun, 29 Aug 1999 16:14:42 -0300
User-agent: Mutt/0.96.5i

On Sun, Aug 29, 1999 at 11:22:40PM +0500, Vlad Harchev wrote:
> On Sun, 29 Aug 1999, Frederic L . W . Meunier wrote:
> 
> > Well, here's:
> 
>  Ok. (I'm satisfied by the fact that the bug is not in my code :).
>  Now I'm confused - what's happening? Can you check the virtual size of the
> lynx process - is it constantly increasing (if yes - then it's an endless loop
> in the lynx that allocates memory on each iteration), if no - then this is IMO
> bug in malloc - it iterates on the allocated chunks when searching for free
> ones. Is anybody with libc5 here (as in RH5.1 or Slackwares) (could you try to
> test this site with lynx configured that way)?

Yes, it's constantly increasing,  but only the load. The memory consumption
stop at 9.15% (I have 128mb of RAM+128mb of swap). When I start Lynx it
uses like ~1.5%. And you're wrong in one thing. RedHat 5.1 is glibc2
based, but I'm using the glibc shipped with 5.2, which is the same,
2.0.7, just changing -XX. I had no problems connecting to this site,
better, to the download link with other versions, but haven't tried
since maybe 2 months.

>  Klaus, what do you think? It's your code (or you know it good) ..
> 
>  Why are invokations of UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
> nested in each other? Why the nesting is not very deep?
> 
> > 
> > I need to post the rest? It's too long. After I connected to the site,
> > when the CPU load started, I typed at pid and after bt. Lynx (or my
> > rxvt) just freezed, but I think it's normal.
> > 
> 
>  The following may help: 
> attach to the process, make bt, 'detach', wait for some time (~30 secs), and
> then attach and make bt. Do the traces differ? If not, then seems that this is
> a bug in malloc.

address@hidden on p1 at 14:18:58 [/usr/local/src] % rxvt -T "Lynx - Terminal 
browser" -fn 10x20 -e lynx &
[3] 31148
address@hidden on p1 at 16:02:22 [/usr/local/src] % gdb
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux".
(gdb) file /usr/local/bin/lynx
Reading symbols from /usr/local/bin/lynx...done.
(gdb) at 31149
Attaching to program `/usr/local/bin/lynx', process 31149
Reading symbols from /usr/local/lib/libncurses.so.5...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
0x4008d026 in __libc_malloc (bytes=7) at malloc.c:2543
malloc.c:2543: No such file or directory.
(gdb) bt
#0  0x4008d026 in __libc_malloc (bytes=7) at malloc.c:2543
#1  0x8100fd1 in HTSACopy (dest=0xbf800048, src=0x8146dc5 "s-1252")
    at ../../../../WWW/Library/Implementation/HTString.c:273
#2  0x80da255 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1641
#3  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d088 "cp1252")
    at ../../src/UCdomap.c:1594
#4  0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#5  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d078 "cp1252")
    at ../../src/UCdomap.c:1594
#6  0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#7  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d068 "cp1252")
    at ../../src/UCdomap.c:1594
#8  0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#9  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d058 "cp1252")
    at ../../src/UCdomap.c:1594
#10 0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#11 0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d048 "cp1252")
    at ../../src/UCdomap.c:1594
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) detach
Detaching from program: /usr/local/bin/lynx process 31149
(gdb) at 31149
Attaching to program `/usr/local/bin/lynx', process 31149
Symbols already loaded for /usr/local/lib/libncurses.so.5
Symbols already loaded for /lib/libc.so.6
Symbols already loaded for /lib/ld-linux.so.2
0x4008d026 in __libc_malloc (bytes=7) at malloc.c:2543
malloc.c:2543: No such file or directory.
(gdb) bt
#0  0x4008d026 in __libc_malloc (bytes=7) at malloc.c:2543
#1  0x8100fd1 in HTSACopy (dest=0xbf800048, src=0x8146dc5 "s-1252")
    at ../../../../WWW/Library/Implementation/HTString.c:273
#2  0x80da255 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1641
#3  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d088 "cp1252")
    at ../../src/UCdomap.c:1594
#4  0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#5  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d078 "cp1252")
    at ../../src/UCdomap.c:1594
#6  0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#7  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d068 "cp1252")
    at ../../src/UCdomap.c:1594
#8  0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#9  0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d058 "cp1252")
    at ../../src/UCdomap.c:1594
#10 0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
    at ../../src/UCdomap.c:1644
#11 0x80d9f91 in UCGetLYhndl_byMIME (value=0x838d048 "cp1252")
    at ../../src/UCdomap.c:1594
---Type <return> to continue, or q <return> to quit--- 

Please correct me if I'm doing the wrong steps with gdb.

-- 
Frederic L. W. Meunier \ address@hidden,urbi.com.br}
IRC: _19751127!date \ Tel: +55-21-620-7173 \ Niteroi, RJ - Brasil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]