[issue17970] Mutlithread XML parsing cause segfault

2021-09-07 Thread Irit Katriel


Irit Katriel  added the comment:

I've reproduced the segfault on 3.11.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python 
3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-08-15 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
type:  -> crash

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-18 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I agree with Amaury, multi-threaded parsing should definitely not crash. Adding 
a lock should be quite easy. I wonder what would be the effect on performance, 
if there are lots of backs and forths between expat and Python.

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-14 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

In my opinion it's not fine to let Python crash.
The implementation could be similar to the one in bufferedio.c, it's quite 
lightweight.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-14 Thread Christian Heimes

Christian Heimes added the comment:

In my opinion it's fine to document Python's XML parser as not thread-safe and 
leave locking to the user. Any fancy locking or tracking is going to make it 
slower for users. Any it takes a lot of effort to implement the feature, too. 
lxml offers a faster XML parser with multi-threading support.

--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
versions: +Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-13 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

But this would break working code which already uses locks correctly (or some 
kind of pool of cached parsers)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-13 Thread Alex Gaynor

Alex Gaynor added the comment:

It could also track tids and raise an error if you attempt to use it from 
multiple threads.

--
nosy: +alex

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-13 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Expat is not thread-safe at the object level, a single Parser cannot be used 
from multiple threads.
Pyexpat could add locks to Parser objects.

--
nosy: +amaury.forgeotdarc
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17970] Mutlithread XML parsing cause segfault

2013-05-13 Thread mrDoctorWho0 .

New submission from mrDoctorWho0 .:

Linux i386, Python 2.7.4. Multithread xml parsing via pyexpat cause 
segmentation fault

--
components: XML
files: pyexpat_crash_multithread.py
messages: 189131
nosy: mrDoctorWho0..
priority: normal
severity: normal
status: open
title: Mutlithread XML parsing cause segfault
versions: Python 2.7
Added file: http://bugs.python.org/file30250/pyexpat_crash_multithread.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com