View Issue Details

IDProjectCategoryView StatusLast Update
0001208libextractorPython API (including binding code)public2007-12-08 17:29
Reporterromainc Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version0.5.18 
Summary0001208: Segfault with python2.5 on unicode filename with unicode character
DescriptionWith python 2.4, no problem :

Python 2.4.4 (#2, Apr 26 2007, 00:02:45)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libextractor
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named libextractor
>>> import extractor
>>> extract = extractor.Extractor()
>>> extract.extract('/tmp/igua
Additional InformationThe file is the description is an empty file, but the reaction is the same on non-empty file.

A workaround is to use the 'encode' method :

python2.5
Python 2.5.1 (r251:54863, Apr 25 2007, 22:53:30)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import extractor
>>> extract = extractor.Extractor()
>>> extract.extract(u'/tmp/iguau'.encode('utf-8'))
[]

Thanks for libextractor !
TagsNo tags attached.

Activities

romainc

2007-05-22 12:02

reporter   ~0002974

About the python2.5 examples it seems my '

Christian Grothoff

2007-05-28 14:35

manager   ~0002987

Here is what I get with python2.5 from Debian unstable:

grothoff@elma:~/svn/Extractor-python$ python2.5
Python 2.5 (release25-maint, Dec 9 2006, 14:35:53)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import extractor
>>> extract = extractor.Extractor()
>>> extract.extract('/tmp/foo')
[]
>>> extract.extract('/tmp/foo')
[]
>>>
grothoff@elma:~/svn/Extractor-python$ python2.5
Python 2.5 (release25-maint, Dec 9 2006, 14:35:53)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import extractor
>>> extract = extractor.Extractor()
>>> extract.extract('/tmp/

romainc

2007-05-29 01:16

reporter   ~0002989

~$ uname -a
Linux valeu 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 GNU/Linux

~$ $LANG
bash: fr_FR.UTF-8: command not found

~$ python2.5
Python 2.5.1 (r251:54863, Apr 25 2007, 22:53:30)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import extractor
>>> extract = extractor.Extractor()
>>> type('/tmp/

romainc

2007-06-29 03:26

reporter   ~0003070

Here some trace with pydb :

>>> import pydb
>>> import extractor
>>> extract = extractor.Extractor()
>>> pydb.runcall(extract.extract, u'/tmp/igua

Christian Grothoff

2007-08-30 16:49

manager   ~0003152

I still think this is a python bug. Have you talked to any Python developers about this?

Christian Grothoff

2007-12-08 17:29

manager   ~0003236

Closing: No feedback in a while and this seems to (have been?) a Python issue anyway.

Issue History

Date Modified Username Field Change
2007-05-22 11:47 romainc New Issue
2007-05-22 12:02 romainc Note Added: 0002974
2007-05-28 14:35 Christian Grothoff Note Added: 0002987
2007-05-28 14:36 Christian Grothoff Status new => feedback
2007-05-29 01:16 romainc Note Added: 0002989
2007-06-29 03:26 romainc Note Added: 0003070
2007-08-30 16:49 Christian Grothoff Note Added: 0003152
2007-12-08 17:29 Christian Grothoff Note Added: 0003236
2007-12-08 17:29 Christian Grothoff Status feedback => closed
2007-12-08 17:29 Christian Grothoff Resolution open => unable to reproduce