[netflow-tools] Python flowd module causing SIGBUS on OpenBSD/sparc64

Ben Lovett ben at tilderoot.com
Wed Aug 29 15:34:52 EST 2007

I'm trying to get some network monitoring going, and am revisiting
flowd with pfflowd. To try and make things a little more
interesting I'm looking at using the python interface to flowd, but
am running into a rather major problem, namely SIGBUS.

This is only happening for me on my sparc64, i386 causes no
troubles. Below is a backtrace generated after building the module
with debugging symbols.




Python 2.4.4 (#1, Aug  9 2007, 09:29:02) 
[GCC 3.3.5 (propolice)] on openbsd4
Type "help", "copyright", "credits" or "license" for more
>>> import flowd
>>> flows = flowd.FlowLog("/var/log/flowd", "rb")
>>> for flow in flows:
...     print flow.format()

Program received signal SIGBUS, Bus error.
0x00000000501a3f1c in object_to_u64 (o=0x4e126150, u64=0x500230cc)
at flowd_python.c:162
162             if (PyErr_Occurred())
(gdb) bt
#0  0x00000000501a3f1c in object_to_u64 (o=0x4e126150,
u64=0x500230cc) at flowd_python.c:162
#1  0x00000000501a3f7c in flowobj_normalise (f=0x50023000) at
#2  0x00000000501a4560 in flow_format (self=0x50023000,
args=0x50023000, kw_args=0x0) at flowd_python.c:271
#3  0x00000000455f7498 in PyCFunction_Call () from
#4  0x0000000045639520 in call_function () from
#5  0x0000000045636938 in PyEval_EvalFrame () from
#6  0x00000000456375cc in PyEval_EvalCodeEx () from
#7  0x0000000045634170 in PyEval_EvalCode () from
#8  0x000000004565c91c in run_node () from
#9  0x000000004565b230 in PyRun_InteractiveOneFlags () from
#10 0x000000004565af80 in PyRun_InteractiveLoopFlags () from
#11 0x000000004565aec8 in PyRun_AnyFileExFlags () from
#12 0x0000000045663ccc in Py_Main () from
#13 0x0000000000101118 in ___start ()
#14 0x000000004f802f24 in _dl_start () from /usr/libexec/ld.so
#15 0x000000004f802f24 in _dl_start () from /usr/libexec/ld.so
Previous frame identical to this frame (corrupt stack?)

More information about the netflow-tools mailing list