From owner-freebsd-sparc64@FreeBSD.ORG Mon Jun 11 08:10:04 2007 Return-Path: X-Original-To: freebsd-sparc64@hub.freebsd.org Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B18C316A469 for ; Mon, 11 Jun 2007 08:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9228B13C4B0 for ; Mon, 11 Jun 2007 08:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5B8A4cB003354 for ; Mon, 11 Jun 2007 08:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5B8A4wI003353; Mon, 11 Jun 2007 08:10:04 GMT (envelope-from gnats) Resent-Date: Mon, 11 Jun 2007 08:10:04 GMT Resent-Message-Id: <200706110810.l5B8A4wI003353@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-sparc64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KES Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C1A716A469 for ; Mon, 11 Jun 2007 08:04:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 3CADB13C447 for ; Mon, 11 Jun 2007 08:04:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5B84KmQ094552 for ; Mon, 11 Jun 2007 08:04:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l5B84KsQ094551; Mon, 11 Jun 2007 08:04:20 GMT (envelope-from nobody) Message-Id: <200706110804.l5B84KsQ094551@www.freebsd.org> Date: Mon, 11 Jun 2007 08:04:20 GMT From: KES To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: sparc64/113556: panic: trap: memory address not aligned; Rebooting... X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 08:10:04 -0000 >Number: 113556 >Category: sparc64 >Synopsis: panic: trap: memory address not aligned; Rebooting... >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 11 08:10:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: KES >Release: FreeBSD 6.2-STABLE #2: Mon May 14 17:40:17 EEST 2007 >Organization: Aldec-Kharkov >Environment: [root@sparc /usr/home/aldec]# uname -a FreeBSD sparc.aldec.com.pl 6.2-STABLE FreeBSD 6.2-STABLE #2: Mon May 14 17:40:17 EEST 2007 aldec@sparc.aldec.com.pl:/usr/obj/usr/src/sys/KES_KERN_SUN_v6 sparc64 >Description: This two commands is a cause of server rebooting: sysctl net.link.ether.bridge.enable=1 sysctl net.link.ether.bridge.config=rl0,rl1 ------------------------------------ This also rebooting the server. Here my mailing with mpd-users@ >How-To-Repeat: 1) sysctl net.link.ether.bridge.enable=1 sysctl net.link.ether.bridge.config=rl0,rl1 2) Install mpd and UP vpn link after connection server goes down >Fix: >Release-Note: >Audit-Trail: >Unformatted: >KES wrote: >> Hi. >> My machine is: >> FreeBSD 6.2-STABLE #1: Tue Apr 3 08:42:50 EEST 2007 >> >> Timecounter "tick" frequency 360000000 Hz quality 1000 >> real memory = 201326592 (192 MB) >> avail memory = 178716672 (170 MB) >> cpu0: Sun Microsystems UltraSparc-IIi Processor (360.00 MHz CPU) > >MPD version? I've tested 4.1 on same arch and it works fine for me. > >> Connecting to mpd causing server to REBOOT >> mpd.links >> ------------------- >> pptp0: >> set link type pptp >> >> mpd.conf >> ------------------- >> default: >> load pptp0 >> pptp0: >> new -i ng00 pptp0 pptp0 >> load pptp_standart >> pptp_standart: >> set iface disable on-demand >> set bundle disable multilink >> set link no pap >> set link enable chap >> set link keep-alive 60 180 >> set ipcp yes vjcomp >> #XXXX and YYYY -- my IP addresses >> set ipcp dns 1.2.3.4 >> set ipcp dns 5.6.7.8 >> set iface disable proxy-arp >> set pptp enable incoming >> set pptp disable originate >> set link yes acfcomp protocomp >> log +auth > >Try looking at the console. The problem can be caused not directly by >mpd. What exactly says kernel when failing? ##################### NEXT MAIL ##################### My mpd Version is: [root@sparc /usr/home/aldec]# mpd4 -v Version 4.1 (root@sparc.aldec.com.pl 14:10 29-Mar-2007) I have ran mpd4 and try to connect from WinXP SP2. [root@sparc /]# mpd4 > /vpntest after server fail [root@sparc /]# cat /vpntest Multi-link PPP daemon for FreeBSD process 1378 started, version 4.1 (root@sparc.aldec.com.pl 14:10 29-Mar-2007) Label 'startup' not found [pptp0] using interface ng0 [pptp1] using interface ng1 PPTP connection from 192.168.0.1 4765 pptp0: attached to connection with 192.168.0.1 4765 [pptp0] Accepting PPTP connection [pptp0] opening link "pptp0"... [pptp0] link: OPEN event [pptp0] LCP: Open event [pptp0] LCP: state change Initial --> Starting [pptp0] LCP: LayerStart [pptp0] attaching to peer's outgoing call [pptp0] link: UP event [pptp0] link: origination is remote [pptp0] LCP: Up event [pptp0] LCP: state change Starting --> Req-Sent [pptp0] LCP: SendConfigReq #1 ACFCOMP PROTOCOMP MRU 1500 MAGICNUM c62da0c6 AUTHPROTO CHAP MSOFTv2 pptp0-0: ignoring SetLinkInfo [pptp0] LCP: rec'd Configure Request #0 link 0 (Req-Sent) MRU 1400 MAGICNUM 619e59e8 PROTOCOMP ACFCOMP CALLBACK Not supported [pptp0] LCP: SendConfigRej #0 CALLBACK [pptp0] LCP: rec'd Configure Request #1 link 0 (Req-Sent) MRU 1400 MAGICNUM 619e59e8 PROTOCOMP ACFCOMP [pptp0] LCP: SendConfigAck #1 MRU 1400 MAGICNUM 619e59e8 PROTOCOMP ACFCOMP [pptp0] LCP: state change Req-Sent --> Ack-Sent [root@sparc /] cat /var/log/dmesg.today panic: trap: memory address not aligned Uptime: 1d5h46m18s Cannot dump. No dump device defined. Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-STABLE #1: Tue Apr 3 08:42:50 EEST 2007 root@sparc.aldec.com.pl:/usr/obj/usr/src/sys/KES_KERN_SUN_v6 module_register: module ng_mppc already exists! Module ng_mppc failed to register: 17 Timecounter "tick" frequency 360000000 Hz quality 1000 ######### NEXT MAIL ######### >KES wrote: >> My mpd Version is: >> [root@sparc /usr/home/aldec]# mpd4 -v >> Version 4.1 (root@sparc.aldec.com.pl 14:10 29-Mar-2007) > >> [root@sparc /] cat /var/log/dmesg.today >> panic: trap: memory address not aligned > >This is your pain. Some netgraph modules should be rewrited because they > do address memory the way sparc don't adore. At least I'm sure that >ng_netflow is unusable on sparc. > >Try recompiling kernel without most NETGRAPH modules. You actually need >only this 2 lines in your kernel config for mpd to work: > >options NETGRAPH >options NETGRAPH_ETHER > >All other modules would be loaded automatically. ####### NEXT MAIL ####### I have recompiled kernel. Server still rebooting. But mpd seems fail earlier #cat /vpntest Multi-link PPP daemon for FreeBSD process 1044 started, version 4.1 (root@sparc.aldec.com.pl 14:10 29-Mar-2007) Label 'startup' not found [pptp0] using interface ng0 [pptp1] using interface ng1