develooper Front page | perl.xs | Postings from January 2012

Re: Debugging a XS problem.. where to start?

Thread Previous | Thread Next
From:
Marvin Humphrey
Date:
January 16, 2012 13:38
Subject:
Re: Debugging a XS problem.. where to start?
Message ID:
20120116212836.GA18494@rectangular.com
On Mon, Jan 16, 2012 at 09:11:27PM +0000, Alberto Simões wrote:
> I do not use valgrind for some time, but this seems awkward:
>
> [ambs@stravinski FreeLing-old]$ valgrind -- /usr/bin/perl -I blib/arch/  
> -I blib/lib/ t/01-bindings/01-tokenizer.t
> ==13831== Memcheck, a memory error detector
> ==13831== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
> ==13831== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
> ==13831== Command: /usr/bin/perl -I blib/arch/ -I blib/lib/  
> t/01-bindings/01-tokenizer.t
> ==13831==
>
>
> and... nothing... I need to kill it.
> Ideas?

No memory errors have occurred yet in your program.

IMO, you have given up too soon before reporting back.  I would advocate the
use of a standard debugging technique to see where things are getting stuck:
try sprinkling "warn" statements into your test file to see how far you get.

Please bear in mind that running under Valgrind is typically 40x slower, so
heavy tests can take a long time.

Marvin Humphrey


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About