unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: "Jan D." <jan.h.d@swipnet.se>
Cc: 10230@debbugs.gnu.org
Subject: bug#10230: 24.0.92; Warnings on emacs startup
Date: Tue, 06 Dec 2011 15:48:26 +0100	[thread overview]
Message-ID: <8739cx69j9.fsf@gmail.com> (raw)
In-Reply-To: <4EDDFBE1.7090305@swipnet.se> (Jan D.'s message of "Tue, 06 Dec 2011 12:26:25 +0100")

"Jan D." <jan.h.d@swipnet.se> writes:

> thierry skrev 2011-12-06 10:28:
>> Hi all,
>> I have tried building emacs like this:
>>
>> "./configure --with-x-toolkit=lucid --without-rsvg --without-gconf --with-wide-int"
>>
>> Emacs works fine except I have these warning messages on startup when
>> starting from command line:
>>
>> --8<---------------cut here---------------start------------->8---
>> (process:22974): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
>>
>> (process:22974): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
>>
>> (process:22974): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
>> --8<---------------cut here---------------end--------------->8---
>>
>
> What libraries are linked to your Emacs?  Can you send the output of
> ldd?

	linux-gate.so.1 =>  (0x0082e000)
	libXaw3d.so.6 => /usr/lib/libXaw3d.so.6 (0x0067b000)
	libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00949000)
	libXt.so.6 => /usr/lib/i386-linux-gnu/libXt.so.6 (0x00110000)
	libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0x0016c000)
	libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0x00ef0000)
	libtiff.so.4 => /usr/lib/i386-linux-gnu/libtiff.so.4 (0x00e60000)
	libjpeg.so.62 => /usr/lib/i386-linux-gnu/libjpeg.so.62 (0x00cc2000)
	libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0x00b7a000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x0030b000)
	libgif.so.4 => /usr/lib/libgif.so.4 (0x006f7000)
	libXpm.so.4 => /usr/lib/libXpm.so.4 (0x00fb4000)
	libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0x00175000)
	libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0x00557000)
	libXft.so.2 => /usr/lib/i386-linux-gnu/libXft.so.2 (0x00587000)
	libasound.so.2 => /usr/lib/i386-linux-gnu/libasound.so.2 (0x00335000)
	libdbus-1.so.3 => /lib/i386-linux-gnu/libdbus-1.so.3 (0x002ab000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00992000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x009ad000)
	libgpm.so.2 => /usr/lib/libgpm.so.2 (0x002f4000)
	libncurses.so.5 => /lib/libncurses.so.5 (0x00426000)
	libtinfo.so.5 => /lib/libtinfo.so.5 (0x00448000)
	libgio-2.0.so.0 => /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0x00ce6000)
	libgobject-2.0.so.0 => /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 (0x00602000)
	libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0x00700000)
	libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0x00467000)
	libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0x00869000)
	libotf.so.0 => /usr/lib/libotf.so.0 (0x004fe000)
	libm17n-flt.so.0 => /usr/lib/libm17n-flt.so.0 (0x002fb000)
	libm17n-core.so.0 => /usr/lib/libm17n-core.so.0 (0x00513000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00fc5000)
	libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0x00539000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0x00c86000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0x00562000)
	/lib/ld-linux.so.2 (0x00ba4000)
	libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0x0059d000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00306000)
	librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x0054c000)
	libgmodule-2.0.so.0 => /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 (0x00c27000)
	libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0x005bc000)
	libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0x00c9f000)
	libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 (0x00577000)
	libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0x0057d000)
	libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0x00b11000)
	libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0x00651000)
	libthai.so.0 => /usr/lib/i386-linux-gnu/libthai.so.0 (0x005da000)
	libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0x005e4000)
	libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0x005e8000)
	libdatrie.so.1 => /usr/lib/i386-linux-gnu/libdatrie.so.1 (0x005ef000)


> 
> Also if you can start the debugger and put breakpoints for g_log and
> g_logv and then post the backtrace when the breakpoint is hit, that
> would be nice.  We can then see exactly what library is causing these
> messages.  Previously Emacs tried to call g_type_init as needed but as
> new libraryes that use glib was added (like dbus for example), this
> wasn't kept up to date.

Not sure I set the break points correctly, correct me if wrong.


GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/thierry/tmp/emacs-build/src/emacs...done.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0.0
TERM = screen
Breakpoint 1 at 0x8170530: file /home/thierry/download/emacs-bzr/trunk/src/emacs.c, line 387.
Temporary breakpoint 2 at 0x8195480: file /home/thierry/download/emacs-bzr/trunk/src/sysdep.c, line 855.
(gdb) b g_log
Function "g_log" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 3 (g_log) pending.
(gdb) b g_logv
Function "g_logv" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 4 (g_logv) pending.
(gdb) run -Q
Starting program: /home/thierry/tmp/emacs-build/src/emacs -Q
[Thread debugging using libthread_db enabled]

Breakpoint 3, 0x0093c0a0 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
(gdb) n
Single stepping until exit from function g_log,
which has no line number information.
Cannot access memory at address 0x54
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) c
Continuing.

Breakpoint 4, 0x0093bb80 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
(gdb) c
Continuing.

(process:22260): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()

Breakpoint 3, 0x0093c0a0 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
(gdb) c
Continuing.

Breakpoint 4, 0x0093bb80 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
(gdb) c
Continuing.

(process:22260): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Breakpoint 3, 0x0093c0a0 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
(gdb) c
Continuing.

Breakpoint 4, 0x0093bb80 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
(gdb) c
Continuing.

(process:22260): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
[Inferior 1 (process 22260) exited normally]

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 





  parent reply	other threads:[~2011-12-06 14:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-06  9:28 bug#10230: 24.0.92; Warnings on emacs startup thierry
2011-12-06 11:26 ` Jan D.
2011-12-06 13:26   ` Thierry Volpiatto
2011-12-06 14:48   ` Thierry Volpiatto [this message]
2011-12-06 20:37     ` Jan Djärv
2011-12-06 22:38       ` Thierry Volpiatto
2011-12-07  3:38         ` Jan Djärv
2011-12-09 16:30         ` Jan Djärv
2011-12-09 17:36           ` Thierry Volpiatto
2011-12-10 12:39             ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739cx69j9.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=10230@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).