WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bootcode segmentation fault 3.8.3  (Read 792 times)

ali

  • Guest
bootcode segmentation fault 3.8.3
« on: August 29, 2011, 08:17:35 PM »
Hello,
Let me get straight to the point.
This is my grub entry

Code: [Select]
menuentry "Tinycore" {
linux /boot/bzImage quiet tce=sda8 user=ali laptop tz=GMT+2 host=mini
initrd /boot/microcore.gz
}

when it boots it says
Code: [Select]
Adding user ali
Password for ali has changed
Segmentation fault
I think there may be something wrong with the user bootcode

Offline maro

  • Hero Member
  • *****
  • Posts: 1229
Re: bootcode segmentation fault 3.8.3
« Reply #1 on: August 29, 2011, 09:30:46 PM »
OK, I believe to have been able to reproduce the reported issue and identified the likely "culprit":
Code: [Select]
ali@mini:~$ dmesg | grep segfault
chpasswd[201]: segfault at 8000000 ip b76a1839 sp bfaebecc error 4 in libc-2.11.1.so[b7632000+13d000]
which is most likely a consequence of line 17 in '/etc/init.d/tc-config': echo "$USER":tcuser | /usr/sbin/chpasswd -m

As the same could be found in MC 3.8.2 (but not in MC 3.8.1) I'm pretty sure that means a regression in BusyBox v1.19.0 for the 'chpasswd' applet.

To which degree this segmentation fault is having a negative impact is something I can't tell for sure. At least as the "Password for 'ali' changed" message appears and '/etc/shadow' has indeed been updated I suspect the fault stems from the few "cleanup" statements following in the source code after that message has been printed. So I personally would not worry too much, but there is always the option to fall back to MC 3.8.1 (or earlier) where an older versions of BusyBox was used.
« Last Edit: August 29, 2011, 09:38:03 PM by maro »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7344
  • Founder Emeritus
Re: bootcode segmentation fault 3.8.3
« Reply #2 on: August 29, 2011, 10:15:13 PM »
Confirmed busybox chpasswd applet is the culprit.
10+ Years Contributing to Linux Open Source Projects.

Offline maro

  • Hero Member
  • *****
  • Posts: 1229
Re: bootcode segmentation fault 3.8.3
« Reply #3 on: August 30, 2011, 12:37:58 AM »
I've now raised a bug report against BusyBox about it.

Offline maro

  • Hero Member
  • *****
  • Posts: 1229
Re: bootcode segmentation fault 3.8.3
« Reply #4 on: September 11, 2011, 03:06:15 PM »
Apparently the bug has now been fixed with this commit. I guess instead of using a (potentially) "leaky" patch it might be prudent to give the "official solution" a go (which is obviously expected to appear in BusyBox v1.19.3).