[26964] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8918 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Feb 4 03:05:42 2006

Date: Sat, 4 Feb 2006 00:05:05 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 4 Feb 2006     Volume: 10 Number: 8918

Today's topics:
        [ANNOUNCE] Emacs modules for Perl programming (Jari Aalto+mail.perl)
    Re: Obscure utf8/"panic: malloc" bug <nospam-abuse@ilyaz.org>
    Re: Obscure utf8/"panic: malloc" bug <sisyphus1@nomail.afraid.org>
        Perl device IO on Win <unnamed.netizen@invalid.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 04 Feb 2006 05:25:30 GMT
From: <jari.aalto@poboxes.com> (Jari Aalto+mail.perl)
Subject: [ANNOUNCE] Emacs modules for Perl programming
Message-Id: <perl-faq/emacs-lisp-modules_1139030711@rtfm.mit.edu>

Archive-name: perl-faq/emacs-lisp-modules
Posting-Frequency: 2 times a month
Maintainer: Jari Aalto A T cante net

Announcement: "What Emacs lisp modules can help with programming Perl"

    Preface

        Emacs is your friend if you have to do anything comcerning software
        development: It offers plug-in modules, written in Emacs lisp
        (elisp) language, that makes all your programmings wishes come
        true. Please introduce yourself to Emacs and your programming era
        will get a new light.

    Where to find Emacs/XEmacs

        o   Unix:
            http://www.gnu.org/software/emacs/emacs.html
            http://www.xemacs.org/

        o   Unix Windows port (for Unix die-hards):
            install http://www.cygwin.com/  which includes native Emacs 21.x.
            and XEmacs port

        o   Pure Native Windows port
            http://www.gnu.org/software/emacs/windows/ntemacs.html
            ftp://ftp.xemacs.org/pub/xemacs/windows/setup.exe

        o   More Emacs resources at
            http://tiny-tools.sourceforge.net/  => Emacs resource page

Emacs Perl Modules

    Cperl -- Perl programming mode

        http://math.berkeley.edu/~ilya/software/emacs/
        by Ilya Zakharevich

        CPerl is major mode for editing perl files. Also included in
        latest Emacs, but newest version is at Ilya's site. Note that
        the directrory at CPAN is out of date:
        http://www.cpan.org/modules/by-authors/id/ILYAZ/cperl-mode/

        Compared to default `perl-mode' that comes with Emacs, this
        one has more features.

    TinyPerl -- Perl related utilities

        http://tiny-tools.sourceforge.net/

        If you ever wonder how to deal with Perl POD pages or how to find
        documentation from all perl manpages, this package is for you.
        Couple of keystrokes and all the documentaion is in your hands.

        o   Instant function help: See documentation of `shift', `pop'...
        o   Show Perl manual pages in *pod* buffer
        o   Grep through all Perl manpages (.pod)
        o   Follow POD references e.g. [perlre] to next pod with RETURN
        o   Coloured pod pages with `font-lock'
        o   Separate `tiperl-pod-view-mode' for jumping topics and pages
            forward and backward in *pod* buffer.

        o   Update `$VERSION' variable with YYYY.MMDD on save.
        o   Load source code into Emacs, like Devel::DProf.pm
        o   Prepare script (version numbering) and Upload it to PAUSE
        o   Generate autoload STUBS (Devel::SelfStubber) for you
            Perl Module (.pm)

    TinyIgrep -- Perl Code browsing and easy grepping

        [TinyIgrep is included in Tiny Tools Kit]

        To grep from all installed Perl modules, define database to
        TinyIgrep. There is example file emacs-rc-tinyigrep.el that shows
        how to set up dattabases for Perl5, Perl4 whatever you have
        installed

        TinyIgrep calls Igrep.el to to do the search, You can adjust
        recursive grep options, set search case sensitivity, add user grep
        options etc.

        You can find latest `igrep.el' module at
        <http://groups.google.com/groups?group=gnu.emacs.sources> The
        maintainer is Jefin Rodgers <kevinr@ihs.com>.

    TinyCompile -- To Browse grep results in Emacs *compile* buffer

        TinyCompile is a minor mode for *compile* buffer from where
        you can collapse unwanted lines or shorten file URLs:

            /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file1:NNN: MATCHED TEXT
            /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file2:NNN: MATCHED TEXT

            -->

            cd /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/
            file1:NNN: MATCHED TEXT
            file1:NNN: MATCHED TEXT

End



------------------------------

Date: Sat, 4 Feb 2006 00:39:55 +0000 (UTC)
From:  Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: Obscure utf8/"panic: malloc" bug
Message-Id: <ds0t4r$q5m$1@agate.berkeley.edu>

[A complimentary Cc of this posting was sent to
kj 
<socyl@987jk.com.invalid>], who wrote in article <ds02fu$jl2$1@reader2.panix.com>:
> 
> 
> 
> 
> I'm trying to find a workaround to bug that is causing me a lot of
> problems now.  This bug surfaces under very rare conditions, but
> they happen to apply to me at the moment.
> 
> I've traced the bug to the execution of line 49 of DBD/mysql.pm
> (v. 3.0002) (though I'm almost certain that the involvement of
> DBD/mysql.pm here is purely coincidental):
> 
> 	if ($dsn =~ /([^:;]*)[:;](.*)/) {
> 
> At the time of failure, the $dsn variable contains, as far as I
> can tell, the string "host=martdb.ebi.ac.uk;port=3306".  If, within
> the Perl debugger, I turn on tracing when the program reaches the
> line shown above, but right before failure, I see that (somehow),
> the code being executed is from the function SWASHNEW in
> /usr/lib/perl5/5.8.6/utf8_heavy.pl.

With the current state of Perl internals (non-reenterable REx engine),
debugging into SWASH* functions can only lead to a disaster (although
I did not know this may be malloc()-related).  I wrote about this here
about a year ago.

Hope this helps,
Ilya


------------------------------

Date: Sat, 4 Feb 2006 19:02:32 +1100
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: Obscure utf8/"panic: malloc" bug
Message-Id: <43e46022$0$21423$afc38c87@news.optusnet.com.au>


"kj" <socyl@987jk.com.invalid>
 .
 .
>
> I have tried to come up with a small script that reproduces this
> bug, but no avail.  The only way I can reproduce this bug involves
> having a lot of other big stuff loaded.

If it's *core* stuff, then that's probably ok.

>
> I'm at wits' end about this.  At this point I'm just looking for
> a workaround.
>

Looks to me that (probably) no-one here will be able to provide that
workaround unless you can provide a basic script that demonstrates the
problem.

My understanding of Ilya's response is that there's not much point in
resorting to the debugger for his particular problem.

Cheers,
Rob




------------------------------

Date: Fri, 03 Feb 2006 18:21:48 -0800
From: Jack Schmidt <unnamed.netizen@invalid.com>
Subject: Perl device IO on Win
Message-Id: <1139019708.755409@hp-sdd.sdd.hp.com>

I want to talk to a device through an RS232 port on a
PC running WinXP.  Looks like I can use the POSIX::Termios
class, but I don't know what the file descriptors are for
the serial ports.  Anybody?

Also, what about device IO via USB on the same PC?


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8918
***************************************


home help back first fref pref prev next nref lref last post