[issue11158] Python VM deadlock

2011-02-10 Thread Marcin Bachry
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

[issue11048] import ctypes causes segfault on read-only filesystem

2011-01-30 Thread Marcin Bachry
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

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-13 Thread Marcin Bachry
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

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-02-04 Thread Marcin Bachry
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

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-01-26 Thread Marcin Bachry
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

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-01-26 Thread Marcin Bachry
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

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-01-26 Thread Marcin Bachry
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

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-01-26 Thread Marcin Bachry
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

[issue7760] use_errno=True does not work

2010-01-23 Thread Marcin Bachry
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

[issue7736] os.listdir hangs since opendir() and closedir() do not release GIL

2010-01-20 Thread Marcin Bachry
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

[issue7736] ctypes freezes/deadlocks process

2010-01-19 Thread Marcin Bachry
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

[issue6897] imaplib fails during login

2009-09-14 Thread Marcin Bachry
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

[issue6882] uuid creates zombies

2009-09-11 Thread Marcin Bachry
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

[issue6734] Imap lib implicit conversion from bytes to string

2009-08-21 Thread Marcin Bachry
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

[issue6734] Imap lib implicit conversion from bytes to string

2009-08-20 Thread Marcin Bachry
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

[issue3541] bsddb memory leak on ubuntu

2009-05-16 Thread Marcin Bachry
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

[issue4066] smtplib SMTP_SSL._get_socket doesn't return a value

2009-05-10 Thread Marcin Bachry
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

[issue4066] smtplib SMTP_SSL._get_socket doesn't return a value

2009-05-10 Thread Marcin Bachry
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

[issue5259] smtplib is broken in Python3

2009-04-25 Thread Marcin Bachry
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

[issue4440] sort command doesn't work in pstats if run interactively

2008-11-26 Thread Marcin Bachry
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

[issue4066] smtplib SMTP_SSL._get_socket doesn't return a value

2008-10-07 Thread Marcin Bachry
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

[issue4067] ast.fix_missing_locations() breaks if node doesn't have _attributes variable

2008-10-07 Thread Marcin Bachry
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