[Bug 1182884] Re: pexpect fails with "internal error in regular expression engine"

Yolanda Robla yolanda.robla at canonical.com
Wed May 22 13:26:30 UTC 2013


** Package changed: python2.7 (Ubuntu) => pexpect (Ubuntu)

** Package changed: pexpect (Ubuntu) => pexpect

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pexpect in Ubuntu.
https://bugs.launchpad.net/bugs/1182884

Title:
  pexpect fails with "internal error in regular expression engine"

Status in Pexpect:
  New

Bug description:
  When running the following code:

              child = pexpect.spawn('saslpasswd2 -c -u %s %s' % (report.strip(), self.user.login))
              time.sleep(0.2)
              child.expect(r'.*[pP]assword', timeout=5)

  pexpect is failing with that error:

  Traceback (most recent call last):
    File "/tmp/tmp.LLTlXaXhZk/ubtree0-ubtree/debian/tests/test-postfix.py", line 493, in test_21_security_CVE_2011_1720
      self._setup_sasl("CRAM-MD5", "DIGEST-MD5")
    File "/tmp/tmp.LLTlXaXhZk/ubtree0-ubtree/debian/tests/test-postfix.py", line 173, in _setup_sasl
      child.expect(r'.*[pP]assword', timeout=5)
    File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1316, in expect
      return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
    File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1330, in expect_list
      return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
    File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1371, in expect_loop
      index = searcher.search(incoming, freshlen, searchwindowsize)
    File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1753, in search
      match = s.search(buffer, searchstart)
  RuntimeError: internal error in regular expression engine

  It fails only with i386 platform, not in amd64 platform

To manage notifications about this bug go to:
https://bugs.launchpad.net/pexpect/+bug/1182884/+subscriptions




More information about the foundations-bugs mailing list