Subject: td_map_lwp2thr: process callback error (threads / gdb / evolution)
To: None <current-users@netbsd.org>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: current-users
Date: 10/17/2003 23:32:53
I'm trying to debug the new 1.4.x branch of pkgsrc/mail/evolution, and I'm
running into an interesting error in GDB, and I'm uncertain if I should
assume that this is an Evo* code issue, or a NetBSD pthreads issue or
maybe a GDB issue:

The only related link Google produces is:

http://mail-index.netbsd.org/netbsd-bugs/2003/05/29/0009.html

$ gdb evolution
GNU gdb 5.3nb1
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 "i386--netbsdelf"...
(gdb) run
Starting program: /opt/bin/evolution

Program received signal SIGTRAP, Trace/breakpoint trap.
0x49082813 in getdents () from /usr/lib/libc.so.12
warning: find_active_thread: td_map_lwp2thr: process callback error

No active thread found

(gdb)  bt
#0  folder_browser_factory_get_control_list () at
folder-browser-factory.c:204
#1  0x49264d7e in mail_msgport_received (source=0x81afa40, cond=G_IO_IN,
    d=0x8143520) at mail-mt.c:421
#2  0x48fcf39f in g_io_unix_dispatch () from
/usr/pkg/lib/libglib-2.0.so.200
#3  0x48fae8bd in g_main_dispatch () from /usr/pkg/lib/libglib-2.0.so.200
#4  0x48faf8b8 in g_main_context_dispatch ()
   from /usr/pkg/lib/libglib-2.0.so.200
#5  0x48fafbcb in g_main_context_iterate ()
   from /usr/pkg/lib/libglib-2.0.so.200
#6  0x48fafe0c in g_main_context_iteration ()
   from /usr/pkg/lib/libglib-2.0.so.200
#7  0x48bb17f0 in gtk_main_iteration () from
/usr/pkg/lib/libgtk-x11-2.0.so.200
#8  0x49264870 in mail_msg_wait (msgid=27) at mail-mt.c:305
/autobuild/HEAD/src/gnu/dist/gdb/gdb/utils.c:981: gdb-internal-error:
virtual memory exhausted: can't allocate 4072 bytes.
An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n)


...At this point gdb crashes out and cores.  Without GDBing GDB, I'm
uncertain how to proceed.  I'm not sure why it cant allocate a block, as
at that point swap is only at 25% capacity.


Suggestions?


l8*
	-lava

x.25 - minix - bitnet - plan9 - 110 bps - ASR 33 - base8

---------- Forwarded message ----------
Date: Fri, 17 Oct 2003 22:57:39 -0400 (EDT)
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
To: evolution@lists.ximian.com
Subject: Re: [Evolution] Setup Assistant has unpopulated "Server Types"
    drop-down in Sending / Receiving mail dialog

On Fri, 17 Oct 2003, Brian A. Seklecki wrote:

>
> Setup Assistant has unpopulated "Server Types" drop-down in Sending /
> Receiving mail dialog.


I was looking at this in GDB.  It would seem there's crash that happens,
but the Setup Assistant wants to run anwyway:

$ gdb evolution
GNU gdb 5.3nb1
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 "i386--netbsdelf"...
(gdb) run
Starting program: /opt/bin/evolution

(evolution:2134): evolution-mail-WARNING **: Could not load:
/opt/lib/evolution/1.4/evolution-mail-importers/libevolution-netscape-importer.so:
/opt/lib/evolution/1.4/evolution-mail-importers/libevolution-netscape-importer.so:
Undefined PLT symbol "mail_importer_make_local_folder" (symnum = 226)

(evolution:2134): evolution-mail-WARNING **: Could not load:
/opt/lib/evolution/1.4/evolution-mail-importers/libmbox.so:
/opt/lib/evolution/1.4/evolution-mail-importers/libmbox.so: Undefined PLT
symbol "camel_folder_append_message" (symnum = 30)

(evolution:2134): evolution-mail-WARNING **: Could not load:
/opt/lib/evolution/1.4/evolution-mail-importers/liboutlook.so:
/opt/lib/evolution/1.4/evolution-mail-importers/liboutlook.so: Undefined
PLT symbol "camel_exception_new" (symnum = 34)

Program received signal SIGTRAP, Trace/breakpoint trap.
folder_browser_factory_get_control_list () at folder-browser-factory.c:204
204     {
warning: find_active_thread: td_map_lwp2thr: process callback error

No active thread found

(gdb) bt
#0  folder_browser_factory_get_control_list () at
folder-browser-factory.c:204
#1  0x49264d7e in mail_msgport_received (source=0x81aea40, cond=G_IO_IN,
    d=0x8143520) at mail-mt.c:421
#2  0x48fcf39f in g_io_unix_dispatch () from
/usr/pkg/lib/libglib-2.0.so.200
#3  0x48fae8bd in g_main_dispatch () from /usr/pkg/lib/libglib-2.0.so.200
#4  0x48faf8b8 in g_main_context_dispatch ()
   from /usr/pkg/lib/libglib-2.0.so.200
#5  0x48fafbcb in g_main_context_iterate ()
   from /usr/pkg/lib/libglib-2.0.so.200
#6  0x48fafe0c in g_main_context_iteration ()
   from /usr/pkg/lib/libglib-2.0.so.200
#7  0x48bb17f0 in gtk_main_iteration () from
/usr/pkg/lib/libgtk-x11-2.0.so.200
#8  0x49264870 in mail_msg_wait (msgid=27) at mail-mt.c:305


-----

line 204 of mail/folder-factory-browser.c


    202 EList *
    203 folder_browser_factory_get_control_list (void)
    204 {
    205         if (!control_list)
    206                 control_list = e_list_new (NULL, NULL, NULL);
    207         return control_list;
    208 }
    209
    210 FolderBrowser *


-lava

>
> Have a look at:
>
> http://digitalfreaks.org/~lavalamp/evo_no_servertypes_sending.png
> and:
> http://digitalfreaks.org/~lavalamp/evo_no_servertypes.png
>
> Error messages to stdout when starting CAMEL_DEBUG=1 && evo* --debug=:
>
> http://digitalfreaks.org/~lavalamp/evo_debug_noservers.txt
>
> # uname -a
> NetBSD lovebox 1.6ZD NetBSD 1.6ZD (BLACKPEARL) #0: Thu Oct 16 21:45:08 EDT
> 2003  root@lovebox:/usr/src/sys/arch/i386/compile/BLACKPEARL i386
>
> # ps gauxww|grep -i evo
> lavalamp 23733  1.4  6.8  5680 17584 p1  Sa+   7:29PM 0:01.35 evolution
> (evolution-1.4)
> lavalamp 27578  0.0  2.3  1012  5856 ??  S     7:29PM 0:00.18
> /opt/libexec/evolution/1.4/evolution-wombat
> --oaf-activate-iid=OAFIID:GNOME_Evolution_Wombat_InterfaceCheck
> --oaf-ior-fd=13
> lavalamp 29897  0.1  3.0   564  7728 ??  S     7:29PM 0:00.20
> /opt/libexec/evolution/1.4/evolution-alarm-notify
> --oaf-activate-iid=OAFIID:GNOME_Evolution_Calendar_AlarmNotify_Factory
> --oaf-ior-fd=15 (evolution-alarm-)
>
> This is compiled w/ evolution-1.4.5 source tarball.
>
> I'm not even sure how to go about debugging this.  I doubt ktrace/kdump
> would be insightful as evo* is actually a dozen or so processes forking
> off in the background.
>
> Relevant package information:
>
> digest-20021220     Message digest wrapper utility
> bash-2.05.2.7nb1    The GNU Bourne Again Shell
> cpuflags-0.57       Determine compiler flags to best target current cpu
> libtool-base-1.4.20010614nb16 Generic shared library support script (the
> script itself)
> pkgchk-1.44         Check installed package versions against pkgsrc
> audit-packages-1.23 Tools to show vulnerabilities in installed packages
> gmake-3.80nb2       GNU version of 'make' utility
> Hermes-1.3.3        Library for conversion of pixel graphics
> libungif-4.1.0.1    Tools and library routines for working with GIF images
> jpeg-6bnb1          IJG's jpeg compression utilities
> png-1.2.5nb2        Library for manipulating PNG images
> tiff-3.5.7nb1       Library and tools for reading and writing TIFF data
> files
> x11-links-0.15      Shadow tree of links to /usr/X11R6 headers and
> libraries
> windowmaker-0.80.2nb2 GNUStep-compliant NEXTSTEP(tm) window manager clone
> aterm-0.4.2nb3      Aterm (Afterstep XVT) - a VT102 emulator for the X
> window system
> perl-5.8.1          Practical Extraction and Report Language
> pkgconfig-0.15.0    System for managing library compile/link flags
> glib2-2.2.3nb1      Some useful routines for C programming
> atk-1.2.4           Set of interfaces for accessibility
> expat-1.95.6nb1     XML parser library written in C
> fontconfig-2.2.1nb1 Library for configuring and customizing font access
> render-0.8          Headers for X11 render extension
> Xrender-0.8.3nb1    Client library for the X Rendering Extension protocol
> Xft2-2.1.2nb1       Library for configuring and customizing font access
> pango-1.2.5         Library for layout and rendering of text
> gtk2+-2.2.4         Gimp toolkit. Libraries for building X11 user
> interfaces
> gnome2-dirs-1.2     Shared GTK/GNOME (v2) directories
> libao-0.8.3nb1      cross-platform audio library
> libaudiofile-0.2.4  Sound library for SGI audio file
> aspell-0.50.3nb4    Spell checker with good multi-language support
> gtkspell-2.0.2nb4   Spell checking GtkTextView widget
> gaim-0.70           GTK2 based client for the AOL Instant Messenger chat
> system
> rpm-2.5.4nb1        The Red Hat Package Manager
> rpm2pkg-1.3nb1      Convert RPM archives to NetBSD packages
> suse_base-7.3nb4    Linux compatibility package
> unzip-5.50nb2       List, test and extract compressed files in a ZIP
> archive
> zip-2.3nb2          Create/update ZIP files compatible with pkzip
> libIDL-0.8.0nb2     CORBA Interface Definition Language parser
> glib-1.2.10nb5      Some useful routines for C programming
> gtk+-1.2.10nb5      The GIMP Toolkit - libraries for building X11 user
> interfaces
> xmlcatmgr-1.0       XML (and SGML) catalog manager
> libxml2-2.5.11      XML parser library from the GNOME project
> gnet-2.0.4          Simple network library
> mtr-gtk-0.54nb1     Traceroute and ping in a single graphical network
> diagnostic tool
> sudo-1.6.7.5        Allow others to run commands as root
> pan-0.14.2          Newsreader for GTK2
> m4-1.4nb1           GNU version of Unix m4 macro-processor
> bison-1.875nb1      GNU yacc(1) replacement
> xchat-2.0.5nb1      X11 (X Window System) IRC client, using the GTK2
> toolkit
> openmotif-2.1.30nb2 The Open Group Motif toolkit for the X Window System
> xmmix-1.2nb1        X interface to the audio mixer device
> libart2-2.3.15nb1   High-performance 2D graphics library
> popt-1.7nb2         Command line option parsing library
> gdk-pixbuf-0.22.0nb1 The GNOME image loading library
> gnome-mime-data-2.2.0nb3 MIME and Application database for GNOME2
> db3-3.11.2          Sleepycat Software's Berkeley DB version 3
> libxml-1.8.17nb1    XML parser, mainly used by the GNOME project
> esound-0.2.32       The Enlightened sound daemon
> libmikmod-3.1.10    MikMod Sound Library
> libogg-1.0.0.8      Ogg project codecs library
> libvorbis-1.0.0.8   Library for the Ogg Vorbis audio encoding format
> autoconf213-2.13    Generates automatic source code configuration scripts
> (old version)
> automake14-1.4.6    GNU Standards-compliant Makefile generator (old
> version)
> python22-2.2.3      Interpreted, interactive, object-oriented programming
> language
> libglade2-2.0.1nb10 Runtime interpreter for GLADE GUI files (v2)
> MesaLib-5.0.2       Graphics library similar to SGI's OpenGL
> libgnomecanvas-2.2.1nb1 GNOME Canvas library
> glu-5.0.2           GLU polygon tesselation facility for Mesa
> glut-5.0.2          GLUT Graphics library similar to SGI's OpenGL
> gail-1.2.0nb2       GNOME Accessibility Implementation Library
> cdparanoia-3.0.9.8  CDDA reading utility with extra data verification
> features
> xmms-1.2.7nb9       X Multimedia System - an audio player with a Winamp
> GUI
> linc-1.0.1nb2       Network client/server library
> ORBit2-2.6.0nb3     High-performance CORBA ORB with C language support
> GConf2-2.2.0nb2     configuration database system used by GNOME (v2)
> bonobo-activation-2.1.1nb2 Object activation framework for GNOME2
> libbonobo-2.2.0nb3  GNOME2 Object activation framework library
> fam-2.6.9nb1        File Alteration Monitor
> rar-2.02            File archiver (binary port)
> gnome-vfs2-2.2.4nb3 GNOME Virtual File System (v2)
> libgtkhtml-2.2.1nb2 Lightweight HTML rendering GTK2 widget
> iso8879-1986nb2     Character entity sets from ISO 8879:1986 (SGML)
> docbook-4.2nb3      SGML DTD designed for computer documentation
> libxslt-1.0.33      XSLT parser library from the GNOME project
> libgnome-2.2.3nb2   Core GNOME2 library (non-graphical)
> libbonoboui-2.2.4nb1 GNOME2 Object activation framework library (graphical
> version)
> suse_compat-7.3     Linux compatibility package with old shared libraries
> libgnomeui-2.2.2nb1 Core GNOME2 graphical libraries
> libgnomeprint-2.2.1.2nb2 Library for the GNOME2 Printing Architecture
> libgnomeprintui-2.2.1.2nb2 Graphical library for the GNOME2 Printing
> Architecture
> dsssl-docbook-modular-1.57nb2 DSSSL stylesheets for the DocBook DTD by
> Norman Walsh
> intltool-0.27.1     Toolbox for internationalisation
> gftp-2.0.15         Multithreaded GTK2+ ftp client
> jade-1.2.1nb7       Object-oriented SGML/XML parser toolkit and DSSSL
> engine
> gtk-doc-0.9         Tools for authors of the GTK+ reference documentation
> autoconf-2.57       Generates automatic source code configuration scripts
> gnupg-1.2.3         Privacy Guard, public-Key encryption and digital
> signatures
> ttmkfdir-0          Tool that creates a fonts.scale file
> gettext-lib-0.11.5nb2 Tools for providing messages in different languages,
> libintl only
> mozilla-fonts-1.0   Optimized fonts for Netscape/Mozilla
> gnome-dirs-1.2      Shared GTK/GNOME (v1 and v2) directories
> gnome1-dirs-1.2     Shared GTK/GNOME (v1) directories
> suse_x11-7.3nb2     Linux compatibility package for X11 binaries
> netpbm-10.11.8      Toolkit for conversion of images between different
> formats
> suse_gtk-7.3        Linux compatibility package for GTK binaries
> imlib-1.9.14nb4     Image manipulation library for X11
> freetype-lib-1.3.1nb1 TrueType font rendering engine and library API
> ORBit-0.5.15nb5     High-performance CORBA ORB with support for the C
> language
> gnome-libs-1.4.2    Libraries for the GNU Network Object Model Environment
> gdk-pixbuf-gnome-0.22.0nb1 The GNOME image loading library GNOME canvas
> support add-on
> ghostscript-fonts-6.0 Postscript fonts for Aladdin Ghostscript
> ghostscript-gnu-7.05nb1 GNU Postscript interpreter
> libunicode-0.4      Library for manipulating Unicode characters and
> strings
> gnome-print-0.36nb3 Prototype implementation of the Gnome Printing
> Architecture
> oaf-0.6.10nb2       New object activation framework for GNOME
> bonobo-1.0.18nb5    Architecture for creating reusable software components
> GConf-1.0.9nb3      Configuration database system used by GNOME
> soup-0.7.10nb4      Callback-based mechanism for sending and servicing
> SOAP requests
> MozillaFirebird-0.6.1 Lightweight gecko-based web browser
> cabextract-0.6      Microsoft cabinet (.CAB) file extractor
> ms-ttf-20020306nb2  TrueType fonts from Microsoft
> mpeg-1.3.1          Library for decoding MPEG movies
> gimp-base-1.2.5nb1  GNU Image Manipulation Program (base)
> gimp-data-1.2nb3    GNU Image Manipulation Program (extra brushes and
> patterns)
> gimp-print-lib-4.2.5nb1 Drivers for Canon, Epson, Lexmark, and PCL
> printers
> gimp-print-4.2.5nb2 GIMP print plugin
> gimp-print-escputil-4.2.5nb1 Epson Stylus inkjet printer tool
> gimp-1.2.5          GNU Image Manipulation Program
> gnome-common-1.2.4  Generic M4 macros for GNOME development
>
> .... gtkhtml 3.0.9 and gal2 -rHEAD are in /opt per my message to
> evolution-hakers@
>
> l8*
> 	-lava
>
> x.25 - minix - bitnet - plan9 - 110 bps - ASR 33 - base8
> _______________________________________________
> evolution maillist  -  evolution@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/evolution
>

l8*
	-lava

x.25 - minix - bitnet - plan9 - 110 bps - ASR 33 - base8
_______________________________________________
evolution maillist  -  evolution@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/evolution