Marcin Bachry hegel...@gmail.com added the comment:
I think it may be related to this bug: http://bugs.python.org/issue6721
--
nosy: +marcin.bachry
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11158
Marcin Bachry hegel...@gmail.com added the comment:
This patch fixes issue with unitialized variable which makes ctypes crash in
error handler.
Note that for you it merely turns Segmentation fault into MemoryError
exception. Python ships with buggy version of libffi, which tries to allocate
Marcin Bachry hegel...@gmail.com added the comment:
I wrote a Perl script testing this issue and it fails too, so it's most
probably a bug in sqlite itself. I think the bug is already reported under id
26ff0c82d1 in sqlite bug tracker: http://www.sqlite.org/src/rptview?rn=2
--
nosy
Marcin Bachry hegel...@gmail.com added the comment:
I had odd problems matching line numbers reported by Windows compiler
to actual sources, so I used gcc -Wextra to produce (even more)
signedness warnings against Python 2.x r77957:
listobject.c:132: warning: comparison between signed
Marcin Bachry hegel...@gmail.com added the comment:
I think the expression cur + step in line 2660 of listobject.c (py2.7 trunk)
overflows to negative value and the if branch isn't entered.
if (cur + step = Py_SIZE(self)) {
lim = Py_SIZE(self) - cur - 1;
}
If I change the type of cur
Marcin Bachry hegel...@gmail.com added the comment:
Using grep I found the same code in Modules/arraymodule.c:
from array import array
del array('i', range(10))[9::1333]
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Marcin Bachry hegel...@gmail.com added the comment:
Yes, I can give a shot.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7788
___
___
Python
Marcin Bachry hegel...@gmail.com added the comment:
I attach the patch. I changed signedness in all three sequence types and made
sure tests crash when run on unpatched Python.
--
Added file: http://bugs.python.org/file16019/fix.diff
___
Python
Marcin Bachry hegel...@gmail.com added the comment:
In the libc case you shouldn't give absolute path in CDLL: CDLL('libc.so.6') is
better. You use /lib/libc.so.6 path, but Python (and ctypes.so) actually uses
something like /lib/tls/i686/cmov/libc.so.6 - these are two separate
libraries
Marcin Bachry hegel...@gmail.com added the comment:
Still, I'd be extremly grateful if someone could tell me the trick how
to create a backtrace in such a deadlock situation
Sorry, I should have mentioned that. In order to get backtrace you let the
process freeze, attach gdb
Marcin Bachry hegel...@gmail.com added the comment:
Here's the backtrace:
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1 0x7fcd0234a6e8 in PyThread_acquire_lock (lock=0x183f3f0, waitflag=128)
at Python/thread_pthread.h:349
#2 0x7fcd02311fa4
Marcin Bachry hegel...@gmail.com added the comment:
Looks like duplicate of #6734.
--
nosy: +marcin.bachry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6897
Marcin Bachry hegel...@gmail.com added the comment:
Actually it's a bug in ctypes.util.find_library() which is called from
uuid.py. The function doesn't close() popen object leaving forked
process in zombie state. I attach the fix.
--
keywords: +patch
nosy: +marcin.bachry
Added file
Marcin Bachry hegel...@gmail.com added the comment:
Ok, it think it's good to leave internal _quote() function operating on
bytes and convert password argument in login(). The method now works
with both str and bytes as arguments.
--
keywords: +patch
Added file: http://bugs.python.org
Marcin Bachry hegel...@gmail.com added the comment:
It seems most IMAP4 methods accept str as arguments right now (I
checked: list, lsub, myrights, select, status, search, fetch) and
login() is a sole exception. I know the protocol is mostly ascii only,
but still having possibility of using str
Marcin Bachry hegel...@gmail.com added the comment:
The test program uses constant memory on my machine. Ubuntu 9.04,
libdb4.7.25-6ubuntu1, python 2.7 trunk.
--
nosy: +marcin.bachry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Marcin Bachry hegel...@gmail.com added the comment:
Your diff is better than mine and looks quite similar to patch number 2
in #4470. If the whole #4470 can't be accepted for now, we could at
least apply this one change, because without it SMTP_SSL is totally
unusable. Daniel, maybe we can mark
Marcin Bachry hegel...@gmail.com added the comment:
Here's a dumbed down version of the test from #4470. It requires
network, but no gmail account is needed to run the test.
--
Added file: http://bugs.python.org/file13952/test_smtpnet.py
___
Python
Marcin Bachry hegel...@gmail.com added the comment:
I add simple smtp auth unit test to exercise this bug.
--
keywords: +patch
nosy: +marcin.bachry
Added file: http://bugs.python.org/file13774/test-smtplib.diff
___
Python tracker rep
New submission from Marcin Bachry [EMAIL PROTECTED]:
Sort command in Python's 3.0 pstats doesn't accept any valid argument
and views help all the time:
$ python3.0 -m pstats pstats
Welcome to the profile statistics browser.
% sort cumulative
Valid sort keys (unique prefixes are accepted
New submission from Marcin Bachry [EMAIL PROTECTED]:
SMTP.connect method expects _get_socket() method to return socket object:
self.sock = self._get_socket(host, port, self.timeout)
but overriden _get_socket() method in SMTP_SSL class doesnt' have return
statement (it sets self.sock instead
New submission from Marcin Bachry [EMAIL PROTECTED]:
ast.fix_missing_locations() fails if any node is missing _attributes
instance variable - but it's the case of some fundamental nodes like
alias or identifier. When I run simple test:
import ast
with open(__file__) as fp:
tree
22 matches
Mail list logo