Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Carp-Always CPAN distribution.

Report information
The Basics

Nobody in particular
Robert.Rothenberg [...]

(no value)
Broken in:
(no value)
Fixed in:

MIME-Version: 1.0
Content-ID: <>
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -2.6
Received: from localhost (localhost []) by (Postfix) with ESMTP id 3F9E22409AC for <>; Thu, 19 Jun 2014 09:39:45 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id sTh9HWgJMBUE for <>; Thu, 19 Jun 2014 09:39:43 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id 8A589240329 for <>; Thu, 19 Jun 2014 09:39:43 -0400 (EDT)
Received: (qmail 2174 invoked by alias); 19 Jun 2014 13:39:41 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Thu, 19 Jun 2014 06:39:34 -0700
Received: from [] by id C9/6A-18761-018E2A35; Thu, 19 Jun 2014 13:39:28 +0000
Received: (qmail 32547 invoked from network); 19 Jun 2014 13:39:28 -0000
Received: from unknown (HELO ( by with DHE-RSA-AES256-SHA encrypted SMTP; 19 Jun 2014 13:39:28 -0000
Received: from (unknown []) by IMSVA (Postfix) with ESMTP id 404C514803F for <>; Thu, 19 Jun 2014 14:39:28 +0100 (BST)
Received: from (unknown []) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 300B714803B for <>; Thu, 19 Jun 2014 14:39:28 +0100 (BST)
Received: from ([fe80::35bf:f926:8263:a4eb]) by ([fe80::822:811c:b306:eded%11]) with mapi id 14.03.0146.000; Thu, 19 Jun 2014 14:39:27 +0100
Subject: Regex is too greedy
Thread-Index: AQHPi8Pj6dm71EpgBkmki2WWDAGz5w==
Date: Thu, 19 Jun 2014 13:39:27 +0000
X-Starscan-Version: 6.11.3;,-,-
X-Viruschecked: Checked
To: "" <>
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-2.6 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham
Content-Language: en-US
Message-ID: <>
Return-Path: <>
X-RT-Mail-Extension: carp-always
Thread-Topic: Regex is too greedy
X-Originating-Ip: []
X-Originating-Ip: []
Accept-Language: en-GB, en-US
From: Robert Rothenberg <>
X-RT-Original-Encoding: iso-8859-1
X-RT-Interface: Email
Content-Length: 1207
The regular expression $arg =~ s/(.*)( at .*? line .*?\n$)/$1/s; is too greedy. If you have an error like Kaboom at foo/ line 123 Some additional diagnostics added here by a custom error handler. then the additional diagnostics added will be lost. Try changing the regex to $arg =~ s/(.*)( at .*? line \d+\n$)/$1/s; Privacy and Confidentiality Notice: This is strictly confidential and intended solely for the person or organisation to whom it is addressed. It may contain privileged and confidential information and if you are not an intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this message in error, please notify us as soon as possible and delete it and any attached files from your system. The views and opinions expressed in this email message are the author's own and may not reflect the views and opinions of the author's employer. Foxtons Limited is registered in England and Wales (registered number 01680058). Our registered office is at Building One, Chiswick Park, 566 Chiswick High Road, London, W4 5BE.
Show quoted text
________________________________ This e-mail has been scanned for viruses by MessageLabs.
MIME-Version: 1.0
In-Reply-To: <>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <>
Content-Type: text/plain; charset="utf-8"
Message-ID: <>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 280
Fixed in release 0.16 – The regex use was revamped, acting after Carp::longmess() and tuned to suppress the duplicate tracebacks (if any). So the use case you described should be now safe, and has turned into a test case.

This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with to