You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/01/31 04:53:51 UTC
[Bug 60668] New: invalid regular expressions gets jmeter stuck
everytime
https://bz.apache.org/bugzilla/show_bug.cgi?id=60668
Bug ID: 60668
Summary: invalid regular expressions gets jmeter stuck
everytime
Product: JMeter
Version: 3.1
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: Main
Assignee: issues@jmeter.apache.org
Reporter: chamath.allneeds@gmail.com
Target Milestone: ---
Created attachment 34695
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34695&action=edit
RegExp that got stuck.
Every time I provide a invalid symbol to a regExp Tester, jmeter tool gets
stuck and I will have to close the application and start the recording from the
beginning.
attached is a screen shot of the invalid RegExp that got stuck.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60668] Sub optimal regular expressions makes JMeter freeze
(catastrophic backtracking regex)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60668
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Summary|invalid regular expressions |Sub optimal regular
|gets jmeter stuck everytime |expressions makes JMeter
| |freeze (catastrophic
| |backtracking regex)
Version|3.1 |2.9
Hardware|PC |All
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60668] invalid regular expressions gets jmeter stuck everytime
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60668
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|blocker |normal
Status|NEW |NEEDINFO
CC| |p.mouawad@ubik-ingenierie.c
| |om
OS| |All
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Could you provide the HTML code (as a text file) that is shown in screenshot
and the regexp as text (not image) ?
Thank you
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60668] invalid regular expressions gets jmeter stuck everytime
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60668
--- Comment #4 from Felix Schumacher <fe...@internetallee.de> ---
The use case is about testing a regex in the GUI. Not about using it in the
tests.
It would probably help to indicate, that a regex takes too long, even when used
in the GUI.
But I think this is more a minor bug.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60668] invalid regular expressions gets jmeter stuck everytime
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60668
--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to Felix Schumacher from comment #2)
> The used regex is badly composed and will take a long time on moderately
> long inputs.
>
> The important pieces here are, that the matching is done in the awt thread
> and thus blocking the GUI. Secondly Java has no standard way to interrupt
> regex matches.
>
> On
> http://stackoverflow.com/questions/910740/cancelling-a-long-running-regex-
> match
> Is a nice wrapper for charsequence, which in combination with a thread can
> be used to make the matching interruptible.
>
> I think I can produce a patch, but it will probably take a few days.
Hi Felix,
Do you think it's worth the work ?
Badly built Regex can lead to catastrophic backtracking that would kill
performance of Load Test anyway.
Regards
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60668] invalid regular expressions gets jmeter stuck everytime
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60668
--- Comment #2 from Felix Schumacher <fe...@internetallee.de> ---
The used regex is badly composed and will take a long time on moderately long
inputs.
The important pieces here are, that the matching is done in the awt thread and
thus blocking the GUI. Secondly Java has no standard way to interrupt regex
matches.
On
http://stackoverflow.com/questions/910740/cancelling-a-long-running-regex-match
Is a nice wrapper for charsequence, which in combination with a thread can be
used to make the matching interruptible.
I think I can produce a patch, but it will probably take a few days.
--
You are receiving this mail because:
You are the assignee for the bug.