Re: Fatal trap 12 in exec_copyout_strings()

From: Andrew Gallatin <gallatin_at_cs.duke.edu>
Date: Wed, 22 Jun 2005 11:33:08 -0400 (EDT)
John Baldwin writes:
 > 
 > I think I figured it out.  sobomax_at_ changed how much memory exec_copyin_args() 
 > and exec_free_args() allocated and freed without updating 
 > freebsd32_exec_copyin_args() and linux_exec_copyin_args(), so more memory was 
 > freed than was allocated which would free memory out from other execs.  Patch 
 > is below.  Let me know if it fixes the problem.
 > 

This works for me.  Previously, running the cross compiler would panic
the box instantly.  Now it works fine.   Your theory about freeing
things from other execs makes sense because gcc is always exec'ing off
different stages of the compilation..

Nice work!


Drew
Received on Wed Jun 22 2005 - 13:33:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:37 UTC