cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Read error: Connection reset by peer]
adamholmberg has joined #pypy
oberstet has quit [Ping timeout: 256 seconds]
mattip has quit [Ping timeout: 265 seconds]
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 260 seconds]
dddddd has quit [Remote host closed the connection]
adamholmberg has quit [Remote host closed the connection]
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
Wulf has quit [Ping timeout: 260 seconds]
Wulf has joined #pypy
mattip has joined #pypy
Guest20306 has joined #pypy
Guest20306 has quit [Quit: Leaving]
kpdemetriou has joined #pypy
<kpdemetriou> I'm experiencing an interesting memory corruption issue with CFFI, who can I talk to?
<simpson> There's a few folks. I'm not really one of them, but I can guess that they'd want to see a reproducer of some sort. Often folks are asked to open bugs on the issue tracker if it's definitely a cffi fault.
<kpdemetriou> Understandable, I can publish the draft source code, this is meant for an open source project after all. It seems to be some kind of progressive memory corruption issue where after several thousand iteration of a function I encounter a SEGFAULT. Meanwhile the exact same functionality running inside a simple main() C harness works beautifully. This is pure compute, no network and/or other I/O.
jcea has quit [Quit: jcea]
<kpdemetriou> I encountered a similar issue in a prior project (https://github.com/kpdemetriou/highwayhash-cffi). Consider line 35 of https://github.com/kpdemetriou/highwayhash-cffi/blob/master/highwayhash/__init__.py, a length of 4 bricks the entire testing suite on two platforms.
<kpdemetriou> This could of course be something obvious I hadn't considered but if anyone has the time, I'd appreciate an explanation.
<simpson> Those casts make me sad but I don't know offhand how to work around them.
marky1991 has quit [Read error: Connection reset by peer]
<kpdemetriou> If memory serves well, casts were used for performance reasons.
<kpdemetriou> This particular issue should be unrelated though.
<simpson> (Use cffi for performance? Why not use PyPy for performance?)
<simpson> I hear you. The corresponding C code doesn't look obviously bad (but then again, it's never obvious!) What do your stack traces look like?
<simpson> Can you get at the C stack with a C debugger perhaps?
<kpdemetriou> I mean, they're not mutually exclusive. CFFI allows reuse of existing C code. Especially when it comes to cryptography, you might want to use tried and tested implementations.
speeder39 has joined #pypy
<kpdemetriou> As for the stack, you can see pointers to very low memory addresses right before the segfaults. Things like 0x0, 0x42, etc...
<kpdemetriou> The curious thing is that when used outside of CFFI, the C code works perfectly.
<simpson> Well, sure. libsodium is one of the few exceptions that we allow in Monte, and we're pretty anti-C. It's just that sometimes people reach for other-than-PyPy when they need to make Python faster, and that makes me a sad panda.
mattip has quit [Ping timeout: 265 seconds]
<simpson> IIRC ffi.cast() isn't type-safe, so I'd really try to eliminate those and then see if you can still reproduce.
demonimin has quit [Remote host closed the connection]
demonimin has joined #pypy
kpdemetriou has quit [Quit: Leaving]
kpdemetriou_ has joined #pypy
kpdemetriou_ has quit [Client Quit]
kpdemetriou has joined #pypy
kpdemetriou_ has joined #pypy
kpdemetriou has quit [Ping timeout: 244 seconds]
kpdemetriou_ has quit [Ping timeout: 244 seconds]
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 248 seconds]
Wulf4 has joined #pypy
Wulf has quit [Ping timeout: 240 seconds]
Wulf4 is now known as Wulf
<njs> arigato: I'd seriously consider removing the pure-python sha fallback... people are used to having to fight with openssl, no-one will blame pypy for that, and it's basically a requirement for almost everyone these days anyway. But people will definitely get bitten by unusably-slow sha.
fryguybob has quit [Ping timeout: 260 seconds]
fryguybob has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 256 seconds]
speeder39 has quit [Quit: Connection closed for inactivity]
inhahe_ has quit []
inhahe has joined #pypy
forgottenone has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 268 seconds]
inhahe__ has quit [Ping timeout: 264 seconds]
mattip has joined #pypy
mattip has quit [Ping timeout: 265 seconds]
stevenja_ has joined #pypy
nimaje has quit [Ping timeout: 268 seconds]
stevenja_ has quit [Ping timeout: 248 seconds]
nimaje has joined #pypy
TheAdversary has joined #pypy
Hasimir has joined #pypy
rubdos has quit [Ping timeout: 240 seconds]
inhahe has quit []
rubdos_ has joined #pypy
inhahe has joined #pypy
TheAdversary has quit [Disconnected by services]
Hasimir has quit [Ping timeout: 240 seconds]
TheAdversary has joined #pypy
Hasimir has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 256 seconds]
realitix has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 240 seconds]
jacob22__ has quit [Ping timeout: 240 seconds]
realitix_ has joined #pypy
realitix_ has quit [Client Quit]
realitix_ has joined #pypy
oberstet has joined #pypy
oberstet has quit [Remote host closed the connection]
realitix has quit [Ping timeout: 264 seconds]
realitix_ is now known as realitix
oberstet has joined #pypy
lritter has joined #pypy
realitix has quit [Quit: realitix]
realitix has joined #pypy
realitix has quit [Client Quit]
realitix has joined #pypy
realitix has quit [Client Quit]
kpdemetriou has joined #pypy
realitix has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 256 seconds]
jacob22__ has joined #pypy
DIRT has quit [Quit: Leaving]
jcea has joined #pypy
jacob22__ has quit [Ping timeout: 264 seconds]
tayfun26 has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 244 seconds]
ronan has quit [Quit: Ex-Chat]
Rhy0lite has joined #pypy
lritter has quit [Remote host closed the connection]
oberstet has quit [Ping timeout: 256 seconds]
marky1991 has joined #pypy
oberstet has joined #pypy
<tos9> arigato: I forget, are you in Lausanne or Lucerne
<cfbolz> tos9: leysin
<cfbolz> (which is closish to lausanne)
adamholmberg has joined #pypy
realitix has quit [Quit: realitix]
realitix has joined #pypy
<tos9> ah
jacob22__ has joined #pypy
* tos9 will likely pass through the latter next week but doesn't appear that is very close :)
realitix has quit [Client Quit]
realitix has joined #pypy
Gonsor has joined #pypy
<cfbolz> tos9: indeed not
<tos9> cfbolz: and you are ... somewhere in the mysterious hillside of germany right?
<cfbolz> eh, not since a number of years
<cfbolz> in duisburg
<cfbolz> (closish to cologne)
<tos9> oh interesting
<cfbolz> tos9: where do you live?
<fijal> tos9: hi!
<fijal> tos9: what you up to?
<tos9> cfbolz: NYC, but I get around a bit thankfully :)
<tos9> fijal: I got bored
<tos9> fijal: So I am planning a trip for sunday :)
<fijal> fair
<tos9> fijal: NYC -> Paris -> Zurich (well Lucerne) -> Tel Aviv -> Milan to meet Flavio -> Drive to spain -> London I think
<tos9> fijal: Are you in any of these places
<tos9> or back in za?
<cfbolz> hehe
<fijal> I'm in za for winter
<fijal> "winter"
<tos9> oy
<cfbolz> tos9: I'll be in bilbao the first ten days of august, fwiw
<tos9> cfbolz: oh! Nice
<tos9> cfbolz: I think so will we
<cfbolz> it's a vacation, but if you want to have a coffee let me know
<tos9> yeah same will do
<cfbolz> :-)
<tos9> fijal: see what you are missing in your snow
<fijal> I've seen some snow
<fijal> which is quite impressive given that it was 28 a couple days ago
<fijal> (C not F)
<tos9> fijal: a hard life you live
realitix has quit [Quit: realitix]
<fijal> tos9: I don't actually like it warm
<fijal> tos9: are you going to start a startup?
realitix has joined #pypy
realitix has quit [Client Quit]
realitix has joined #pypy
<tos9> fijal: is that a serious question
<tos9> fijal: I don't have a decent enough idea yet that I'd want to spend my whole day on, and I probably would want to do that while still working at a company since I have too many expensive hobbies to quit and start from the bottom :/
<tos9> but eventually "yes" I think
stevenja_ has joined #pypy
realitix has quit [Quit: realitix]
realitix has joined #pypy
stevenja_ has quit [Ping timeout: 256 seconds]
realitix has quit [Client Quit]
realitix has joined #pypy
stevenja_ has joined #pypy
realitix has quit [Quit: realitix]
realitix has joined #pypy
realitix has quit [Client Quit]
realitix has joined #pypy
stevenja_ has quit [Remote host closed the connection]
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 268 seconds]
stevenja_ has joined #pypy
realitix has quit [Quit: realitix]
realitix has joined #pypy
realitix has quit [Client Quit]
realitix has joined #pypy
realitix has quit [Quit: realitix]
realitix has joined #pypy
yuvipanda[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
realitix has quit [Client Quit]
realitix has joined #pypy
t3chn0punk has quit [Read error: Connection reset by peer]
t3chn0punk has joined #pypy
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
t3chn0punk has quit [Read error: Connection reset by peer]
t3chn0punk has joined #pypy
marky1991_2 has joined #pypy
marky1991_2 has quit [Remote host closed the connection]
marky1991_2 has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
marky1991_2 has quit [Remote host closed the connection]
marky1991_2 has joined #pypy
marky1991_3 has joined #pypy
marky1991_3 has quit [Remote host closed the connection]
marky1991_3 has joined #pypy
marky1991_2 has quit [Ping timeout: 240 seconds]
mattip has joined #pypy
t3chn0pvnk has joined #pypy
tayfun26 has quit [Remote host closed the connection]
t3chn0punk has quit [Read error: Connection reset by peer]
t3chn0punk has joined #pypy
abvi[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
t3chn0pvnk has quit [Ping timeout: 256 seconds]
realitix has quit [Ping timeout: 240 seconds]
realitix has joined #pypy
realitix has quit [Client Quit]
realitix has joined #pypy
jacob22__ has quit [Ping timeout: 244 seconds]
mattip has quit [Ping timeout: 260 seconds]
stevenja_ has quit [Remote host closed the connection]
atomizer has joined #pypy
t3chn0punk has quit [Read error: Connection reset by peer]
realitix has quit [Ping timeout: 244 seconds]
Wulf has quit [Ping timeout: 264 seconds]
stevenja_ has joined #pypy
t3chn0punk has joined #pypy
Rhy0lite has quit [Quit: Leaving]
Gonsor has quit [Ping timeout: 260 seconds]
stevenja_ has quit [Ping timeout: 245 seconds]
stevenja_ has joined #pypy
mattip has joined #pypy
Gonsor has joined #pypy
inhahe has quit []
<fijal> tos9: moderately serious
inhahe has joined #pypy
inad922 has joined #pypy
stevenja_ has quit [Remote host closed the connection]
inhahe__ has joined #pypy
stevenja_ has joined #pypy
<tos9> fijal: yeah still not 100% sure yet
inhahe__ has quit [Read error: Connection reset by peer]
<tos9> fijal: probably something like that will happen in the next year or two though I'd bet
stevenja_ has quit [Ping timeout: 248 seconds]
marky1991_3 has quit [Read error: Connection reset by peer]
inhahe__ has joined #pypy
marky1991_3 has joined #pypy
stevenja_ has joined #pypy
speeder39 has joined #pypy
jamesaxl has joined #pypy
stevenj__ has joined #pypy
stevenj__ has quit [Ping timeout: 240 seconds]
stevenja_ has quit [Ping timeout: 260 seconds]
nunatak has joined #pypy
jamesaxl has quit [Ping timeout: 256 seconds]
stevenja_ has joined #pypy
realitix has joined #pypy
realitix has quit [Client Quit]
realitix has joined #pypy
realitix has quit [Remote host closed the connection]
jamesaxl has joined #pypy
lritter has joined #pypy
mattip has quit [Ping timeout: 260 seconds]
stevenja_ has quit [Remote host closed the connection]
kpdemetriou has quit [Ping timeout: 240 seconds]
inad922 has quit [Ping timeout: 244 seconds]
dddddd has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Remote host closed the connection]
stevenja_ has joined #pypy
inad922 has joined #pypy
marky1991_3 has quit [Ping timeout: 256 seconds]
Wulf has joined #pypy
stevenja_ has quit [Remote host closed the connection]
stevenj__ has joined #pypy
stevenj__ has quit [Remote host closed the connection]
stevenja_ has joined #pypy
jamesaxl has quit [Ping timeout: 248 seconds]
stevenja_ has quit [Remote host closed the connection]
stevenja_ has joined #pypy
oberstet has quit [Ping timeout: 268 seconds]
forgottenone has quit [Quit: Konversation terminated!]
oberstet has joined #pypy
Garen has quit [Ping timeout: 240 seconds]
nunatak has quit [Quit: Leaving]
stevenja_ has quit [Remote host closed the connection]
stevenja_ has joined #pypy
inad922 has quit [Ping timeout: 240 seconds]
stevenja_ has quit [Ping timeout: 240 seconds]
Wulf has quit [Ping timeout: 260 seconds]
Garen has joined #pypy
jacob22__ has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
kanaka has quit [Ping timeout: 264 seconds]
DIRT has joined #pypy
lritter has quit [Remote host closed the connection]
adamholmberg has joined #pypy
kanaka has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
Gonsor has quit [Read error: Connection reset by peer]
DIRT has quit [Ping timeout: 256 seconds]
speeder39 has quit [Quit: Connection closed for inactivity]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 248 seconds]
mattip has joined #pypy
adamholmberg has joined #pypy
mattip has quit [Ping timeout: 265 seconds]