Fatal trap 12 in exec_copyout_strings()

Andrew Gallatin gallatin at cs.duke.edu
Wed Jun 22 15:33:14 GMT 2005


John Baldwin writes:
 > 
 > I think I figured it out.  sobomax@ 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


More information about the freebsd-amd64 mailing list