I've noticed that the omshell as shipped in the package is doing bad
things memory access wise...

$ valgrind /usr/bin/omshell 
==735304== Memcheck, a memory error detector
==735304== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==735304== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==735304== Command: /usr/bin/omshell
==735304== 
==735304== Conditional jump or move depends on uninitialised value(s)
==735304==    at 0x48760C0: irs_resconf_load (in 
/usr/lib/x86_64-linux-gnu/libirs-export.so.161.0.1)
==735304==    by 0x155D67: dhcp_dns_client_setservers (isclib.c:51)
==735304==    by 0x15620B: dns_client_init (isclib.c:381)
==735304==    by 0x15620B: dns_client_init (isclib.c:354)
==735304==    by 0x1562BB: dhcp_context_create (isclib.c:246)
==735304==    by 0x114C15: dhcpctl_initialize (dhcpctl.c:45)
==735304==    by 0x11374B: main (omshell.c:118)
==735304== 
> connect
==735304== Invalid read of size 8
==735304==    at 0x14EC6B: omapi_one_dispatch (dispatch.c:676)
==735304==    by 0x14F462: omapi_wait_for_completion (dispatch.c:455)
==735304==    by 0x114D62: dhcpctl_connect (dhcpctl.c:115)
==735304==    by 0x113F23: main (omshell.c:420)
==735304==  Address 0x7010cf0 is 32 bytes inside a block of size 96 free'd
==735304==    at 0x483CA3F: free (in 
/usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==735304==    by 0x14A39F: dfree (alloc.c:203)
==735304==    by 0x14A39F: omapi_object_dereference (alloc.c:709)
==735304==    by 0x14E1DA: omapi_io_dereference (dispatch.c:39)
==735304==    by 0x14E1DA: omapi_unregister_io_object (dispatch.c:410)
==735304==    by 0x14B217: omapi_disconnect.part.0 (connection.c:528)
==735304==    by 0x14B4C4: omapi_disconnect (connection.c:465)
==735304==    by 0x14B4C4: omapi_connection_connect_internal (connection.c:728)
==735304==    by 0x14B61C: omapi_connection_connect (connection.c:615)
==735304==    by 0x14EC4E: omapi_one_dispatch (dispatch.c:693)
==735304==    by 0x14F462: omapi_wait_for_completion (dispatch.c:455)
==735304==    by 0x114D62: dhcpctl_connect (dhcpctl.c:115)
==735304==    by 0x113F23: main (omshell.c:420)
==735304==  Block was alloc'd at
==735304==    at 0x483DD99: calloc (in 
/usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==735304==    by 0x149F11: dmalloc (alloc.c:71)
==735304==    by 0x14A094: omapi_object_allocate (alloc.c:543)
==735304==    by 0x14DDDD: omapi_io_allocate (dispatch.c:39)
==735304==    by 0x14DDDD: omapi_register_io_object (dispatch.c:223)
==735304==    by 0x14BCA7: omapi_connect_list (connection.c:219)
==735304==    by 0x14C012: omapi_connect (connection.c:96)
==735304==    by 0x146BD6: omapi_protocol_connect (protocol.c:55)
==735304==    by 0x114D21: dhcpctl_connect (dhcpctl.c:106)
==735304==    by 0x113F23: main (omshell.c:420)
==735304== 
dhcpctl_connect: no more

When I build ISC's dhcpd from their git repository manually, not using
the source package, it works fine. I haven't got to the bottom of it,
though.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1916931

Title:
  omshell returns inconsistent results or segfaults

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1916931/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to