Date: Sat, 24 Jul 2004 15:59:28 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Franz Klammer <klammer@webonaut.com> Cc: FreeBSD GNOME Users <gnome@freebsd.org> Subject: Re: gnome-cups-manager-0.19 :: core dump and undefined symbol Message-ID: <1090699167.76622.22.camel@shumai.marcuscom.com> In-Reply-To: <41028829.7020809@webonaut.com> References: <41028829.7020809@webonaut.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-EoFXl3Y51ALtevCmw02n Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2004-07-24 at 12:02, Franz Klammer wrote: > gnome-cups-manager doesn't build with libgnomeui-2.6.1.1: >=20 > undefined symbol: gnome_password_dialog_set_show_userpass_buttons > and didn't find any similar in any gnome-library. (grepping for the > string "buttons") >=20 > attached a patch that comment out that line in add-priner.c. >=20 > 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 >=20 > > 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 conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "i386-marcel-freebsd"... > (gdb) r > Starting program: /usr/X11R6/bin/gnome-cups-manager >=20 > Program received signal SIGSEGV, Segmentation fault. > 0x28a92a9c in ippWriteIO (dst=3D0x80b2000, cb=3D0x28a8f840 <httpWrite>, > blocking=3D1, parent=3D0x0, ipp=3D0x8098be0) at ipp.c:1418 > 1418 { > (gdb) bt full > #0 0x28a92a9c in ippWriteIO (dst=3D0x80b2000, cb=3D0x28a8f840 <httpWrite= >, > blocking=3D1, parent=3D0x0, ipp=3D0x8098be0) at ipp.c:1418 > i =3D Error accessing memory address 0xbfaddd44: Bad address. > (gdb) bt > #0 0x28a92a9c in ippWriteIO (dst=3D0x80b2000, cb=3D0x28a8f840 <httpWrite= >, > blocking=3D1, parent=3D0x0, ipp=3D0x8098be0) at ipp.c:1418 > #1 0x28a92a38 in ippWrite (http=3D0x80b2000, ipp=3D0x28a8f840) at ipp.c:= 1387 > #2 0x28a9c80d in cupsDoFileRequest (http=3D0x80b2000, request=3D0x8098be= 0, > resource=3D0x80a4c60 "/", filename=3D0x0) 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 >=20 > franz. >=20 > ______________________________________________________________________ > --- 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 !=3D 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); >=20 > ______________________________________________________________________ > _______________________________________________ > freebsd-gnome@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org" --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-EoFXl3Y51ALtevCmw02n Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBAr+fb2iPiv4Uz4cRAhHoAKCDYB208JFbWyfkDXu7v8BUMot6PQCgjdOT dCpwUg+LmDtxHzBRsbowMtE= =GDqe -----END PGP SIGNATURE----- --=-EoFXl3Y51ALtevCmw02n--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1090699167.76622.22.camel>