This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年04月06日 16:05 by trepan, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| backtrace | trepan, 2008年04月06日 16:08 | GDB Backtrace | ||
| Messages (7) | |||
|---|---|---|---|
| msg65043 - (view) | Author: Taavi Repän (trepan) | Date: 2008年04月06日 16:08 | |
When doing import.test_autotest, test_capi hangs. It seems that threads 1,2,3 are trying to acquire import lock, which is owned by thread 4, which is trying to lock some other lock. Python 2.5.2 (r252:60911, Apr 6 2008, 17:28:23) [GCC 4.2.1 20070719 [FreeBSD]] on freebsd7 |
|||
| msg65159 - (view) | Author: Trent Nelson (trent) * (Python committer) | Date: 2008年04月08日 13:51 | |
Ahh, more FreeBSD threading woes. If no-one beats me to it, I'll be able to start taking a look at this when our FreeBSD 7 server is up in a week or so. |
|||
| msg65161 - (view) | Author: Guilherme Polo (gpolo) * (Python committer) | Date: 2008年04月08日 13:53 | |
Hi Trent, FreeBSD 7 uses libthr as default, which would possibly eliminate this problem. |
|||
| msg65165 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2008年04月08日 14:35 | |
I think that this problem is not FreeBSD specific:
- "import test.autotest" runs the whole test suite as a side-effect of
an import statement.
- in the test suite test_capi spawns threads, which also import.
- a lock ensues...
See for example test_threaded_import.py::
if imp.lock_held():
# This triggers on, e.g., from test import autotest.
raise TestSkipped("can't run when import lock is held")
I the test_capi case, I think that the two imports in TestThreadState
should be moved outside the function.
Also, the backtrace file shows two other threads locked in a "import
socket" statement. I suspect problems in test_urllib2.py or
test_urllib2net.py...
|
|||
| msg65202 - (view) | Author: Taavi Repän (trepan) | Date: 2008年04月08日 18:24 | |
I don't that the problem is in tests. For example import pygtk import gtk hangs also. I don't have backtrace for PyGtk hang yet, but it hangs in ucond state too (like test_capi). |
|||
| msg65216 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2008年04月08日 21:04 | |
In any case, I reproduce the problem on Windows too. |
|||
| msg65220 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2008年04月08日 21:28 | |
Committed r62229. Please file a separate issue for the gtk module, it's really another thing. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:33 | admin | set | github: 46816 |
| 2008年04月08日 21:28:47 | amaury.forgeotdarc | set | status: open -> closed resolution: fixed messages: + msg65220 |
| 2008年04月08日 21:04:55 | amaury.forgeotdarc | set | messages: + msg65216 |
| 2008年04月08日 18:24:39 | trepan | set | messages: + msg65202 |
| 2008年04月08日 14:35:32 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg65165 |
| 2008年04月08日 13:53:25 | gpolo | set | nosy:
+ gpolo messages: + msg65161 |
| 2008年04月08日 13:51:04 | trent | set | assignee: trent messages: + msg65159 nosy: + trent |
| 2008年04月06日 16:08:35 | trepan | set | files:
+ backtrace messages: + msg65043 |
| 2008年04月06日 16:05:14 | trepan | create | |