[PATCH][PING][PR gdb/19374] null-ptr dereference on solaris when running get_osdata( "processes" )

Simon Marchi simon.marchi@polymtl.ca
Tue Aug 7 21:37:00 GMT 2018


On 2018-08-07 15:29, Brian Vandenberg wrote:
> This patch is to address bug 19374 on solaris.
> 
> When running gdb under eclipse/CDT on Solaris, eclipse runs gdb with:
> 
> gdb --interpreter mi2 --nx
> 
> During execution it ends up sending the following string to gdb:
> 
> 16-list-thread-groups --available
> 
> ... at which point gdb crashes.
> 
> This patch partially reverts the change in the following:
> 
> http://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=e75fdfcad1c868eae5396a95be9dd18010406306#patch4
> 
> ... by re-adding the check for ops->beneath != NULL and returning
> TARGET_XFER_E_IO.
> 
> I cannot easily run the test suite against these changes right now.
> If this gets rejected based on that, I'll see about getting something
> setup at home to run the tests when I have time.
> 
> ----
> 
> note: this patch was tested against 8.1.1.  I don't know [yet] whether
> this is still a problem in 8.2 because of the procfs C++ conversion.
> The same logic still exists but "beneath" appears to be a function
> object.
> 
> -brian
> 
> ps, my assignment/release forms were completed/received 10/30/2017

Hi Brian,

Same here, please submit the patch that applies on master again once you 
are able to build & test (at least manually).

Simon



More information about the Gdb-patches mailing list