unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Frequent hangs with 21.3.1.
@ 2004-04-13 11:23 Gaute Strokkenes
  2004-04-13 13:32 ` Jan D.
  0 siblings, 1 reply; 3+ messages in thread
From: Gaute Strokkenes @ 2004-04-13 11:23 UTC (permalink / raw)


I'm experiencing extremely frequent (hourly) hangs with emacs 21.3.1
on Redhat GNU/Linux 9.  I suspect the problem is fixed in mainline
with this patch:

  http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/src/alloc.c.diff?r1=1.328&r2=1.329

Can anyone confirm that this is the likely cause of the hangs?  I've
appended a gdb backtrace.  The session is still around in case anyone
is interested.

GNU gdb 5.3
Copyright 2002 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 "i686-pc-linux-gnu".
(gdb) attach 17086
Attaching to process 17086
Reading symbols from /med/cama03/local/store/cama03/.emacs/ver-21.3/bin/emacs@386linuxlibc63...done.
Reading symbols from /local/X11R6/lib/libXaw.so.7...done.
Loaded symbols for /local/X11R6/lib/libXaw.so.7
Reading symbols from /local/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /local/X11R6/lib/libXmu.so.6
Reading symbols from /local/X11R6/lib/libXt.so.6...done.
Loaded symbols for /local/X11R6/lib/libXt.so.6
Reading symbols from /local/X11R6/lib/libSM.so.6...done.
Loaded symbols for /local/X11R6/lib/libSM.so.6
Reading symbols from /local/X11R6/lib/libICE.so.6...done.
Loaded symbols for /local/X11R6/lib/libICE.so.6
Reading symbols from /local/X11R6/lib/libXext.so.6...done.
Loaded symbols for /local/X11R6/lib/libXext.so.6
Reading symbols from /local/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /local/X11R6/lib/libXpm.so.4
Reading symbols from /local/X11R6/lib/libX11.so.6...done.
Loaded symbols for /local/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_compat.so.2...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /local/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /local/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /local/X11R6/lib/libXcursor.so.1.0...done.
Loaded symbols for /local/X11R6/lib/libXcursor.so.1.0
Reading symbols from /local/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /local/X11R6/lib/libXrender.so.1
Reading symbols from /local/X11R6/lib/X11/locale/lib/common/ximcp.so.2...done.
Loaded symbols for /local/X11R6/lib/X11/locale/lib/common/ximcp.so.2
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /local/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2...
done.
Loaded symbols for /local/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
0xffffe002 in ?? ()
(gdb) where
#0  0xffffe002 in ?? ()
#1  0x0810fa5b in emacs_blocked_malloc (size=28)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/alloc.c:732
#2  0x42073735 in malloc () from /lib/tls/libc.so.6
#3  0x40148e7a in _XRegisterFilterByType () from /local/X11R6/lib/libX11.so.6
#4  0x4047dc83 in _XimLocalSetFocus ()
   from /local/X11R6/lib/X11/locale/lib/common/ximcp.so.2
#5  0x401476b5 in XSetICFocus () from /local/X11R6/lib/libX11.so.6
#6  0x080b1f43 in XTread_socket (sd=0, bufp=0xbffd117c, numchars=4096, 
    expected=1)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/xterm.c:10697
#7  0x080d57e0 in read_avail_input (expected=1)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:6162
#8  0x080d5996 in input_available_signal (signo=29)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:6315
#9  <signal handler called>
#10 0x42074d33 in malloc_consolidate () from /lib/tls/libc.so.6
#11 0x42075c38 in mALLOPt () from /lib/tls/libc.so.6
#12 0x08110b25 in allocate_vectorlike (len=1108554272, type=MEM_TYPE_VECTOR)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/alloc.c:2226
#13 0x08110ba2 in allocate_vector (nslots=1)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/alloc.c:2254
#14 0x08110cbd in Fmake_vector (length=1, init=405207420)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/alloc.c:2350
#15 0x08110e17 in Fvector (nargs=1, args=0x8267d6c)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/alloc.c:2414
#16 0x080d0fe1 in read_char (commandflag=1, nmaps=5, maps=0xbfffd7b0, 
    prev_event=405207420, used_mouse_menu=0xbfffd808)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:2688
#17 0x080d7ba8 in read_key_sequence (keybuf=0xbfffd930, bufsize=30, 
    prompt=405207420, dont_downcase_last=0, can_return_switch_frame=1, 
    fix_current_buffer=1)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:8209
#18 0x080cf9eb in command_loop_1 ()
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:1451
#19 0x08122c16 in internal_condition_case (bfun=0x80cf814 <command_loop_1>, 
    handlers=405303764, hfun=0x80cf43c <cmd_error>)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/eval.c:1267
#20 0x080cf6ee in command_loop_2 ()
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:1245
#21 0x081227d1 in internal_catch (tag=33, func=0x80cf6d0 <command_loop_2>, 
    arg=405207420)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/eval.c:1030
#22 0x080cf6a4 in command_loop ()
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:1224
#23 0x080cf20c in recursive_edit_1 ()
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:950
#24 0x080cf328 in Frecursive_edit ()
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/keyboard.c:1006
#25 0x080cddbb in main (argc=1, argv=0xbfffdef4, envp=0xbfffdefc)
    at /local/store/storeslem/emacs/src-21.3-386linuxlibc63/src/emacs.c:1547
#26 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) 

-- 
Gaute Strokkenes

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Frequent hangs with 21.3.1.
  2004-04-13 11:23 Frequent hangs with 21.3.1 Gaute Strokkenes
@ 2004-04-13 13:32 ` Jan D.
  2004-04-13 20:49   ` Gaute B Strokkenes
  0 siblings, 1 reply; 3+ messages in thread
From: Jan D. @ 2004-04-13 13:32 UTC (permalink / raw)
  Cc: emacs-devel


> I'm experiencing extremely frequent (hourly) hangs with emacs 21.3.1
> on Redhat GNU/Linux 9.  I suspect the problem is fixed in mainline
> with this patch:
>
>    
> http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/src/alloc.c.diff? 
> r1=1.328&r2=1.329
>
> Can anyone confirm that this is the likely cause of the hangs?  I've
> appended a gdb backtrace.  The session is still around in case anyone
> is interested.

It looks to be the same problem, i.e. mallopt => signal handler =>  
malloc.
You can close the session.  I guess you have to patch the source  
yourself,
or run CVS latest, since the scope of the next release is under  
discussion.

	Jan D.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Frequent hangs with 21.3.1.
  2004-04-13 13:32 ` Jan D.
@ 2004-04-13 20:49   ` Gaute B Strokkenes
  0 siblings, 0 replies; 3+ messages in thread
From: Gaute B Strokkenes @ 2004-04-13 20:49 UTC (permalink / raw)
  Cc: Gaute Strokkenes, emacs-devel

On 13 apr 2004, jan.h.d@swipnet.se wrote:

>> I'm experiencing extremely frequent (hourly) hangs with emacs
>> 21.3.1 on Redhat GNU/Linux 9.  I suspect the problem is fixed in
>> mainline with this patch:
>>
>> http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/src/alloc.c.diff?r1=1.328&r2=1.329
>>
>> Can anyone confirm that this is the likely cause of the hangs?
>> I've appended a gdb backtrace.  The session is still around in case
>> anyone is interested.
>
> It looks to be the same problem, i.e. mallopt => signal handler =>
> malloc.  You can close the session.  I guess you have to patch the
> source yourself, or run CVS latest, since the scope of the next
> release is under discussion.

Thanks.  I'll start nagging the relevant people at work at once (I
use CVS with mtty at home.)

-- 
Gaute Strokkenes                        http://www.srcf.ucam.org/~gs234/
..  he dominates the DECADENT SUBWAY SCENE.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-13 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 11:23 Frequent hangs with 21.3.1 Gaute Strokkenes
2004-04-13 13:32 ` Jan D.
2004-04-13 20:49   ` Gaute B Strokkenes

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).