[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial-devel
Subject:    [Bug 5640] New: --profile broken with Pypy 5.6.0
From:       mercurial-bugs () mercurial-scm ! org
Date:       2017-07-31 15:59:33
Message-ID: bug-5640-285 () https ! bz ! mercurial-scm ! org/
[Download RAW message or body]

https://bz.mercurial-scm.org/show_bug.cgi?id=5640

            Bug ID: 5640
           Summary: --profile broken with Pypy 5.6.0
           Product: Mercurial
           Version: 4.3-rc
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla@mercurial-scm.org
          Reporter: lothiraldan@gmail.com
                CC: mercurial-devel@mercurial-scm.org

While launching Mercurial tests with Pypy 5.6.0, I saw that the --profile
option is broken with Pypy. It crash with this exception:

> Traceback (most recent call last):
> File "/home/lothiraldan/project/mercurial/mercurial/hg", line 45, in <module>
> mercurial.dispatch.run()
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/dispatch.py", line \
> 81, in run status = (dispatch(req) or 0) & 255
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/dispatch.py", line \
> 162, in dispatch ret = _runcatch(req)
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/dispatch.py", line \
> 302, in _runcatch return _callcatch(ui, _runcatchfunc)
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/dispatch.py", line \
> 310, in _callcatch return scmutil.callcatch(ui, func)
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/scmutil.py", line \
> 150, in callcatch return func()
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/dispatch.py", line \
> 292, in _runcatchfunc return _dispatch(req)
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/dispatch.py", line \
> 745, in _dispatch with profiling.profile(lui, enabled=profile) as profiler:
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/profiling.py", line \
> 169, in __enter__ self.start()
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/profiling.py", line \
> 217, in start self._profiler.__enter__()
> File "/usr/lib/pypy/lib-python/2.7/contextlib.py", line 17, in __enter__
> return self.gen.next()
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/profiling.py", line \
> 103, in statprofile statprof.start(mechanism='thread')
> File "/home/lothiraldan/project/mercurial/mercurial/mercurial/statprof.py", line \
> 309, in start tid = [k for k, f in sys._current_frames().items() if f == frame][0]
> IndexError: list index out of range

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic