Xemacs `alarm' implementation used `#ifdef HAVE_SETITIMER' causes
assert failures, at least when `alarm' is called from socks5 library
(when running `runsocks xemacs').
It appears that every call of standard library function requires
"disabling polling" (calling `stop_async_timeouts').
Is there a better solution?
#3 0x080c2ec1 in assert_failed (
file=0x82b5580 "/home/gin/share/xemacs-local-21.4/src/signal.c", line=338,
expr=0x82b5560 "async_timer_suppress_count > 0")
at /home/gin/share/xemacs-local-21.4/src/emacs.c:3429
#4 0x081e2419 in alarm (howlong=0)
at /home/gin/share/xemacs-local-21.4/src/signal.c:338
#5 0x405be35b in getutline_r_file (line=0xbfffc740, buffer=0xbfffc5c0,
result=0xbfffc5bc) at ../sysdeps/generic/utmp_file.c:321
#6 0x405bdb31 in __getutline_r (line=0xbfffc740, buffer=0xbfffc5c0,
result=0xbfffc5bc) at getutline_r.c:43
#7 0x40560bb5 in getlogin () at ../sysdeps/unix/getlogin.c:56
#8 0x400320e7 in lsEffUser ()
at ../../d-fens/socks5-v1.0r10/shlib/../lib/protocol.c:68
#9 0x40041b52 in lsLibProtoExchg (fd=7, rsin=0x8447ce0, command=3 '\003')
at ../../d-fens/socks5-v1.0r10/shlib/../lib/libproto.c:133
#10 0x4003ec3c in lsUdpConnect (sd=7, name=0x8447ce0, namelen=28)
at ../../d-fens/socks5-v1.0r10/shlib/../lib/wrap_udp.c:159
#11 0x4003ae1c in connect (sd=7, name=0x8447ce0, namelen=28)
at ../../d-fens/socks5-v1.0r10/shlib/../lib/wrap.c:79
#12 0x407adb36 in send_dg (statp=0x405e3080, buf=0xbfffd110 "~~\001",
buflen=33, ans=0xbfffe260 "\003", anssiz=1024, terrno=0xbfffd0c0, ns=0,
v_circuit=0xbfffd0b8, gotsomewhere=0xbfffd0bc) at res_send.c:902
#13 0x407acb73 in __res_nsend (statp=0x405e3080, buf=0xbfffd110 "~~\001",
buflen=33, ans=0xbfffe260 "\003", anssiz=1024) at res_send.c:569
#14 0x407abf1b in __res_nquery (statp=0x405e3080,
name=0xbfffd570 "d-fens.vdata.ru", class=1, type=1,
answer=0xbfffe260 "\003", anslen=1024) at res_query.c:132
#15 0x407ac5e0 in __res_nquerydomain (statp=0x405e3080,
name=0xbfffec90 "d-fens", domain=0x405e30e0 "vdata.ru", class=1,
type=1,
answer=0xbfffe260 "\003", anslen=1024) at res_query.c:363
#16 0x407ac261 in __res_nsearch (statp=0x405e3080, name=0xbfffec90 "d-fens",
class=1, type=1, answer=0xbfffe260 "\003", anslen=1024) at res_query.c:238
#17 0x40abf314 in _nss_dns_gethostbyname2_r (name=0xbfffec90 "d-fens", af=2,
result=0xbfffebf0, buffer=0xbfffe6e0 "~~~\022", buflen=1024,
errnop=0x405df380, h_errnop=0xbfffeba8) at nss_dns/dns-host.c:171
#18 0x405a572e in __gethostbyname2_r (name=0xbfffec90 "d-fens", af=2,
resbuf=0xbfffebf0, buffer=0xbfffe6e0 "~~~\022", buflen=1024,
result=0xbfffebac, h_errnop=0xbfffeba8) at ../nss/getXXbyYY_r.c:200
#19 0x4057d535 in gaih_inet (name=0xbfffec90 "d-fens", service=0x0,
req=0xbfffecd0, pai=0xbfffec54) at ../sysdeps/posix/getaddrinfo.c:516
#20 0x4057e284 in getaddrinfo (name=0xbfffec90 "d-fens", service=0x0,
hints=0xbfffecd0, pai=0xbfffecbc) at ../sysdeps/posix/getaddrinfo.c:759
#21 0x08119d16 in unix_canonicalize_host_name (host=139060572)
at /home/gin/share/xemacs-local-21.4/src/process-unix.c:1608
#22 0x081ada85 in canonicalize_host_name (host=139060572)
at /home/gin/share/xemacs-local-21.4/src/process.c:823
#23 0x081fca2b in x_canonicalize_console_connection (connection=139060556,
errb=
{really_unlikely_name_to_have_accidentally_in_a_non_errb_structure = 42})
at /home/gin/share/xemacs-local-21.4/src/console-x.c:239
#24 0x081fcc1c in x_canonicalize_device_connection (connection=139060524, errb=
{really_unlikely_name_to_have_accidentally_in_a_non_errb_structure = 42})
at /home/gin/share/xemacs-local-21.4/src/console-x.c:294
#25 0x080b126c in Ffind_device (connection=1082081324, type=1082062892)
at /home/gin/share/xemacs-local-21.4/src/device.c:405
#26 0x080b13e2 in Fmake_device (type=1082062892, connection=1082081324,
props=1082081324) at /home/gin/share/xemacs-local-21.4/src/device.c:562
make-device(x nil)
# bind (display)
make-x-device(nil)
init-x-win()
# bind (debugger debug-on-error command-line-args-left)
command-line()
# (condition-case ... . ((t (byte-code " ~~~~" ... 1))))
# bind (error-data)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
With version 21.4.6 it is the same.
uname -a: Linux rhysling 2.2.19-7.1.asp.exst #1 Sun Mar 30 23:14:10 MSD 2003 i686 unknown
../configure '--prefix=/home/gin' '--cflags=-g -O99 -Wall -Wno-switch
-Wpointer-arith -Winline -Wmissing-prototypes -Wshadow' '--with-gpm=no'
'--with-sound=native' '--with-pop' '--mail-locking=lockf'
'--with-clash-detection' '--debug' '--error-checking=all'
'--with-mule=yes' '--with-database=no' '--with-ldap=yes'
'--with-hesiod=no' '--with-menubars=lucid'
'--with-scrollbars=lucid' '--with-dialogs=lucid' '--with-xim=xlib'
'--with-canna=no' '--with-wnn=no' '--with-wnn6=no'
'--with-msw=no' '--with-xfs=yes'
XEmacs 21.4.12 "Portable Code" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location: /home/gin/share/xemacs-21.4
Installation prefix: /home/gin
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -g -O99 -Wall -Wno-switch -Wpointer-arith
-Winline -Wmissing-prototypes -Wshadow
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11/include
- X Windows libraries location: /usr/X11/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for LDAP.
Compiling in support for PostgreSQL.
- Using PostgreSQL header file: pgsql/libpq-fe.h
- Using PostgreSQL V7 bindings.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
- Using XFontSet to provide bilingual menubar.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "lockf" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.
Compiling in support for extra debugging code.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------