Hi,

===================================================================
gdb python
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...Reading symbols from
/usr/lib/debug/usr/bin/python2.7...done.
done.
(gdb) run
Starting program: /usr/bin/python
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabi/libthread_db.so.1".
Python 2.7.3 (default, Mar  5 2013, 07:48:50)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zbar

Program received signal SIGSEGV, Segmentation fault.
0xb6e0ade4 in strlen () from /lib/arm-linux-gnueabi/libc.so.6
(gdb) bt
#0  0xb6e0ade4 in strlen () from /lib/arm-linux-gnueabi/libc.so.6
#1  0x00143824 in PyString_FromString (str=0x20776f6c <Address
0x20776f6c out of bounds>) at ../Objects/stringobject.c:121
#2  0x00028f18 in PyDict_GetItemString (key=<optimized out>,
v=0xb6ccba50) at ../Objects/dictobject.c:2421
#3  PyType_Ready (type=0xb6aba384) at ../Objects/typeobject.c:3626
#4  0xb6aacee8 in initzbar () at
/build/buildd-zbar_0.10+doc-7+b2-armel-RjFsDq/zbar-0.10+doc/python/zbarmodule.c:126
#5  0x00175d78 in _PyImport_LoadDynamicModule (name=0x35b1a8 "zbar",
pathname=
    0x36cb40 "/usr/lib/python2.7/dist-packages/zbar.so", fp=<optimized
out>) at ../Python/importdl.c:53
#6  0x00021a5c in load_module.38001 (name=0x35b1a8 "zbar", fp=0x3549d8,
pathname=<optimized out>, type=3, loader=0x0)
    at ../Python/import.c:1866
#7  0x00021c90 in import_submodule.38012 (mod=0x28c630, subname=0x35b1a8
"zbar", fullname=0x35b1a8 "zbar")
    at ../Python/import.c:2645
#8  0x00086d20 in load_next.38017 (mod=0x28c630, altmod=0x28c630,
p_name=<optimized out>, buf=0x35b1a8 "zbar", p_buflen=
    0xbefff2f4) at ../Python/import.c:2460
#9  0x000224ac in import_module_level.isra.1.38038 (name=0x0,
globals=<optimized out>, fromlist=0x28c630, level=-1)
    at ../Python/import.c:2175
#10 0x00098450 in PyImport_ImportModuleLevel (level=-1,
fromlist=0x28c630, locals=<optimized out>, globals=0xb6d5b660, name=
    0xb6ccafd4 "zbar") at ../Python/import.c:2233
#11 builtin___import__.31830 (self=<optimized out>, args=<optimized
out>, kwds=<optimized out>)
    at ../Python/bltinmodule.c:49
#12 0x000bc3e4 in PyCFunction_Call (func=0xb6d48b70, arg=<optimized
out>, kw=<optimized out>)
    at ../Objects/methodobject.c:85
#13 0x000c0a90 in PyObject_Call (func=0xb6d48b70, arg=<optimized out>,
kw=<optimized out>) at ../Objects/abstract.c:2529
#14 0x0002e03c in PyEval_CallObjectWithKeywords (func=0xb6d48b70,
arg=0xb6d1ec00, kw=<optimized out>)
    at ../Python/ceval.c:3890
#15 0x001a1938 in PyEval_EvalFrameEx (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:2333
#16 0x001a614c in PyEval_EvalCodeEx (co=0xb6caa920, globals=<optimized
out>, locals=<optimized out>, args=<optimized out>,
    argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
at ../Python/ceval.c:3253
#17 0x00157a2c in PyEval_EvalCode (locals=0xb6d5b660,
globals=0xb6d5b660, co=0xb6caa920) at ../Python/ceval.c:667
#18 run_mod (arena=0x2cfa90, flags=0xbefff5dc, locals=<optimized out>,
globals=<optimized out>, filename=
    0x1ae0a0 "<stdin>", mod=0x3591d8) at ../Python/pythonrun.c:1365
#19 PyRun_InteractiveOneFlags (fp=<optimized out>, filename=0x1ae0a0
"<stdin>", flags=0xbefff5dc)
    at ../Python/pythonrun.c:852
#20 0x00157e70 in PyRun_InteractiveLoopFlags (fp=0xb6ec6538,
filename=0x1ae0a0 "<stdin>", flags=0xbefff5dc)
---Type <return> to continue, or q <return> to quit---
    at ../Python/pythonrun.c:772
#21 0x001581b0 in PyRun_AnyFileExFlags (fp=0xb6ec6538, filename=0x1ae0a0
"<stdin>", closeit=0, flags=0xbefff5dc)
    at ../Python/pythonrun.c:741
#22 0x00158734 in Py_Main (argc=<optimized out>, argv=0xbefff754) at
../Modules/main.c:639
#23 0xb6da9694 in __libc_start_main () from /lib/arm-linux-gnueabi/libc.so.6
#24 0x00020b50 in _start ()

===================================================================


zbarpygt imports silently.

Best,

Anton

On 03/13/2013 10:49 PM, Bernd Zeimetz wrote:
> hi,
> 
> thanks for the bug report. Looking at the backtrace it smells like a bug in
> python actually. Does anybody of you (as you have the hardware at home as it
> seems :)) have the time to debug this? The other wild guess would be compiler
> issues ...
> 
> At least please try to import the gtk version - zbarpygtk - and see if it
> happens there, too.
> 
> Thanks,
> 
> Bernd
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to