[pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
Hey guys, I upgraded to PyPy 1.6 on my 2 Windows XP 32 bit machines. It crashes on both system when running the GarlicSim test suite. It shows a Windows error dialog saying pypy.exe has encountered a problem and needs to close. We are sorry for the inconvenience. and giving this data: AppName:

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Alex Pyattaev
1. Switch to linux. It helps. 2. To get a meaningful error log try to run the pypy from terminal. To do copy-paste you will need 3-rd party terminal, i.e. power shell. Then you'll be able to copy the error messages. Without them it is pretty much impossible to identify the problem. 3. Another

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Ram Rachum r...@rachum.com: Hey guys, I upgraded to PyPy 1.6 on my 2 Windows XP 32 bit machines. It crashes on both system when running the GarlicSim test suite. It shows a Windows error dialog saying pypy.exe has encountered a problem and needs to close.  We are sorry for the

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
On Wed, Oct 5, 2011 at 1:49 PM, Alex Pyattaev alex.pyatt...@gmail.comwrote: 1. Switch to linux. It helps. Not funny. 2. To get a meaningful error log try to run the pypy from terminal. To do copy-paste you will need 3-rd party terminal, i.e. power shell. Then you'll be able to copy the

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
On Wed, Oct 5, 2011 at 2:07 PM, Amaury Forgeot d'Arc amaur...@gmail.comwrote: 2011/10/5 Ram Rachum r...@rachum.com: I am running PyPy from terminal, bash provided by msys. The error still comes up in a dialog and the shell contains only the output from `nose` up to the failure, with no

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Ram Rachum r...@rachum.com: I have hundreds of tests, and PyPy fails before a single one begins. It seems that PyPy crashes somewhere in nose's initialization. Isn't there a way to find the last Python line run before the crash without stepping with a finer granularity every time?

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
On Wed, Oct 5, 2011 at 2:11 PM, Amaury Forgeot d'Arc amaur...@gmail.comwrote: 2011/10/5 Ram Rachum r...@rachum.com: I have hundreds of tests, and PyPy fails before a single one begins. It seems that PyPy crashes somewhere in nose's initialization. Isn't there a way to find the last Python

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Ram Rachum r...@rachum.com: How do I run the Nose test suite on Pypy with a debugger? I usually use Wing IDE, but it doesn't support PyPy. I'm also aware of Nose's `--pdb` flag which drops you into the debugger after an error, but it doesn't work here because this crash seems to be

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Alex Pyattaev
Generally, any binary-level debugger such as gdb or MSVC should work with pypy. At the very least you will find which operation crashed. If it is something really specific, for example sin/log/sign, it might be quite easy to map it back to python code. If it is not, it will be nearly

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
On Wed, Oct 5, 2011 at 2:22 PM, Amaury Forgeot d'Arc amaur...@gmail.comwrote: 2011/10/5 Ram Rachum r...@rachum.com: How do I run the Nose test suite on Pypy with a debugger? I usually use Wing IDE, but it doesn't support PyPy. I'm also aware of Nose's `--pdb` flag which drops you into the

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Alex Pyattaev
If I use a Python debugger, can't I just step forward line by line, see where I get the crash, and then isolate the offending line? The way pypy works - no you can not really do that. In Cpython it works somewhat better, but not in PYPY. Basically you have to use C debugger to locate the crash

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Alex Pyattaev alex.pyatt...@gmail.com: In Cpython it works somewhat better, but not in PYPY How is CPython behavior better with segfaults? -- Amaury Forgeot d'Arc ___ pypy-dev mailing list pypy-dev@python.org

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Michael Foord fuzzy...@gmail.com: Well, in recent versions it gained the faulthandler module... :-) http://pypi.python.org/pypi/faulthandler/ Yes, and this was a *great* improvement! I hope we will be able to adapt it to pypy. -- Amaury Forgeot d'Arc

[pypy-dev] strange error in urlunparse

2011-10-05 Thread Max Lavrenov
Hello all. I make some experiments with pypy in our twisted project and get strange error in standard urlparse.urlunparse function def urlunparse(data): Put a parsed URL back together again. This may result in a slightly different, but equivalent URL, if the URL that was parsed

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Brian Curtin
On Wed, Oct 5, 2011 at 08:22, Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2011/10/5 Michael Foord fuzzy...@gmail.com: Well, in recent versions it gained the faulthandler module... :-) http://pypi.python.org/pypi/faulthandler/ Yes, and this was a *great* improvement! I hope we will be

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
On Wed, Oct 5, 2011 at 2:23 PM, Alex Pyattaev alex.pyatt...@gmail.comwrote: Generally, any binary-level debugger such as gdb or MSVC should work with pypy. At the very least you will find which operation crashed. As I said to Amaury, I don't know how to use those... Python is the only

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Brian Curtin brian.cur...@gmail.com: On Wed, Oct 5, 2011 at 08:22, Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2011/10/5 Michael Foord fuzzy...@gmail.com: Well, in recent versions it gained the faulthandler module... :-) http://pypi.python.org/pypi/faulthandler/ Yes, and this

Re: [pypy-dev] strange error in urlunparse

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Max Lavrenov max.lavre...@gmail.com: after ~500 successfull responses i am starting to get error on line if params Looks like a JIT error to me, which has a default threshold of 1000 iterations. Can you try again with pypy --jit threshold=-1 to completely disable the JIT? --

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
On Wed, Oct 5, 2011 at 4:11 PM, Ram Rachum r...@rachum.com wrote: On Wed, Oct 5, 2011 at 2:23 PM, Alex Pyattaev alex.pyatt...@gmail.comwrote: Another option is to edit the sources of the test suite adding print statements incrementally until you spot the place where it crashes. It is a

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Ram Rachum r...@rachum.com: Okay, I've spent a few hours print-debugging, and I think I've almost got it. The crash happens on a line:     st = os.stat(s) inside `os.path.isdir`, where `s` is a string 'C:\\Documents and Settings\\User\\My Documents\\Python

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
On Wed, Oct 5, 2011 at 6:51 PM, Amaury Forgeot d'Arc amaur...@gmail.comwrote: 2011/10/5 Ram Rachum r...@rachum.com: Okay, I've spent a few hours print-debugging, and I think I've almost got it. The crash happens on a line: st = os.stat(s) inside `os.path.isdir`, where `s` is a

Re: [pypy-dev] gettrace?

2011-10-05 Thread Armin Rigo
Hi Amaury, On Wed, Oct 5, 2011 at 21:54, Amaury Forgeot d'Arc amaur...@gmail.com wrote: Is there any other way to do the equivalent of `sys.gettrace` in PyPy? Hum, it was probably ovelooked. Seems trivial to implement, will give a try. Indeed, sys.gettrace() and sys.getprofile() were added

Re: [pypy-dev] gettrace?

2011-10-05 Thread Amaury Forgeot d'Arc
2011/10/5 Armin Rigo ar...@tunes.org: Indeed, sys.gettrace() and sys.getprofile() were added in Python 2.6, with proper unit tests in test_sys_settrace.py.  We should try to understand why this test didn't fail so far on PyPy...  Do we run it at all?  If not, it's kind of bad.

Re: [pypy-dev] PyPQ: a dbapi 2 PostgreSQL driver working with pypy

2011-10-05 Thread Maciej Fijalkowski
On Wed, Oct 5, 2011 at 12:59 PM, Igor Katson igor.kat...@gmail.com wrote: So I've launched a few tests for all PostgreSQL python drivers out there, and optimized PyPq a bit along the way. *IntergerInsert* test does this 3 times (i wanted more, but pg8000 bloats postgres memory usage to

Re: [pypy-dev] PyPy 1.6 not working on Windows XP

2011-10-05 Thread Ram Rachum
Can you fill in something for #Do something that uses lots of RAM? Because I'm not sure I'll get it right. On Thu, Oct 6, 2011 at 12:02 AM, Alex Pyattaev alex.pyatt...@gmail.comwrote: I've had a very similar stuff, as in something crashing only when run many times when I had a bug in a