gnome-cups-manager-0.19 :: core dump and undefined symbol

Joe Marcus Clarke marcus at marcuscom.com
Sat Jul 24 12:59:36 PDT 2004


On Sat, 2004-07-24 at 12:02, Franz Klammer wrote:
> gnome-cups-manager doesn't build with libgnomeui-2.6.1.1:
> 
> undefined symbol: gnome_password_dialog_set_show_userpass_buttons
> and didn't find any similar in any gnome-library. (grepping for the
> string "buttons")
> 
> attached a patch that comment out that line in add-priner.c.
> 
> after i got it compile my next problem was a core dump.
> for the back trace i compiled cups-base ans gnome-cups-manager
> with debuging sysmbols:

This is a stack overflow problem with CUPS being called out of a
thread.  CUPS allocates a lot of memory on the stack, and it was
overflowing the default 64 KB stack size.  Since that's all GThreadPools
allow, I upped the amount of stack size in gthread to be 256 KB
everywhere.  Yes, this is a hack, but I see no other way to handle this
unless the GThreadPool API changes, libgnomecups is rewritten again not
to use thread pools, or CUPS is updated to dynamically allocate memory
on the heap.  Other ideas are certainly welcome.

That said, given that this version of gnome-cups-manager uses
libgnomeui-2.7 functions, it should probably be moved over to MC, and
backed out of the FreeBSD ports tree.

Joe

> 
>  > gdb gnome-cups-manager
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 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-marcel-freebsd"...
> (gdb) r
> Starting program: /usr/X11R6/bin/gnome-cups-manager
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x28a92a9c in ippWriteIO (dst=0x80b2000, cb=0x28a8f840 <httpWrite>,
>      blocking=1, parent=0x0, ipp=0x8098be0) at ipp.c:1418
> 1418    {
> (gdb) bt full
> #0  0x28a92a9c in ippWriteIO (dst=0x80b2000, cb=0x28a8f840 <httpWrite>,
>      blocking=1, parent=0x0, ipp=0x8098be0) at ipp.c:1418
>          i = Error accessing memory address 0xbfaddd44: Bad address.
> (gdb) bt
> #0  0x28a92a9c in ippWriteIO (dst=0x80b2000, cb=0x28a8f840 <httpWrite>,
>      blocking=1, parent=0x0, ipp=0x8098be0) at ipp.c:1418
> #1  0x28a92a38 in ippWrite (http=0x80b2000, ipp=0x28a8f840) at ipp.c:1387
> #2  0x28a9c80d in cupsDoFileRequest (http=0x80b2000, request=0x8098be0,
>      resource=0x80a4c60 "/", filename=0x0) at util.c:281
> #3  0x28a83834 in request_thread_main ()
>     from /usr/X11R6/lib/libgnomecups-1.0.so.1
> #4  0x28c65e09 in g_thread_pool_thread_proxy ()
>     from /usr/local/lib/libglib-2.0.so.400
> #5  0x28c64c5c in g_thread_create_proxy ()
>     from /usr/local/lib/libglib-2.0.so.400
> #6  0x284bc9b3 in pthread_create () from /usr/lib/libpthread.so.1
> 
> franz.
> 
> ______________________________________________________________________
> --- gnome-cups-add/add-printer.c.orig	Sat Jul 24 17:27:22 2004
> +++ gnome-cups-add/add-printer.c	Sat Jul 24 17:29:20 2004
> @@ -674,7 +674,7 @@
>  			_("Authentication Required"), msg->str, "", "", FALSE));
>  		if (default_id != NULL)
>  			gnome_password_dialog_set_username	(dialog, default_id);
> -		gnome_password_dialog_set_show_userpass_buttons (dialog, FALSE);
> +		/* gnome_password_dialog_set_show_userpass_buttons (dialog, FALSE); */
>  		gnome_password_dialog_set_show_username		(dialog,  TRUE);
>  		gnome_password_dialog_set_show_domain		(dialog, FALSE);
>  		gnome_password_dialog_set_show_password		(dialog,  TRUE);
> 
> ______________________________________________________________________
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20040724/cad54889/attachment.bin


More information about the freebsd-gnome mailing list