From owner-freebsd-gnome@FreeBSD.ORG Sat Jul 24 19:59:35 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAC5416A4CE for ; Sat, 24 Jul 2004 19:59:35 +0000 (GMT) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12EB443D2D for ; Sat, 24 Jul 2004 19:59:35 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) i6OJwq1V063289; Sat, 24 Jul 2004 15:58:53 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Franz Klammer In-Reply-To: <41028829.7020809@webonaut.com> References: <41028829.7020809@webonaut.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-EoFXl3Y51ALtevCmw02n" Organization: MarcusCom, Inc. Message-Id: <1090699167.76622.22.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 24 Jul 2004 15:59:28 -0400 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on creme-brulee.marcuscom.com cc: FreeBSD GNOME Users Subject: Re: gnome-cups-manager-0.19 :: core dump and undefined symbol X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2004 19:59:36 -0000 --=-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 , > blocking=3D1, parent=3D0x0, ipp=3D0x8098be0) at ipp.c:1418 > 1418 { > (gdb) bt full > #0 0x28a92a9c in ippWriteIO (dst=3D0x80b2000, cb=3D0x28a8f840 , > 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 , > 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--