Jira (PUP-11122) RSpec tests sometimes lead to memory access error on Windows

2023-01-24 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-11122  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: RSpec tests sometimes lead to memory access error on Windows   
 

  
 
 
 
 

 
 I've seen this test fail fairly regularly https://github.com/puppetlabs/puppet/blob/f25f20da81a471a2744b843590e91e002e3ed164/spec/integration/util/windows/registry_spec.rb#L182. I'm wondering if there's a bug when reading in REG_MULTI_SZ (with the double wide null terminator)? Or if the test writes a corrupt registry key is reading it back in incorrectly.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.404041.1623959041000.3765.1674611580018%40Atlassian.JIRA.


Jira (PUP-11122) RSpec tests sometimes lead to memory access error on Windows

2021-06-22 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11122  
 
 
  RSpec tests sometimes lead to memory access error on Windows   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Epic Link: 
 PUP-9341  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.404041.1623959041000.63182.1624399020210%40Atlassian.JIRA.


Jira (PUP-11122) RSpec tests sometimes lead to memory access error on Windows

2021-06-22 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11122  
 
 
  RSpec tests sometimes lead to memory access error on Windows   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Labels: 
 tech-debt  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.404041.1623959041000.62216.1624371120032%40Atlassian.JIRA.


Jira (PUP-11122) RSpec tests sometimes lead to memory access error on Windows

2021-06-17 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11122  
 
 
  RSpec tests sometimes lead to memory access error on Windows   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2021/06/17 12:44 PM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Josh Cooper  
 

  
 
 
 
 

 
 Sometimes pull requests fail on Windows. The error occurs in "after :each", which causes a cascading effect due to the Puppet.context being left in a bad state. It happens in PRs targeting 6.x (definitely) and main (I think):  
 
 
 
 
   1) Puppet::Util::Windows::Process when reading environment variables will ignore only keys or values with corrupt byte sequences  
 
 
  Failure/Error: get_uint32(i * 2) == 0  
 
 
  IndexError:  
 
 
Memory access offset=32 size=4 is out of bounds  
 
 
  # ./lib/puppet/util/windows/api_types.rb:82:in `get_uint32'  
 
 
  # ./lib/puppet/util/wi