On Fri, Feb 11, 2005 at 11:49:43PM +0100, Tomasz Kojm wrote: > On Wed, 9 Feb 2005 16:18:54 +0100 > "Jan ONDREJ (SAL)" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > an application built on clamav 0.81 can do "statinidir()" on clamav > > 0.82. > > My python's implementation of libclamav hangs with segmentation fault > > Please post a backtrace from gdb.
Here is it: [EMAIL PROTECTED] s]# gdb /usr/bin/python GNU gdb Red Hat Linux (6.1post-1.20040607.43rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run test.py Starting program: /usr/bin/python test.py [Thread debugging using libthread_db enabled] [New Thread -1208064320 (LWP 10089)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208064320 (LWP 10089)] 0x0027aeac in __pyx_f_9libclamav_6clamav_statinidir (__pyx_v_self=0xb7fb998c, __pyx_args=0xb7fcc4ec, __pyx_kwds=0x0) at libclamav.c:688 688 Py_DECREF(((struct __pyx_obj_9libclamav_clamav *)__pyx_v_self)->dirname); (gdb) bt #0 0x0027aeac in __pyx_f_9libclamav_6clamav_statinidir ( __pyx_v_self=0xb7fb998c, __pyx_args=0xb7fcc4ec, __pyx_kwds=0x0) at libclamav.c:688 #1 0x00154895 in PyCFunction_Call (func=0xb7fc136c, arg=0xb7fcc4ec, kw=0x0) at Objects/methodobject.c:77 #2 0x0018751c in eval_frame (f=0x84e7a34) at Python/ceval.c:3439 #3 0x0018909e in PyEval_EvalCodeEx (co=0xb7f694e0, globals=0x0, locals=0x0, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2663 #4 0x00189362 in PyEval_EvalCode (co=0x0, globals=0x0, locals=0x0) at Python/ceval.c:537 #5 0x001a2817 in run_node (n=0xb7fa6380, filename=0x0, globals=0x0, locals=0x0, flags=0x0) at Python/pythonrun.c:1267 #6 0x001a3942 in PyRun_SimpleFileExFlags (fp=0x84cd008, filename=0xbffd2438 "test.py", closeit=1, flags=0xbffa4478) at Python/pythonrun.c:862 #7 0x001a4994 in PyRun_AnyFileExFlags (fp=0x84cd008, filename=0xbffd2438 "test.py", closeit=1, flags=0xbffa4478) at Python/pythonrun.c:659 #8 0x001a968e in Py_Main (argc=1, argv=0xbffa4544) at Modules/main.c:415 #9 0x080485b2 in main (argc=0, argv=0x0) at Modules/python.c:23 (gdb) I don't know, how to make more detailed trace. If you need it, please tell me some information. SAL _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel