From owner-freebsd-questions@FreeBSD.ORG Wed Jan 19 02:01:32 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4070A1065673 for ; Wed, 19 Jan 2011 02:01:32 +0000 (UTC) (envelope-from weif@weif.net) Received: from maxwell.cjones.org (mail.cjones.org [69.146.226.138]) by mx1.freebsd.org (Postfix) with ESMTP id 0E0FF8FC17 for ; Wed, 19 Jan 2011 02:01:31 +0000 (UTC) Received: by maxwell.cjones.org (Postfix, from userid 1003) id A73454A64C7; Tue, 18 Jan 2011 19:01:30 -0700 (MST) From: Keith Seyffarth To: Chuck Swiger In-Reply-To: <90697FB1-79FD-4766-A01B-B06672D1EB7C@mac.com> (message from Chuck Swiger on Tue, 18 Jan 2011 16:04:45 -0800) References: <844o957rei.fsf@maxwell.cjones.org> <90697FB1-79FD-4766-A01B-B06672D1EB7C@mac.com> Date: Tue, 18 Jan 2011 19:01:30 -0700 Message-ID: <84y66h6491.fsf@maxwell.cjones.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: use of menus crashes Firefox? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: weif@weif.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 02:01:32 -0000 > Run it under gdb, look at the backtrace. Bad system call implies a > mismatch between your shared libraries and kernel, or maybe you are > loading some plugin or something which has been compiled for a > different version of the platform. Chuck, Thanks for the suggestion. I can't figure out how to get that to work... $ gdb --exec=firefox3 This GDB was configured as "i386-marcel-freebsd"."/usr/local/bin/firefox3": not in executable format: File format not recognized $ gdb --exec=firefox-bin This GDB was configured as "i386-marcel-freebsd"...firefox-bin: No such file or directory. or $ gdb firefox3 This GDB was configured as "i386-marcel-freebsd"..."/usr/local/bin/firefox3": not in executable format: File format not recognized It doesn't seem that gdb thinks firefox is an executable... I'm not seeing what I'm missing from the man page. I can get it to pick up the process once it is running: $ gdb firefox3 9759 This GDB was configured as "i386-marcel-freebsd"..."/usr/local/bin/firefox3": not in executable format: File format not recognized Attaching to process 9759 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) n /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) y Abort trap: 6 (core dumped) this results in both Firefox and GDB crashing... $ gdb --core=gdb.core This GDB was configured as "i386-marcel-freebsd". Core was generated by `gdb'. Program terminated with signal 6, Aborted. #0 0x283e8e17 in ?? () So, how do I get FF to run under gdb? or does the above provide enough information to try a fix? Thanks, Keith