Bug 27766

Summary: /usr/bin/ppp issues unaligned accesses and core dumps on alpha (patch included)
Product: Base System Reporter: Sudish Joseph <sudish>
Component: alphaAssignee: freebsd-alpha (Nobody) <alpha>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Sudish Joseph 2001-05-30 10:40:01 UTC
/usr/sbin/ppp attempts unaligned accesses when resolving dns queries.
On an alpha this can and does cause a core dump.  The patch below removes
the unaligned access.

Fix: The following patch replaces the unaligned access with a bcopy(), which
fixes the problem.
How-To-Repeat: Run /usr/bin/ppp on an alpha and do anything that causes ppp to do dns
lookups.  For instance, try a traceroute without -n.  Given the right 
dns reply packet -- one with unaligned data -- ppp dumps core.
Comment 1 Brian Somers freebsd_committer freebsd_triage 2001-05-30 16:53:15 UTC
State Changed
From-To: open->closed

Fixed in -current - thanks. 
I'll MFC the change in 2 weeks.