[indonesia:work/GNOME/balsa] (0)% gdb src/balsa
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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-redhat-linux"...
(gdb) run
Starting program: /u2/work/GNOME/balsa/src/balsa 
[New Thread 1024 (LWP 10665)]
changing server settings for '' ((nil))
Loading its configuration...
Server loaded, host: mx.kscanners.com, port 143
imap_dir: reading for imap/
Deph: 0 -------------------------------------------
ADDING FOLDER  imap/Sw+Hw
ADDING FOLDER  imap/Customers
ADDING FOLDER  imap/Mates
ADDING FOLDER  imap/Develop
ADDING FOLDER  imap/KS
ADDING FOLDER  imap/SGI
ADDING MAILBOX imap/Spam
ADDING FOLDER  imap/Spam
Deph: 1 -------------------------------------------
ADDING MAILBOX imap/Sw+Hw/Galeon
ADDING FOLDER  imap/Sw+Hw/Galeon
[ ... ]
Deph: 3 -------------------------------------------
imap_dir_cb:  main mailbox node KS mailbox is (nil)
ber_dump: buf=0x081f7b00 ptr=0x081f7b02 end=0x081f7b55 len=83
  0000:  02 01 02 63 4e 04 0e 6f  3d 6b 73 63 61 6e 6e 65   ...cN..o=kscanne  
  0010:  72 73 2e 6e 6f 0a 01 02  0a 01 00 02 01 00 02 01   rs.no...........  
  0020:  00 01 01 00 a0 12 87 04  6d 61 69 6c a4 0a 04 02   .... ...mailĪ...  
  0030:  63 6e 30 04 80 02 54 4f  30 19 04 02 63 6e 04 04   cn0...TO0...cn..  
  0040:  6d 61 69 6c 04 02 73 6e  04 09 67 69 76 65 6e 6e   mail..sn..givenn  
  0050:  61 6d 65                                           ame               
Message: expand_alias_find_match(): Found [Toralf Lund]
Message: expand_alias_find_match(): Setting to [Toralf Lund <toralf@kscanners.com>]
ber_scanf fmt (x) ber:
Message: expand_alias_find_match(): Found [Toralf Lund]
Message: expand_alias_find_match(): Setting to [Toralf Lund <toralf@kscanners.com>]
ber_scanf fmt (x) ber:
Message: expand_alias_find_match(): Found [Toralf Lund]
Message: expand_alias_find_match(): Setting to [Toralf Lund <toralf@kscanners.com>]
ber_scanf fmt (x) ber:
Message: expand_alias_find_match(): Found [Toralf Lund]
Message: expand_alias_find_match(): Setting to [Toralf Lund <toralf@kscanners.com>]
ber_scanf fmt (x) ber:
Message: expand_alias_find_match(): Found [Toralf Lund]
Message: expand_alias_find_match(): Setting to [Toralf Lund <toralf@kscanners.com>]
ber_scanf fmt (x) ber:
ber_scanf fmt (x) ber:

Program received signal SIGINT, Interrupt.
[Switching to Thread 1024 (LWP 10665)]
0x406eb90e in __select () from /lib/i686/libc.so.6
(gdb) where
#0  0x406eb90e in __select () from /lib/i686/libc.so.6
#1  0x405c081c in __DTOR_END__ () from /usr/lib/libldap.so.2
#2  0x4059e757 in wait4msg () from /usr/lib/libldap.so.2
#3  0x405a148b in ldap_search_s () from /usr/lib/libldap.so.2
#4  0x080ae341 in libbalsa_address_book_ldap_alias_complete (ab=0x815d728, 
    prefix=0x81fd970 "TORAL", new_prefix=0xbfffe7f0) at address-book-ldap.c:499
#5  0x080c6f22 in libbalsa_marshall_POINTER__POINTER_POINTER (object=0x815d728, 
    func=0x80ae210 <libbalsa_address_book_ldap_alias_complete>, func_data=0x0, 
    args=0xbfffe4f0) at misc.c:389
#6  0x4023ad1d in gtk_signal_real_emit () at eval.c:41
#7  0x40238a95 in gtk_signal_emit () at eval.c:41
#8  0x080b03c2 in libbalsa_address_book_alias_complete (ab=0x815d728, 
    prefix=0x81fd970 "TORAL", new_prefix=0xbfffe7f0) at address-book.c:259
#9  0x0807bf0c in expand_alias_find_match (addy=0x81d9728) at expand-alias.c:119
#10 0x080b323d in libbalsa_delete_backward_character (address_entry=0x81dc6c0)
    at address-entry.c:1615
#11 0x080b4d8b in libbalsa_address_entry_key_press (widget=0x81dc6c0, event=0x81c9ce8)
    at address-entry.c:2453
#12 0x402080ac in gtk_marshal_BOOL__POINTER () at eval.c:41
#13 0x4023ad1d in gtk_signal_real_emit () at eval.c:41
#14 0x40238a95 in gtk_signal_emit () at eval.c:41
#15 0x40273219 in gtk_widget_event () at eval.c:41
#16 0x4027b80f in gtk_window_key_press_event () at eval.c:41
#17 0x402080ac in gtk_marshal_BOOL__POINTER () at eval.c:41
#18 0x4023ad1d in gtk_signal_real_emit () at eval.c:41
#19 0x40238a95 in gtk_signal_emit () at eval.c:41
#20 0x40273219 in gtk_widget_event () at eval.c:41
#21 0x40207f88 in gtk_propagate_event () at eval.c:41
#22 0x4020702f in gtk_main_do_event () at eval.c:41
#23 0x402bed5f in gdk_event_dispatch () at eval.c:41
#24 0x4044f783 in g_main_dispatch () at eval.c:41
---Type <return> to continue, or q <return> to quit--- 
#25 0x4044fd49 in g_main_iterate () at eval.c:41
#26 0x4044fefc in g_main_run () at eval.c:41
#27 0x402068f3 in gtk_main () at eval.c:41
#28 0x0808ef18 in main (argc=1, argv=0xbffff1e4) at main.c:432
#29 0x40627177 in __libc_start_main (main=0x808eaf0 <main>, argc=1, ubp_av=0xbffff1e4, 
    init=0x80615cc <_init>, fini=0x80f8cf0 <_fini>, rtld_fini=0x4000e184 <_dl_fini>, 
    stack_end=0xbffff1dc) at ../sysdeps/generic/libc-start.c:129
(gdb) up 4
#4  0x080ae341 in libbalsa_address_book_ldap_alias_complete (ab=0x815d728, 
    prefix=0x81fd970 "TORAL", new_prefix=0xbfffe7f0) at address-book-ldap.c:499
499	    rc = ldap_search_s(ldap_ab->directory, ldap_ab->base_dn,
(gdb) l 490
485	    ldap_ab = LIBBALSA_ADDRESS_BOOK_LDAP(ab);
486	
487	    if (!ab->expand_aliases || strlen(prefix)<LDAP_MIN_LEN) return NULL;
488	    if (ldap_ab->directory == NULL)
489	        libbalsa_address_book_ldap_open_connection(ldap_ab);
490	
491	    /*
492	     * Attempt to search for e-mail addresses.  It returns success
493	     * or failure, but not all the matches.
494	     */
(gdb) l
495	    *new_prefix = NULL;
496	    escaped = rfc_2254_escape(prefix);
497	    filter = g_strdup_printf("(&(mail=*)(cn=%s*))", escaped);
498	    g_free(escaped);
499	    rc = ldap_search_s(ldap_ab->directory, ldap_ab->base_dn,
500		   LDAP_SCOPE_SUBTREE, filter, attrs, 0, &result);
501	    g_free(filter);
502	    if (rc != LDAP_SUCCESS) {
503	        switch (rc) {
504		case LDAP_SIZELIMIT_EXCEEDED:
(gdb) up
#5  0x080c6f22 in libbalsa_marshall_POINTER__POINTER_POINTER (object=0x815d728, 
    func=0x80ae210 <libbalsa_address_book_ldap_alias_complete>, func_data=0x0, 
    args=0xbfffe4f0) at misc.c:389
389	    *return_val = (*rfunc) (object, GTK_VALUE_POINTER(args[0]), GTK_VALUE_POINTER(args[1]), func_data);
(gdb) l 380
375	*/
376	typedef gpointer(*GtkSignal_POINTER__POINTER_POINTER) (GtkObject *object,
377							       gpointer *param1,
378							       gpointer *param2,
379							       gpointer user_data);
380	void
381	libbalsa_marshall_POINTER__POINTER_POINTER(GtkObject *object, GtkSignalFunc func,
382						   gpointer func_data, GtkArg *args)
383	{
384	    GtkSignal_POINTER__POINTER_POINTER rfunc;
(gdb) l
385	    gpointer *return_val;
386	
387	    return_val = GTK_RETLOC_POINTER(args[2]);
388	    rfunc = (GtkSignal_POINTER__POINTER_POINTER) func;
389	    *return_val = (*rfunc) (object, GTK_VALUE_POINTER(args[0]), GTK_VALUE_POINTER(args[1]), func_data);
390	}
391	
392	
393	/* Delete the contents of a directory (not the directory itself).
394	   Return TRUE if everything was OK.
(gdb) quit
The program is running.  Exit anyway? (y or n) y


