Bug 14028 - segfault with python dnsserver.dnsserver($SERVER)
Summary: segfault with python dnsserver.dnsserver($SERVER)
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: DCE-RPCs and pipes (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-07 22:50 UTC by Douglas Bagnall
Modified: 2019-07-24 00:00 UTC (History)
0 users

See Also:


Attachments
a gdb traceback (485.06 KB, text/plain)
2019-07-07 23:00 UTC, Douglas Bagnall
no flags Details
the pseudo-fuzzer that found this and other segfaults (24.09 KB, patch)
2019-07-07 23:04 UTC, Douglas Bagnall
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Bagnall 2019-07-07 22:50:58 UTC

    
Comment 1 Douglas Bagnall 2019-07-07 22:57:53 UTC
to reproduce, in an addc testenv:

  $ python3 -c'from samba.dcerpc.dnsserver import dnsserver; dnsserver("addc")'
  Segmentation fault

This is probably not very serious, but I am restricting access to it because I need to stop looking for a while.
Comment 2 Douglas Bagnall 2019-07-07 23:00:50 UTC
Created attachment 15291 [details]
a gdb traceback

The reason I am not sure, is this traceback goes deeper than most of the python binding issues I am looking at, and I am not certain there is only a client side path to it.
Comment 3 Douglas Bagnall 2019-07-07 23:04:26 UTC
Created attachment 15292 [details]
the pseudo-fuzzer that found this and other segfaults

This patch adds a test that throws arbitrary combinations off arguments at our python bindings, and looks for segfaults.

I have patches for all the problems it has found, except this one.
Comment 4 Douglas Bagnall 2019-07-24 00:00:12 UTC
fixed in 0348dd4b31062b2cf12d19ec5515a309d1d9b470