From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5426 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general,gmane.linux.distributions.alpine.devel Subject: Re: Re: [alpine-devel] Attempting to debug C++ library and command via valgrind Date: Thu, 10 Jul 2014 00:47:16 -0400 Message-ID: <20140710044716.GT179@brightrain.aerifal.cx> References: <20140709043946.GA1787@newbook> <20140710041348.GA4689@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1404967657 2211 80.91.229.3 (10 Jul 2014 04:47:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 04:47:37 +0000 (UTC) Cc: Jeff Pohlmeyer , Isaac Dunham , Alpine To: musl@lists.openwall.com Original-X-From: musl-return-5431-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 10 06:47:31 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X56GX-0003Mj-IC for gllmg-musl@plane.gmane.org; Thu, 10 Jul 2014 06:47:29 +0200 Original-Received: (qmail 11838 invoked by uid 550); 10 Jul 2014 04:47:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11829 invoked from network); 10 Jul 2014 04:47:28 -0000 Content-Disposition: inline In-Reply-To: <20140710041348.GA4689@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5426 gmane.linux.distributions.alpine.devel:2056 Archived-At: On Wed, Jul 09, 2014 at 09:13:49PM -0700, Isaac Dunham wrote: > On Wed, Jul 09, 2014 at 10:30:11AM -0500, Jeff Pohlmeyer wrote: > > On Tue, Jul 8, 2014 at 11:39 PM, Isaac Dunham wrote: > > > > > I've been trying to get Sword 1.7.3 (crosswire.org/sword) running on Alpine. > > > valgrind was recommended, but I can't get valgrind to run the command properly. > > > But when I do this, diatheke errors out: > > > diatheke: cannot load -b: No such file or directory > > > > > > I think it's a problem with the way valgrind tries to run musl's program loader. > > > > Try adding "/lib/ld-musl-i386.so.1" to the command line, just before > > the prgram name, > > e.g. > > > > valgrind --leak-check=full --track-origins=yes \ > > --keep-stacktraces=alloc-and-free \ > > /lib/ld-musl-i386.so.1 \ > > diatheke -b KJV -k Ps117 > > Thanks, this works for me. > > Of course it really runs slow and spits out a ton of information; > the log is over 400 kb at 5464 lines. (I suppose sending it to these lists > might be inappropriate, given the size...) If you have a reasonable place to dump the file you could just send a link to the list. But I think you're getting ahead of things. What actual failure is the program exhibiting? (Crash? Incorrect or no output? Error messages?) Depending on what happens, a gdb backtrace or an strace log may be more useful than the valgrind output. Rich