cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
CrazyPython has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
CrazyPython has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
<jneen> how would yall go about debugging an AssertionError that only happens in the compiled artifact
<jneen> and doesn't correspond to any python-level `assert` statement, but points somewhere deep in implement.c
<jneen> like, my program passes the typer and behaves correctly under cpython...
<jneen> and i don't use we_are_translated() at all except for guarding debug statements
CrazyPython has joined #pypy
tos9 has quit [Quit: Bye]
tos9 has joined #pypy
jvesely has quit [Read error: Connection reset by peer]
jvesely has joined #pypy
<ronan> jneen: what's the error?
<ronan> mattip: yes, I guess it's from the host
BPL has quit [Quit: Leaving]
CrazyPython has quit [Read error: Connection reset by peer]
jcea has quit [Quit: jcea]
<jneen> all i've got is AssertionError and a stack that points to implement.c
<jneen> hang on
<jneen> InstType does in fact have a method called `reindex`, but it contains no asserts
<jneen> my guess is it might have something to do with r_uint? that was the last thing i changed
<jneen> i could probably track it down if i had more in the way of hints, but i'm literally not sure where to look. there is no error under cpython.
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #pypy
_whitelogger has joined #pypy
<fijal> jneen: look into generated source code I'm afraid
xcm has joined #pypy
<cfbolz> jneen: is your code on github? If you tell me how to reproduce, I'll take a look
_whitelogger has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/7045 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8090 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-s390x/builds/1493 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-aarch64/builds/418 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/5791 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6891 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/4984 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1287 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/418 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-linux-x86-32/builds/296 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-linux-x86-64/builds/301 [mattip: Forced by command line script, release-pypy2.7-v7.x]
glyph has quit [Quit: End of line.]
glyph has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1287 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-win-x86-32/builds/269 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/7045 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8090 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-aarch64/builds/418 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2294 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-s390x/builds/1493 [mattip: Forced by command line script, release-pypy2.7-v7.x]
mwhudson has quit [Ping timeout: 256 seconds]
<bbot2> Success: http://buildbot.pypy.org/builders/rpython-linux-x86-32/builds/296 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/5791 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/rpython-linux-x86-64/builds/301 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/4984 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6891 [mattip: Forced by command line script, release-pypy2.7-v7.x]
otisolsen70 has joined #pypy
<cfbolz> jneen: I would suspect it is the "assert out >= 0 # unsigned" in read_int, which is inlined into read_constant
<cfbolz> bit weird indeed that it doesn't happen untranslated
BPL has joined #pypy
jacob22_ has joined #pypy
jacob22 has quit [Ping timeout: 256 seconds]
<arigo> hey. I'm getting lost with the branches in https://foss.heptapod.net/pypy/pypy
<arigo> pull requests make draft branches or so, but they are not available in a regular pull any more, right?
<arigo> what if I want to see this branch locally? is there any way short of fully accepting the pull request?
<mattip> hg phase -p
<mattip> hg phase -p -r <branch-name> might work too
<arigo> no, the problem is that the commits are not pulled at all
<arigo> I don't have them locally
<mattip> then I think you must use the evolve extension
<arigo> I do
<mattip> huh
<mattip> yeah, they are missing
<mattip> dunno
<arigo> (also, which repo is the right one: https://github.com/pypy/pypy-website/ or https://foss.heptapod.net/pypy/pypy.org ?)
<mattip> definitely foss.heptapod.net, that is what is uploaded to www.pypy.org
<mattip> I will delete the github one, sorry
<arigo> wait a sec then
<arigo> rescue
dddddd has joined #pypy
<arigo> hum, too late?
<mattip> yup
<mattip> I think I merged it to heptapod a while ago anyway
<arigo> ...no?
<arigo> I don't think so
<mattip> hmm. Do you have it locally?
<mattip> grr. Too fast
<arigo> no
<arigo> I'll ask the original author
<mattip> I can see https://foss.heptapod.net/pypy/pypy/tree/branch/sandbox-2-fix-documentation, the commit message is "README.md changed to README.rst"
<mattip> but I can't find the commit sha nor a way to download it
<arigo> I managed only to get the diff of that branch (there's a button), but this diff is only killing three files, not changing any README
<arigo> I think there's some issue with the way the branch was created
<mattip> hmm, there is https://foss.heptapod.net/pypy/pypy/merge_requests/714, which you commented on just now
<arigo> looking in the source of the html page, there's a sha d99f638929150e72cd73db476d7cb654a4bf4b40, which doesn't seem to be present in my local copy
<arigo> that interface looks bogus
<arigo> https://foss.heptapod.net/pypy/pypy/merge_requests/714/commits lists two commits, which are twice the same (according to the commit_id=..sha.. value), and clicking on them goes to an error page
<mattip> maybe the heptapod people are around?
<arigo> I guess the main question I have at this point is: is there any way we can pull commits from merge requests locally?
<bbot2> Retry: http://buildbot.pypy.org/builders/rpython-win-x86-32/builds/269 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Retry: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2294 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2295 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-win-x86-32/builds/270 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<mattip> If I look at https://foss.heptapod.net/pypy/pypy/merge_requests/711, it corresponds to bufferedio-release-buffer
<mattip> which I can see in "hg topics", and can checkout hg up bufferedio-release-buffer
<arigo> my current guess is that "hg pull" used to download all these checkins, but now it no longer does
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/418 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2295 [mattip: Forced by command line script, release-pypy2.7-v7.x]
jcea has joined #pypy
<jneen> ohhhhh inlining!
<jneen> i hadn't considered inlining
<jneen> on that branch though i was using read_uint, which used an unpack('I'...)
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<mattip> it seems my change to check ferror(fid) in 9c3ef63e594c make ttest_run_file pass in test_eval.py,
<mattip> but is somehow double-freeing since the next test crashes
<mattip> if I comment out the test-closed-fp call to PyRun_File, everything is OK
lritter has joined #pypy
jvesely has quit [Remote host closed the connection]
jvesely has joined #pypy
<cfbolz> jneen: yes, the concrete assert is probably not the right one
<cfbolz> jneen: but inlining is involved ;-)
<cfbolz> I plan to dig a bit more, if I find a few more minutes
andi- has quit [Remote host closed the connection]
<mattip> arigo: there is a comment on move_real_result_and_call_reacqgil_addr in zarch/callbuilder.py "please fix me for cd7261a5a735 and then remove this"
<mattip> any idea what that fix might entail? Should we wait with 7.3.1 for a fix or not release s390x?
andi- has joined #pypy
<arigo> mattip: I think at this point we should ignore s390x
<arigo> if someone worries about keeping s390x up-to-date, sure, that's good, but otherwise too bad
<mattip> ok, thanks
<arigo> (I wrote the comment in rgil-track-thread because the s390x needs to be fixed just like all other backends)
<mattip> right, it would require some knowledge and testing to get right, and also access to the platform
<arigo> (see e.g. jit/backend/arm/callbuilder.py, it shows that it's a very small fix, but I can't do it blindly)
<cfbolz> jneen: ok, the problem is that the os.read call returns a string of length 1, not 4
<cfbolz> that triggers an assert in runpack
<cfbolz> (I ran it in the debugger)
YannickJadoul has joined #pypy
<cfbolz> confused I am
<cfbolz> jneen: ignore me, I am doing stupid stuff
<cfbolz> jneen: I was running testy.mag, not testy.magc, which did silly things of course. my ruby seems not recent enough to run the compiler, can you send me your magc?
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5211 [mattip: Forced by command line script, release-pypy2.7-v7.x]
_whitelogger has joined #pypy
<YannickJadoul> Any tentative plan for when 7.3.1 will be released? Trying to see if we should hold off the new cibuildwheel release
<bbot2> Failure: http://buildbot.pypy.org/builders/rpython-win-x86-32/builds/270 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<cfbolz> YannickJadoul: question for mattip
<jneen> oh jeez
<jneen> you have my code lol
<jneen> i backed out of those changes, using signed ints for now
<jneen> give me a sec, i can put it back to how it was
<jneen> but i changed a bunch of other stuff in the meanwhile
<jneen> you can generate the magc file with `./bin/mag -c thing.mag`
<jneen> that'll run the ruby compiler
<jneen> shouldn't need any dependencies, just ruby 2.x
<jneen> ...though, the vm should be calling that automatically in the new version i'm about to push (i did the fork/exec thing after all)
<jneen> thank you for your patience with my code which is an awful mess
<cfbolz> jneen: got some Ruby error when I tried that, anyway, out of time for today, will look some more soon :-)
<cfbolz> Anyway, sorry, didn't wanna poke too much, but had a free half hour earlier :-)
<jneen> it's okay!
<jneen> the Makefile should have some pre-built stuff to run testy.mag
<jneen> make hello-world-dynamic will run it with debugging on (very verbose) in cpython
<cfbolz> Cool, thanks
<jneen> make hello-world will compile it and run it natively
<cfbolz> Excellent
<jneen> you can grep the hello-world-dynamic stuff for GLOBAL if you only want to see the output of the program
<cfbolz> But the assertion error is gone now?
<jneen> i need to majorly clean up my debugging infra once this is a little more stable
<jneen> well, i backed out of the changes - i don't think i ever pushed the changeset that caused it
<jneen> i've reconstructed it and it's back. it's possible i really don't understand how to use r_uint
<cfbolz> OK. If you want to put it on a branch, I could take a look
<cfbolz> (and yes, r_uint is definitely fiddly)
<jneen> i think i'm ok just using signed ints for now - i will need to be pretty careful about what is and isn't signed when i change that
<cfbolz> OK :-)
<mattip> YannickJadoul: hopefully this week, unless we hit some snags
<YannickJadoul> mattip: Oh, great, thanks! I'll let the others know! :-)
<jneen> cfbolz: would you mind actually sending me the ruby error you got? i want to avoid "works on my machine" as much as i can ><
dddddd has quit [Ping timeout: 256 seconds]
<cfbolz> jneen: will do a bit later, once I'm back at my computer
<jneen> ok! as you have time :]
<cfbolz> jneen: I get this error:
mwhudson has joined #pypy
mwhudson has quit [Changing host]
mwhudson has joined #pypy
mwhudson has quit [Remote host closed the connection]
<arigo> cfbolz: I think it's Ruby 2.6 syntax
<cfbolz> ah, thanks :-)
<cfbolz> arigo: had no clue you knew any ruby :-)
<arigo> it's just what the internet told me, in this case :-) but yes I do a little bit
<arigo> it feels like some weird cross of smalltalk and python, not in a good way imho
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5211 [mattip: Forced by command line script, release-pypy2.7-v7.x]
<jneen> what ruby version have you got?
<cfbolz> Yep
<mattip> it seems http://buildbot.pypy.org/summary?branch=release-pypy2.7-v7.x is "good enough" for a release
<mattip> we should try to make the buildbots greener, but ...
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/7046 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8091 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2296 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-s390x/builds/1494 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-aarch64/builds/419 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/5792 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6892 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/4985 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5212 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/419 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-linux-x86-32/builds/297 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-linux-x86-64/builds/302 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-win-x86-32/builds/271 [mattip: Forced by command line script, release-pypy3.6-v7.x]
mwhudson has joined #pypy
<mattip> one possible fix for the runtime mess with windows would be to compile a cpython for testing with the visual2019 compiler
<mattip> cpython2
<jneen> ah, i missed that. pushing a fix.
plan_rich has joined #pypy
<cfbolz> mattip: might make sense
tsaka__ has quit [Ping timeout: 246 seconds]
xcm has quit [Ping timeout: 264 seconds]
xcm has joined #pypy
<arigo> is it the case that the pypy.org org still contains a "source" directory which should be deleted because it's very confusing?
<arigo> and the files /README and /README-DO-NOT-EDIT should be updated or deleted too?
<mattip> arigo: yes please, I never got around to it. The README-DO-NOT-EDIT should become the README (without the last line)
<mattip> and the real documentation is `make help` which prints out usable commands
<mattip> I guess that too could be improved upon
<mattip> there are probably other unneeded files too
<cfbolz> jneen: yay, works now! thank you :-)
tsaka__ has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2296 [mattip: Forced by command line script, release-pypy3.6-v7.x]
tsaka__ has quit [Ping timeout: 240 seconds]
<bbot2> Success: http://buildbot.pypy.org/builders/rpython-linux-x86-32/builds/297 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/7046 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8091 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/5792 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1289 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/rpython-linux-x86-64/builds/302 [mattip: Forced by command line script, release-pypy3.6-v7.x]
tsaka__ has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1289 [mattip: Forced by command line script, release-pypy3.6-v7.x]
YannickJadoul has quit [Quit: Leaving]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-aarch64/builds/419 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6892 [mattip: Forced by command line script, release-pypy3.6-v7.x]
otisolsen70 has quit [Quit: Leaving]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/4985 [mattip: Forced by command line script, release-pypy3.6-v7.x]
<mattip> ronan: I think ccd9ce4e3a0c is causing test_recursion to fail on py3.6
<mattip> I think somewhere between 768e7e44eb1e and 96194b9e6c63 it began failing
the_drow[m] has quit [Ping timeout: 246 seconds]
the_drow[m] has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5212 [mattip: Forced by command line script, release-pypy3.6-v7.x]
tsaka__ has quit [Ping timeout: 252 seconds]
plan_rich has quit [Ping timeout: 250 seconds]