Subject: Re: bug#13997: building emacs 24.3 failed with seg fault during ./temacs --batch --load loadup bootstrap

From: Petr Hracek <[email-masked]>
Date: Mon, 25 Mar 2013 16:27:07 +0100

Hello folks,

I have found that when configure script is used without
--with-wide-int option that compilation works correctly.

For what is used for --with-wide-int?
Does have any affect on emacs?

Thank you in advance for advices
Best regards
Petr

On 03/25/2013 02:14 PM, Petr Hracek wrote:
> Hello,
>
> configure and make are called by commands:
> %configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg \
>                   --with-tiff --with-xft --with-xpm 
> --with-x-toolkit=gtk3 --with-gpm=no \
>                 --with-wide-int
>
> make bootstrap
> make
>
> If any other logs are needed I can provide them.
>
> Log from gdb is here:
>
> GNU gdb (GDB) Fedora (7.5.91.20130323-14.fc19)
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show 
> copying"
> and "show warranty" for details.
> This GDB was configured as "i686-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from 
> /builddir/build/BUILD/emacs-24.3/build-gtk/src/temacs...done.
> warning: File 
> "/builddir/build/BUILD/emacs-24.3/build-gtk/src/.gdbinit" auto-loading 
> has been declined by your `auto-load safe-path' set to 
> "$debugdir:$datadir/auto-load:/usr/bin/mono-gdb.py".
> To enable execution of this file add
>     add-auto-load-safe-path 
> /builddir/build/BUILD/emacs-24.3/build-gtk/src/.gdbinit
> line to your configuration file "/builddir/.gdbinit".
> To completely disable this security protection add
>     set auto-load safe-path /
> line to your configuration file "/builddir/.gdbinit".
> For more information about this security protection see the
> "Auto-loading safe path" section in the GDB manual.  E.g., run from 
> the shell:
>     info "(gdb)Auto-loading safe path"
> (gdb) run --batch --load loadup bootstrap
> Starting program: 
> /builddir/build/BUILD/emacs-24.3/build-gtk/src/temacs --batch --load 
> loadup bootstrap
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/libthread_db.so.1".
> Missing separate debuginfo for /lib/libgraphite2.so.3
> Try: yum --disablerepo='*' --enablerepo='*debug*' install 
> /usr/lib/debug/.build-id/19/1902dc8ee4d4ae2413864b662da1f5ede07ce3.debug
> process 4458 is executing new program: 
> /builddir/build/BUILD/emacs-24.3/build-gtk/src/temacs
> Missing separate debuginfos, use: debuginfo-install 
> GConf2-3.2.6-2.fc19.i686 ImageMagick-6.7.8.9-5.fc19.i686 
> alsa-lib-1.0.26-3.fc19.i686 at-spi2-atk-2.7.91-1.fc19.i686 
> at-spi2-core-2.7.91-1.fc19.i686 atk-2.7.91-1.fc19.i686 
> bzip2-libs-1.0.6-8.fc19.i686 cairo-1.12.14-1.fc19.i686 
> cairo-gobject-1.12.14-1.fc19.i686 dbus-glib-0.100-3.fc19.i686 
> dbus-libs-1.6.8-4.fc19.i686 expat-2.1.0-5.fc19.i686 
> fontconfig-2.10.91-3.fc19.i686 freetype-2.4.11-3.fc19.i686 
> gdk-pixbuf2-2.27.3-1.fc19.i686 giflib-4.1.6-7.fc19.i686 
> glib2-2.35.9-1.fc19.i686 glibc-2.17-4.fc19.i686 gmp-5.1.1-2.fc19.i686 
> gnutls-3.1.9-1.fc19.i686 gtk3-3.7.14-1.fc19.i686 
> harfbuzz-0.9.14-1.fc19.i686 jbigkit-libs-2.0-8.fc19.i686 
> lcms-libs-1.19-9.fc19.i686 libICE-1.0.8-5.fc19.i686 
> libSM-1.2.1-5.fc19.i686 libX11-1.5.99.901-2.fc19.i686 
> libXau-1.0.6-7.fc19.i686 libXcomposite-0.4.4-3.fc19.i686 
> libXcursor-1.1.13-4.fc19.i686 libXdamage-1.1.4-3.fc19.i686 
> libXext-1.3.1-4.fc19.i686 libXfixes-5.0-5.fc19.i686 
> libXft-2.3.1-4.fc19.i686 libXi-1.7-1.fc19.i686 
> libXinerama-1.1.2-4.fc19.i686 libXpm-3.5.10-4.fc19.i686 
> libXrandr-1.4.0-3.fc19.i686 libXrender-0.9.7-4.fc19.i686 
> libXt-1.1.3-3.fc19.i686 libXxf86vm-1.1.2-4.fc19.i686 
> libcroco-0.6.8-2.fc19.i686 libdrm-2.4.42-2.fc19.i686 
> libffi-3.0.13-1.fc19.i686 libgcc-4.8.0-1.fc19.i686 
> libgomp-4.8.0-1.fc19.i686 libicu-50.1.2-5.fc19.i686 
> libjpeg-turbo-1.2.90-1.fc19.i686 libotf-0.9.13-2.fc19.i686 
> libpng-1.5.13-2.fc19.i686 librsvg2-2.37.0-2.fc19.i686 
> libselinux-2.1.13-11.fc19.i686 libstdc++-4.8.0-1.fc19.i686 
> libtasn1-3.2-3.fc19.i686 libtiff-4.0.3-5.fc19.i686 
> libtool-ltdl-2.4.2-12.fc19.i686 libuuid-2.22.2-6.fc19.i686 
> libwayland-client-1.0.5-1.fc19.i686 
> libwayland-cursor-1.0.5-1.fc19.i686 
> libwayland-server-1.0.5-1.fc19.i686 libxcb-1.9-2.fc19.i686 
> libxkbcommon-0.2.0-2.fc19.i686 libxml2-2.9.0-4.fc19.i686 
> m17n-lib-1.6.4-7.fc19.i686 mesa-libEGL-9.1-3.fc19.i686 
> mesa-libGL-9.1-3.fc19.i686 mesa-libgbm-9.1-3.fc19.i686 
> mesa-libglapi-9.1-3.fc19.i686 ncurses-libs-5.9-9.20130316.fc19.i686 
> nettle-2.6-2.fc19.i686 p11-kit-0.17.4-1.fc19.i686 
> pango-1.33.9-1.fc19.i686 pcre-8.32-4.fc19.i686 
> pixman-0.28.0-3.fc19.i686 systemd-libs-198-7.fc19.i686 
> xz-libs-5.1.2-4alpha.fc19.i686 zlib-1.2.7-10.fc19.i686
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/libthread_db.so.1".
> Missing separate debuginfo for /lib/libgraphite2.so.3
> Try: yum --disablerepo='*' --enablerepo='*debug*' install 
> /usr/lib/debug/.build-id/19/1902dc8ee4d4ae2413864b662da1f5ede07ce3.debug
>
> Program received signal SIGSEGV, Segmentation fault.
> Fmake_vector (length=1511, init=0) at 
> /builddir/build/BUILD/emacs-24.3/src/alloc.c:3042
> 3042        p->contents[i] = init;
> Missing separate debuginfos, use: debuginfo-install 
> GConf2-3.2.6-2.fc19.i686 ImageMagick-6.7.8.9-5.fc19.i686 
> alsa-lib-1.0.26-3.fc19.i686 at-spi2-atk-2.7.91-1.fc19.i686 
> at-spi2-core-2.7.91-1.fc19.i686 atk-2.7.91-1.fc19.i686 
> bzip2-libs-1.0.6-8.fc19.i686 cairo-1.12.14-1.fc19.i686 
> cairo-gobject-1.12.14-1.fc19.i686 dbus-glib-0.100-3.fc19.i686 
> dbus-libs-1.6.8-4.fc19.i686 expat-2.1.0-5.fc19.i686 
> fontconfig-2.10.91-3.fc19.i686 freetype-2.4.11-3.fc19.i686 
> gdk-pixbuf2-2.27.3-1.fc19.i686 giflib-4.1.6-7.fc19.i686 
> glib2-2.35.9-1.fc19.i686 glibc-2.17-4.fc19.i686 gmp-5.1.1-2.fc19.i686 
> gnutls-3.1.9-1.fc19.i686 gtk3-3.7.14-1.fc19.i686 
> harfbuzz-0.9.14-1.fc19.i686 jbigkit-libs-2.0-8.fc19.i686 
> lcms-libs-1.19-9.fc19.i686 libICE-1.0.8-5.fc19.i686 
> libSM-1.2.1-5.fc19.i686 libX11-1.5.99.901-2.fc19.i686 
> libXau-1.0.6-7.fc19.i686 libXcomposite-0.4.4-3.fc19.i686 
> libXcursor-1.1.13-4.fc19.i686 libXdamage-1.1.4-3.fc19.i686 
> libXext-1.3.1-4.fc19.i686 libXfixes-5.0-5.fc19.i686 
> libXft-2.3.1-4.fc19.i686 libXi-1.7-1.fc19.i686 
> libXinerama-1.1.2-4.fc19.i686 libXpm-3.5.10-4.fc19.i686 
> libXrandr-1.4.0-3.fc19.i686 libXrender-0.9.7-4.fc19.i686 
> libXt-1.1.3-3.fc19.i686 libXxf86vm-1.1.2-4.fc19.i686 
> libcroco-0.6.8-2.fc19.i686 libdrm-2.4.42-2.fc19.i686 
> libffi-3.0.13-1.fc19.i686 libgcc-4.8.0-1.fc19.i686 
> libgomp-4.8.0-1.fc19.i686 libicu-50.1.2-5.fc19.i686 
> libjpeg-turbo-1.2.90-1.fc19.i686 libotf-0.9.13-2.fc19.i686 
> libpng-1.5.13-2.fc19.i686 librsvg2-2.37.0-2.fc19.i686 
> libselinux-2.1.13-11.fc19.i686 libstdc++-4.8.0-1.fc19.i686 
> libtasn1-3.2-3.fc19.i686 libtiff-4.0.3-5.fc19.i686 
> libtool-ltdl-2.4.2-12.fc19.i686 libuuid-2.22.2-6.fc19.i686 
> libwayland-client-1.0.5-1.fc19.i686 
> libwayland-cursor-1.0.5-1.fc19.i686 
> libwayland-server-1.0.5-1.fc19.i686 libxcb-1.9-2.fc19.i686 
> libxkbcommon-0.2.0-2.fc19.i686 libxml2-2.9.0-4.fc19.i686 
> m17n-lib-1.6.4-7.fc19.i686 mesa-libEGL-9.1-3.fc19.i686 
> mesa-libGL-9.1-3.fc19.i686 mesa-libgbm-9.1-3.fc19.i686 
> mesa-libglapi-9.1-3.fc19.i686 ncurses-libs-5.9-9.20130316.fc19.i686 
> nettle-2.6-2.fc19.i686 p11-kit-0.17.4-1.fc19.i686 
> pango-1.33.9-1.fc19.i686 pcre-8.32-4.fc19.i686 
> pixman-0.28.0-3.fc19.i686 systemd-libs-198-7.fc19.i686 
> xz-libs-5.1.2-4alpha.fc19.i686 zlib-1.2.7-10.fc19.i686
> (gdb) where
> #0  Fmake_vector (length=1511, init=0) at 
> /builddir/build/BUILD/emacs-24.3/src/alloc.c:3042
> #1  0x0820aeb9 in init_obarray () at 
> /builddir/build/BUILD/emacs-24.3/src/lread.c:3946
> #2  0x080591e2 in main (argc=<optimized out>, argv=0xbffff6f4) at 
> /builddir/build/BUILD/emacs-24.3/src/emacs.c:1093
> (gdb) bt full
> #0  Fmake_vector (length=1511, init=0) at 
> /builddir/build/BUILD/emacs-24.3/src/alloc.c:3042
>         vector = <optimized out>
>         sizei = 1511
>         i = 0
>         p = <optimized out>
> #1  0x0820aeb9 in init_obarray () at 
> /builddir/build/BUILD/emacs-24.3/src/lread.c:3946
> No locals.
> #2  0x080591e2 in main (argc=<optimized out>, argv=0xbffff6f4) at 
> /builddir/build/BUILD/emacs-24.3/src/emacs.c:1093
>         dummy = -5301141189654895072
>         stack_bottom_variable = -74 '\266'
>         do_initial_setlocale = <optimized out>
>         dumping = <optimized out>
>         skip_args = 1
>         rlim = {rlim_cur = 8388608, rlim_max = 18446744073709551615}
>         no_loadup = false
>         junk = 0x0
>         dname_arg = 0x0
>         ch_to_dir = 0x8053c1d <_init+9> "\201\303\343\243("
> (gdb)
>
> Best regards
> Petr
>
>
>
> On 03/22/2013 10:25 AM, Petr Hracek wrote:
>> Full backtrace is:
>> (gdb) bt full
>> #0 Fmake_vector (length=1511, init=0) at 
>> /builddir/build/BUILD/emacs-24.3/src/alloc.c:3042
>> vector = <optimized out>
>> sizei = 1511
>> i = 0
>> p = <optimized out>
>> #1 0x0820aec9 in init_obarray () at 
>> /builddir/build/BUILD/emacs-24.3/src/lread.c:3946
>> No locals.
>> #2 0x080591f2 in main (argc=<optimized out>, argv=0xbffff6f4) at 
>> /builddir/build/BUILD/emacs-24.3/src/emacs.c:1093
>> dummy = -5301053228724652512
>> stack_bottom_variable = -74 '\266'
>> do_initial_setlocale = <optimized out>
>> dumping = <optimized out>
>> skip_args = 1
>> rlim = {rlim_cur = 8388608, rlim_max = 18446744073709551615}
>> no_loadup = false
>> junk = 0x0
>> dname_arg = 0x0
>> ch_to_dir = 0x8053c29 <_init+9> "\201\303ף("
>> (gdb)
>>
>> On 03/19/2013 03:27 PM, Petr Hracek wrote:
>>> Here is backtrace from gdb:
>>> Program received signal SIGSEGV, Segmentation fault.
>>> Fmake_vector (length=1511, init=0) at 
>>> /builddir/build/BUILD/emacs-24.3/src/alloc.c:3042
>>> 3042 p->contents[i] = init;
>>> (gdb) bt
>>> #0 Fmake_vector (length=1511, init=0) at 
>>> /builddir/build/BUILD/emacs-24.3/src/alloc.c:3042
>>> #1 0x0820ad19 in init_obarray () at 
>>> /builddir/build/BUILD/emacs-24.3/src/lread.c:3946
>>> #2 0x08059042 in main (argc=<optimized out>, argv=0xbffff6f4) at 
>>> /builddir/build/BUILD/emacs-24.3/src/emacs.c:1093
>>> (gdb)
>>> (gdb) show args
>>> Argument list to give program being debugged when it is started is 
>>> "--batch --load loadup bootstrap".
>>> (gdb)
>>>
>>> Hopefully finally I have gather enought informations.
>>> If not please let me know.
>>>
>>> On 03/19/2013 11:19 AM, Andreas Schwab wrote:
>>>> You are missing the most important information: the backtrace.
>>>>
>>>> Andreas.
>>>>
>>>
>>
>

-- 
S pozdravem / Best regards

Petr Hracek

Red Hat Czech s.r.o.
BaseOS Core Services Brno

Email: [email-masked]
Web: www.cz.redhat.com