Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
python-ethtool bug
gdb) run /usr/sbin/rhnreg_ks --activationkey=1-xenial --serverUrl=http://spacewalk.lan/XMLRPC
Starting program: /usr/bin/python /usr/sbin/rhnreg_ks --activationkey=1-xenial --serverUrl=http://spacewalk.lan/XMLRPC
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00000000004c9b5a in PyEval_EvalFrameEx () at ../Python/ceval.c:2991
2991 ../Python/ceval.c: No such file or directory.
(gdb) bt
#0 0x00000000004c9b5a in PyEval_EvalFrameEx () at ../Python/ceval.c:2991
#1 0x00000000004c9d8f in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7fffffffddf0,
func=<function at remote 0x7fffee773b90>) at ../Python/ceval.c:4435
#2 call_function (oparg=<optimized out>, pp_stack=0x7fffffffddf0) at ../Python/ceval.c:4370
#3 PyEval_EvalFrameEx () at ../Python/ceval.c:2987
#4 0x00000000004c9d8f in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7fffffffdf40,
func=<function at remote 0x7fffee773d70>) at ../Python/ceval.c:4435
#5 call_function (oparg=<optimized out>, pp_stack=0x7fffffffdf40) at ../Python/ceval.c:4370
#6 PyEval_EvalFrameEx () at ../Python/ceval.c:2987
#7 0x00000000004c9d8f in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7fffffffe090,
func=<function at remote 0x7fffee79a398>) at ../Python/ceval.c:4435
#8 call_function (oparg=<optimized out>, pp_stack=0x7fffffffe090) at ../Python/ceval.c:4370
#9 PyEval_EvalFrameEx () at ../Python/ceval.c:2987
#10 0x00000000004c9d8f in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7fffffffe1e0,
func=<function at remote 0x7fffee799d70>) at ../Python/ceval.c:4435
#11 call_function (oparg=<optimized out>, pp_stack=0x7fffffffe1e0) at ../Python/ceval.c:4370
#12 PyEval_EvalFrameEx () at ../Python/ceval.c:2987
#13 0x00000000004c2765 in PyEval_EvalCodeEx () at ../Python/ceval.c:3582
#14 0x00000000004c2509 in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at ../Python/ceval.c:669
#15 0x00000000004f1def in run_mod.lto_priv () at ../Python/pythonrun.c:1376
#16 0x00000000004ec652 in PyRun_FileExFlags () at ../Python/pythonrun.c:1362
#17 0x00000000004eae31 in PyRun_SimpleFileExFlags () at ../Python/pythonrun.c:948
#18 0x000000000049e14a in Py_Main () at ../Modules/main.c:640
#19 0x00007ffff7811830 in __libc_start_main (main=0x49dab0 <main>, argc=4, argv=0x7fffffffe628, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe618) at ../csu/libc-start.c:291
#20 0x000000000049d9d9 in _start ()
(gdb) py-list
607 netdict['ipaddr'] = ''
608 if netdict['ip6addr'] is None:
609 netdict['ip6addr'] = ''
610 return netdict
611
>612 def read_network_interfaces():
613 intDict = {}
614 intDict['class'] = "NETINTERFACES"
615
616 if not ethtool_present:
617 # ethtool is not available on non-linux platforms (as kfreebsd), skip it
(gdb) py-locals
intDict = {'class': 'NETINTERFACES'}
interfaces = ['lo', 'enp0s3', 'enp0s8']
interface = 'lo'
(gdb) py-bt
Traceback (most recent call first):
File "/usr/share/rhn/up2date_client/hardware.py", line 612, in read_network_interfaces
def read_network_interfaces():
File "/usr/share/rhn/up2date_client/hardware.py", line 861, in Hardware
ret = read_network_interfaces()
File "/usr/sbin/rhnreg_ks", line 101, in main
hardwareList = hardware.Hardware()
File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhnreg_ks", line 218, in <module>
cli.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.