cbd4 ssh segmentation fault after upgrade to 7.0-RELEASE-p5 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old November 19th, 2008, 12:16
yannvote yannvote is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ssh segmentation fault after upgrade to 7.0-RELEASE-p5

Hi all,

I managed to upgrade my tiny server to 7.0-RELEASE-p5. After the

make installkernel KERNCONF=QUOTAKERNEL

which has been going smoothly (the only difference between QUOTAKERNEL and GENERIC is the uncommented line "options QUOTA"), I reboot the server. And then remote login via SSH is not possible anymore. The os is now:

FreeBSD pavillon.siege.pnrun.local 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #4: Sun Nov 16 16:01:33 RET 2008 ad@pavillon.siege.pnrun.local:/usr/obj/usr/src/sys/QUOTAKERNEL i386

When trying to connect to this machine, the output of sshd -ddd is in attachment. The client get an 'Connection closed by remote host.' while the server exits with a 'Segmentation fault' shortly after 'Allocating pty.'

I'm not sure if the p5 patch is involved, I don't think so. But the problem occured after the upgrade. I was SSHing to update the kernel, reboot, and ssh segfault.

For completeness, the machine is a BDC in a samba domain. Authentication is done with pam_ldap and nss_ldap. However, the problem still remains when I remove all pam_ldap.so references in /etc/pam.d/sshd and all ldap references in /etc/nsswitch.conf.

I can't figure out the nature of the problem, and google wasn't very helpful, so any help/idea would be greatly appreciated.

Thanks
Attached Files
File Type: txt sshd_log.txt (13.3 KB, 15 views)
Reply With Quote
  #2  
Old November 19th, 2008, 12:26
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

Quote:
Originally Posted by yannvote View Post
Hi all,

I managed to upgrade my tiny server to 7.0-RELEASE-p5. After the

make installkernel KERNCONF=QUOTAKERNEL
You forgot to update world.
freebsd-update is much better for this.
Reply With Quote
  #3  
Old November 19th, 2008, 12:39
danger@'s Avatar
danger@ danger@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Bratislava, Slovakia
Posts: 774
Thanks: 4
Thanked 165 Times in 84 Posts
Default

What version were you upgrading from?
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
  #4  
Old November 19th, 2008, 16:04
yannvote yannvote is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, I forgot to tell you that I was upgrading from 7.0-RELEASE-p4. So I've just followed the instructions along with the p5 patch, that is to say: rebuild the kernel:

# cd /usr/src
# make buildkernel KERNCONF=QUOTAKERNEL
# make installkernel KERNCONF=QUOTAKERNEL
# shutdown -r now
Reply With Quote
  #5  
Old November 19th, 2008, 17:43
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,712
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Read /usr/src/UPDATING.. It's quite likely you need to update world too..

As in

make buildworld
make installworld

Once that's done, don't forget to run mergemaster
Reply With Quote
  #6  
Old November 20th, 2008, 19:00
yannvote yannvote is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, ok, I know, rtfm

Instead of 'make buildworld', a 'make kernel-toolchain' as indicated in /usr/src/UPDATING solved my problem.

Thanks everybody
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BTX fault booting FreeBSD 6.3 amd64 on VMware Server 2 Christopher Installing & Upgrading 4 November 21st, 2008 05:04
net-snmp port upgrade build error on fbsd 7.0 ardya Installation and Maintenance of FreeBSD Ports or Packages 8 November 17th, 2008 10:41


All times are GMT +1. The time now is 19:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0