Subject: 26.0.50; emacs master segfaults on make-network-process, embedded device nokia n900

From: [email-masked]
Date: Tue, 22 Aug 2017 01:00:28 +0000

The problem is with emacs master.

"emacs -Q" and M-x eww "f1aldia.com" segfaults emacs.

the segfault happens on make-network-process (process.c) 

The same works fine on emacs-25.2 on the same device

--8<---------------cut here---------------start------------->8---
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 27444]
0xb6319438 in __res_randomid () from /lib/libc.so.6
(gdb) bt full
#0  0xb6319438 in __res_randomid () from /lib/libc.so.6
No symbol table info available.
#1  0xb631a08c in ?? () from /lib/libc.so.6
No symbol table info available.
#2  0xb631a1d8 in __res_ninit () from /lib/libc.so.6
No symbol table info available.
#3  0xb631b058 in __res_maybe_init () from /lib/libc.so.6
No symbol table info available.
#4  0xb62fac54 in ?? () from /lib/libc.so.6
No symbol table info available.
#5  0xb62fb844 in getaddrinfo () from /lib/libc.so.6
No symbol table info available.
#6  0xb640fdfc in ?? () from /lib/libanl.so.1
No symbol table info available.
#7  0xb640fdfc in ?? () from /lib/libanl.so.1
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) xbacktrace
Undefined command: "xbacktrace".  Try "help".
--8<---------------cut here---------------end--------------->8---

The embedded device libc version
--8<---------------cut here---------------start------------->8---
dpkg -l | grep libc
ii  libc6          2.5.1-1eglibc2 GNU C Library: Shared libraries and Timezone
ii  libc6-dev      2.5.1-1eglibc2 GNU C Library: Development Libraries and Hea
--8<---------------cut here---------------end--------------->8---

I Could not replicate the issue on armhf and on x86. Just on this device.

In GNU Emacs 26.0.50 (build 1, arm-unknown-linux-gnueabi, GTK+ Version 2.14.7)
 of 2017-06-24 built on chulpaca
System Description:	Debian GNU/Linux testing/unstable

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --build arm-linux-gnueabi --prefix=/usr
 '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
 --without-gconf --with-xft --without-xwidgets --with-xpm=no
 --with-gif=no --without-selinux --with-gnutls=no --disable-acl
 'CFLAGS=-s -O2' LDFLAGS=-Wl,-z,defs CPPFLAGS='

Configured features:
JPEG TIFF PNG SOUND LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2
X11

Important settings:
  value of $LC_ALL: C
  locale-coding-system: nil

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm
time-date disp-table mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dynamic-setting font-render-setting move-toolbar gtk x-toolkit
x multi-tty make-network-process emacs)

Memory information:
((conses 8 97061 6799)
 (symbols 24 20026 1)
 (miscs 20 33 143)
 (strings 16 17315 3979)
 (string-bytes 1 557669)
 (vectors 8 11862)
 (vector-slots 4 440670 3882)
 (floats 8 52 312)
 (intervals 28 209 241)
 (buffers 520 11)
 (heap 1024 11720 349))