Hi,

this simple things make python core dump. Anything more for this
issue report I could provide?

Jiri

# python2.7 -c 'import zbar'
Segmentation fault (core dumped)

# pkg_info | egrep '^(python-2|zbar)'
python-2.7.14       interpreted object-oriented programming language
zbar-0.10p16        ZBar barcode reader

$ sysctl kern.version
kern.version=OpenBSD 6.2 (GENERIC.MP) #115: Wed Sep 27 10:45:53 MDT 2017
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Thread 1 (process 469219):
#0  strlen () at /usr/src/lib/libc/arch/amd64/string/strlen.S:124
No locals.
#1  0x0000089fb71af88e in PyString_FromString (str=0x8 <Address 0x8 out of 
bounds>) at Objects/stringobject.c:121
        size = 9483253481056
        op = (PyStringObject *) 0xfb33092845f4980d
#2  0x0000089fb71993c9 in PyDict_GetItemString (v=0x89ffdf555c8, key=0x8 
<Address 0x8 out of bounds>) at Objects/dictobject.c:2505
        kv = (PyObject *) 0x89ffdf555c8
        rv = (PyObject *) 0x89fdc72ab51
#3  0x0000089fb71cb65d in add_getset (type=0x89fdc82e698, gsp=0x89fdc82e698) at 
Objects/typeobject.c:3784
        descr = (PyObject *) 0x89ffdf47e60
        dict = (PyObject *) 0x89ffdf555c8
#4  0x0000089fb71c7576 in PyType_Ready (type=0x89fdc82e698) at 
Objects/typeobject.c:4203
        dict = (PyObject *) 0x89ffdf555c8
        bases = (PyObject *) 0x89ffdf48d50
        base = (PyTypeObject *) 0x89fb755d7c0
        i = 1
        n = 1
#5  0x0000089fdc620d9d in initzbar () at python/zbarmodule.c:126
        ei = 2208
        mod = (PyObject *) 0x89fac440000
        dict = (PyObject *) 0x89fc86ee800
        tp_dict = (PyObject *) 0x0
#6  0x0000089fb726a785 in _PyImport_LoadDynamicModule (name=0x89fac44b800 
"zbar", pathname=0x89fc86ee800 
"/usr/local/lib/python2.7/site-packages/zbar.so", fp=0x8a035d78760) at 
./Python/importdl.c:53
        m = (PyObject *) 0x0
        lastdot = 0x0
        shortname = 0x89fac44b800 "zbar"
        packagecontext = 0x0
        oldcontext = 0x0
        p = 0x89fdc620c70 <initzbar>
#7  0x0000089fb72663a0 in load_module (name=0x89fac44b800 "zbar", 
fp=0x8a035d78760, pathname=0x89fc86ee800 
"/usr/local/lib/python2.7/site-packages/zbar.so", type=3, loader=0x0) at 
Python/import.c:1937
        modules = (PyObject *) 0x2
        m = (PyObject *) 0x401
        err = 0
#8  0x0000089fb7268081 in import_submodule (mod=0x89fb7557b58, 
subname=0x89fac44b800 "zbar", fullname=0x89fac44b800 "zbar") at 
Python/import.c:2725
        buf = 0x89fc86ee800 "/usr/local/lib/python2.7/site-packages/zbar.so"
        fp = (FILE *) 0x8a035d78760
        path = (PyObject *) 0x0
        loader = (PyObject *) 0x0
        fdp = (struct filedescr *) 0x89f86855e80
        modules = (PyObject *) 0x8a020ea9b40
        m = (PyObject *) 0x0
#9  0x0000089fb72678bd in load_next (mod=0x89fb7557b58, altmod=0x89fb7557b58, 
p_name=0x7f7ffffc4990, buf=0x89fac44b800 "zbar", p_buflen=0x7f7ffffc4988) at 
Python/import.c:2539
        name = 0x89ffdf53234 "zbar"
        dot = 0x0
        len = 4
        p = 0x89fac44b800 "zbar"
        result = (PyObject *) 0xffffffffabe4c180
#10 0x0000089fb72658e4 in import_module_level (name=0x0, globals=0x89f80530168, 
locals=0x89f80530168, fromlist=0x89fb7557b58, level=-1) at Python/import.c:2247
        buf = 0x89fac44b800 "zbar"
        buflen = 4
        parent = (PyObject *) 0x89fb7557b58
        head = (PyObject *) 0x89fb72940f0
        next = (PyObject *) 0x7f7ffffc4970
        tail = (PyObject *) 0x0
#11 0x0000089fb726572a in PyImport_ImportModuleLevel (name=0x89ffdf53234 
"zbar", globals=0x89f80530168, locals=0x89f80530168, fromlist=0x89fb7557b58, 
level=-1) at Python/import.c:2312
        result = (PyObject *) 0x0
#12 0x0000089fb722eb32 in builtin___import__ (self=0x0, args=0x89fba637cb0, 
kwds=0x0) at Python/bltinmodule.c:49
        kwlist = 0x89fb756f210
        name = 0x89ffdf53234 "zbar"
        globals = (PyObject *) 0x89f80530168
        locals = (PyObject *) 0x89f80530168
        fromlist = (PyObject *) 0x89fb7557b58
        level = -1
#13 0x0000089fb719f651 in PyCFunction_Call (func=0x8a020eadfc8, 
arg=0x89fba637cb0, kw=0x0) at Objects/methodobject.c:85
        f = (PyCFunctionObject *) 0x8a020eadfc8
        meth = 0x89fb722ea80 <builtin___import__>
        self = (PyObject *) 0x0
        size = 9483840078184
#14 0x0000089fb713ce07 in PyObject_Call (func=0x8a020eadfc8, arg=0x89fba637cb0, 
kw=0x0) at Objects/abstract.c:2547
        result = (PyObject *) 0x7f7ffffc4b50
        call = 0x89fb719f590 <PyCFunction_Call>
#15 0x0000089fb72448a0 in PyEval_CallObjectWithKeywords (func=0x8a020eadfc8, 
arg=0x89fba637cb0, kw=0x0) at Python/ceval.c:4226
        result = (PyObject *) 0x89fba637cb0
#16 0x0000089fb7240cfb in PyEval_EvalFrameEx (f=0x8a020ea3c20, throwflag=0) at 
Python/ceval.c:2628
        opcode_targets = 0x89fb756f320
        exit = (PyObject *) 0x8a020e96e10
        enter = (PyObject *) 0x8a020e96de0
        stack_pointer = (PyObject **) 0x8a020ea3da0
        next_instr = (unsigned char *) 0x89ffdf51a6d "Z"
        opcode = 108
        oparg = 0
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0x8a020eadfc8
        v = (PyObject *) 0x8a020eadfc8
        w = (PyObject *) 0x89fba637cb0
        u = (PyObject *) 0x89fc31fbb68
        t = (PyObject *) 0x8a020ea3c20
        stream = (PyObject *) 0x0
        fastlocals = (PyObject **) 0x8a020ea3d98
        freevars = (PyObject **) 0x8a020ea3d98
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x8a03b114d00
        co = (PyCodeObject *) 0x89fba64fd30
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x89ffdf51a64 "d"
        names = (PyObject *) 0x89ffdf29350
        consts = (PyObject *) 0x89ffdf2e7a0
#17 0x0000089fb7238b05 in PyEval_EvalCodeEx (co=0x89fba64fd30, 
globals=0x89f80530168, locals=0x89f80530168, args=0x0, argcount=0, kws=0x0, 
kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3589
        f = (PyFrameObject *) 0x8a020ea3c20
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0x8a020ea3d98
        freevars = (PyObject **) 0x8a020ea3d98
        tstate = (PyThreadState *) 0x8a03b114d00
        x = (PyObject *) 0x89fb7183ba5
        u = (PyObject *) 0x7f7ffffc51d0
#18 0x0000089fb7237a15 in PyEval_EvalCode (co=0x89fba64fd30, 
globals=0x89f80530168, locals=0x89f80530168) at Python/ceval.c:669
No locals.
#19 0x0000089fb7279292 in run_mod (mod=0x89fbfe3b080, filename=0x89fb73fb773 
"<string>", globals=0x89f80530168, locals=0x89f80530168, flags=0x7f7ffffc55b0, 
arena=0x89fb5fcc3c0) at Python/pythonrun.c:1376
        co = (PyCodeObject *) 0x89fba64fd30
        v = (PyObject *) 0x89fbfe3b080
#20 0x0000089fb727983e in PyRun_StringFlags (str=0x89febefba90 "import zbar\n", 
start=257, globals=0x89f80530168, locals=0x89f80530168, flags=0x7f7ffffc55b0) 
at Python/pythonrun.c:1339
        ret = (PyObject *) 0x0
        mod = 0x89fbfe3b080
        arena = (PyArena *) 0x89fb5fcc3c0
#21 0x0000089fb7279731 in PyRun_SimpleStringFlags (command=0x89febefba90 
"import zbar\n", flags=0x7f7ffffc55b0) at Python/pythonrun.c:974
        m = (PyObject *) 0x89f8051cbe8
        d = (PyObject *) 0x89f80530168
        v = (PyObject *) 0x7f7ffffc55b0
#22 0x0000089fb7296bac in Py_Main (argc=3, argv=0x7f7ffffc5628) at 
Modules/main.c:589
        c = 99
        sts = 834981888
        command = 0x89febefba90 "import zbar\n"
        filename = 0x0
        module = 0x0
        fp = (FILE *) 0x8a035d68890
        p = 0x0
        unbuffered = 0
        skipfirstline = 0
        stdin_is_interactive = 1
        help = 0
        version = 0
        saw_unbuffered_flag = 0
        cf = {cf_flags = 0}
#23 0x0000089d68a00592 in main (argc=3, argv=0x7f7ffffc5628) at 
./Modules/python.c:20
No locals.

Reply via email to