develooper Front page | perl.perl5.porters | Postings from December 2011

Seeking help in autoloading charnames for \N{...}

Thread Previous | Thread Next
Karl Williamson
December 18, 2011 20:42
Seeking help in autoloading charnames for \N{...}
Message ID:
I have run into a snag in getting these changes ready.  There is a bug 
manifesting from an area of Perl I know essentially nothing about, and 
rather than trying to learn this new area, I thought I'd first see if 
someone else who already knows about it has the tuits and interest to look.

The problem is that I get a stack underflow.  This problem surfaced 
when I ran valgrind and found illegal writes.  Running with -Dtls shows 
the underflow.  I haven't looked at the code, but it seems to me that 
there ought to be an assert() here to expose this kind of problem, 
unless it is too run-time expensive.

I couldn't find any documentation on how to read the outputs of the 
various -D options.  Perhaps these are self-evident to someone who 
understands the code well enough to be interested in looking at them.

I have compared the execution traces of doing the autoload and doing it 
explicitly and found very few differences; none that my limited 
understanding would cause me to do an a-ha on.

I've pushed my branch to
* [new branch]      charnames -> khw/charnames

This one-liner executed in that branch exhibits the problem:
./perl -Dtlsv -Ilib -E '"\N{NUMBER SIGN}"'

Any assistance is greatly appreciated.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About