GNU gdb 4.18 Copyright 1998 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 "sparc-sun-solaris2.7"... (gdb) run -E setup.py build Starting program: /dat1/home/sharad/python/Python-2.2/python -E setup.py build [New LWP 2 ] [New LWP 3 ] running build running build_ext skipping 'struct' extension (up-to-date) skipping 'regex' extension (up-to-date) skipping 'pcre' extension (up-to-date) skipping '_hotshot' extension (up-to-date) skipping '_weakref' extension (up-to-date) skipping 'xreadlines' extension (up-to-date) Program received signal SIGSEGV, Segmentation fault. 0xff136c5c in strlen () from /usr/lib/libc.so.1 (gdb) bt #0 0xff136c5c in strlen () from /usr/lib/libc.so.1 #1 0x20f00 in PyString_FromString ( str=0x7e1138
) at Objects/stringobject.c:112 #2 0xad7dc in PyDict_SetItemString (v=0x7e1138, key=0x7e1138
, item=0x17d350) at Objects/dictobject.c:1879 #3 0x6b5f8 in Py_InitModule4 (name=0x156400 "", methods=0xfe7f1310, doc=0x0, passthrough=0x0, module_api_version=2824352) at Python/modsupport.c:63 #4 0x674e8 in _PyImport_LoadDynamicModule (name=0xffbedb08 "xreadlines", pathname=0xffbed618 "/dat1/home/sharad/python/Python-2.2/build/lib.solaris-2.7-sun4u-2.2/xreadlines.so", fp=0xfe7e100c) at Python/importdl.c:53 #5 0x64bcc in load_module (name=0xffbedb08 "xreadlines", fp=0xefa90, buf=0xffbed618 "/dat1/home/sharad/python/Python-2.2/build/lib.solaris-2.7-sun4u-2.2/xreadlines.so", type=3) at Python/import.c:1369 #6 0x65a90 in import_submodule (mod=0xd5520, subname=0xffbedb08 "xreadlines", fullname=0xffbedb08 "xreadlines") at Python/import.c:1899 #7 0x6559c in load_next (mod=0xd5520, altmod=0xd5520, p_name=0xffbedb08, buf=0xffbedb08 "xreadlines", p_buflen=0xffbedb04) at Python/import.c:1755 #8 0x65164 in import_module_ex (name=0x0, globals=0xd5520, locals=0x0, fromlist=0x0) at Python/import.c:1606 #9 0x66b74 in PyImport_ImportModuleEx (name=0x24eaf4 "xreadlines", globals=0x0, locals=0x0, fromlist=0x0) at Python/import.c:1647 ---Type to continue, or q to quit--- #10 0xb258c in builtin___import__ (self=0x0, args=0x24eaf4) at Python/bltinmodule.c:44 #11 0xae2ac in PyCFunction_Call (func=0xf4d80, arg=0x28afe8, kw=0x0) at Objects/methodobject.c:80 #12 0x4a388 in eval_frame (f=0x2ac1c8) at Python/ceval.c:1993 #13 0x4b180 in PyEval_EvalCodeEx (co=0x251e88, globals=0x2ac32c, locals=0x83, args=0x2a3d28, argcount=2, kws=0x2a3d30, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #14 0x4e148 in fast_function (func=0x0, pp_stack=0x2a3d28, n=2768176, na=2, nk=0) at Python/ceval.c:3150 #15 0x4a2a0 in eval_frame (f=0x2a3bd0) at Python/ceval.c:2013 #16 0x4b180 in PyEval_EvalCodeEx (co=0x2724b8, globals=0x2a3d28, locals=0x83, args=0x27bc44, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #17 0x9e77c in function_call (func=0x26a760, arg=0x27bc38, kw=0x0) at Objects/funcobject.c:374 #18 0x877a8 in PyObject_Call (func=0x26a760, arg=0x27bc38, kw=0x0) at Objects/abstract.c:1665 #19 0x905e0 in instancemethod_call (func=0x26a760, arg=0x27bc38, kw=0x0) at Objects/classobject.c:2276 #20 0x877a8 in PyObject_Call (func=0x2, arg=0x27bc38, kw=0x0) at Objects/abstract.c:1665 #21 0x4e1e8 in do_call (func=0x102a88, pp_stack=0xffbee630, na=-1, nk=2604088) ---Type to continue, or q to quit--- at Python/ceval.c:3251 #22 0x4a1f8 in eval_frame (f=0x294548) at Python/ceval.c:2016 #23 0x4b180 in PyEval_EvalCodeEx (co=0x2503d8, globals=0x2946e4, locals=0x83, args=0x1a4594, argcount=1, kws=0x1a4598, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #24 0x4e148 in fast_function (func=0x0, pp_stack=0x1a4594, n=1721752, na=1, nk=0) at Python/ceval.c:3150 #25 0x4a2a0 in eval_frame (f=0x1a4430) at Python/ceval.c:2013 #26 0x4b180 in PyEval_EvalCodeEx (co=0x2704c8, globals=0x1a4594, locals=0x83, args=0x164820, argcount=1, kws=0x164824, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #27 0x4e148 in fast_function (func=0x0, pp_stack=0x164820, n=1460260, na=1, nk=0) at Python/ceval.c:3150 #28 0x4a2a0 in eval_frame (f=0x1646c8) at Python/ceval.c:2013 #29 0x4b180 in PyEval_EvalCodeEx (co=0x1a56c8, globals=0x164820, locals=0x83, args=0x164b74, argcount=2, kws=0x164b7c, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #30 0x4e148 in fast_function (func=0x0, pp_stack=0x164b74, n=1461116, na=2, nk=0) at Python/ceval.c:3150 #31 0x4a2a0 in eval_frame (f=0x164a20) at Python/ceval.c:2013 #32 0x4b180 in PyEval_EvalCodeEx (co=0x25b7e0, globals=0x164b74, locals=0x83, args=0x1625b8, argcount=2, kws=0x1625c0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 ---Type to continue, or q to quit--- #33 0x4e148 in fast_function (func=0x0, pp_stack=0x1625b8, n=1451456, na=2, nk=0) at Python/ceval.c:3150 #34 0x4a2a0 in eval_frame (f=0x162460) at Python/ceval.c:2013 #35 0x4b180 in PyEval_EvalCodeEx (co=0x282898, globals=0x1625b8, locals=0x83, args=0x2800c8, argcount=1, kws=0x2800cc, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #36 0x4e148 in fast_function (func=0x0, pp_stack=0x2800c8, n=2621644, na=1, nk=0) at Python/ceval.c:3150 #37 0x4a2a0 in eval_frame (f=0x27ff70) at Python/ceval.c:2013 #38 0x4b180 in PyEval_EvalCodeEx (co=0x1a56c8, globals=0x2800c8, locals=0x83, args=0x14c2b0, argcount=2, kws=0x14c2b8, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #39 0x4e148 in fast_function (func=0x0, pp_stack=0x14c2b0, n=1360568, na=2, nk=0) at Python/ceval.c:3150 #40 0x4a2a0 in eval_frame (f=0x14c158) at Python/ceval.c:2013 #41 0x4b180 in PyEval_EvalCodeEx (co=0x1fc968, globals=0x14c2b0, locals=0x83, args=0x12356c, argcount=1, kws=0x123570, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #42 0x4e148 in fast_function (func=0x0, pp_stack=0x12356c, n=1193328, na=1, nk=0) at Python/ceval.c:3150 #43 0x4a2a0 in eval_frame (f=0x123400) at Python/ceval.c:2013 #44 0x4b180 in PyEval_EvalCodeEx (co=0x17a3d8, globals=0x12356c, locals=0x83, args=0x28, argcount=0, kws=0x26138c, kwcount=5, defs=0x0, defcount=0, ---Type to continue, or q to quit--- closure=0x0) at Python/ceval.c:2574 #45 0x4e148 in fast_function (func=0x0, pp_stack=0x28, n=2495412, na=0, nk=5) at Python/ceval.c:3150 #46 0x4a2a0 in eval_frame (f=0x261238) at Python/ceval.c:2013 #47 0x4b180 in PyEval_EvalCodeEx (co=0x252488, globals=0x261388, locals=0x83, args=0x105b80, argcount=0, kws=0x105b80, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #48 0x4e148 in fast_function (func=0x0, pp_stack=0x105b80, n=1072000, na=0, nk=0) at Python/ceval.c:3150 #49 0x4a2a0 in eval_frame (f=0x105a30) at Python/ceval.c:2013 #50 0x4b180 in PyEval_EvalCodeEx (co=0x17aa38, globals=0x105b7c, locals=0x83, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #51 0x4e0e0 in PyEval_EvalCode (co=0x0, globals=0x103f88, locals=0x103f88) at Python/ceval.c:483 #52 0x6f5d4 in run_node (n=0x0, filename=0x103f88 "", globals=0x103f88, locals=0x103f88, flags=0x103f88) at Python/pythonrun.c:1083 #53 0x6da88 in PyRun_SimpleFileExFlags (fp=0xefa90, filename=0xffbef972 "setup.py", closeit=1, flags=0xffbef78c) at Python/pythonrun.c:689 #54 0x1ae50 in Py_Main (argc=980992, argv=0xffbef804) at Modules/main.c:369 (gdb) up #1 0x20f00 in PyString_FromString ( str=0x7e1138
) at Objects/stringobject.c:112 112 size = strlen(str); (gdb) p str $1 = 0x7e1138
(gdb)