Skip to content

Commit

Permalink
• Trying to use Carp (for processing errors) can segfault perl when t…
Browse files Browse the repository at this point in the history
…he error is with syntax. Don't attempt to process syntax errors. See here: http://www.xav.com/perl/lib/Pod/perlvar.html

git-svn-id: http://svn.textmate.org/trunk/Bundles/Perl.tmbundle@7052 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Alex Ross committed Apr 25, 2007
1 parent 56044bd commit 6ee68e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Support/PerlMate/exception_handler.pm
Expand Up @@ -116,11 +116,10 @@ sub tm_die {
if (ineval()) {
realdie ($arg,@rest) if ineval();
}
if (!ref($arg)) {
if (!ref($arg) and $^S) {
print TM_ERROR_FD longmess($arg,@rest);
exit($^S);
}

exit($!);
}

1;

0 comments on commit 6ee68e1

Please sign in to comment.