LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-28-2010, 05:37 PM   #1
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Rep: Reputation: 17
Unhappy Shadow-4.1.4 segfaults on "pwconv"


Hello,

I've been compiling CLFS (SVN) with jhalfs (also SVN) a few times, and have gotten to step 152/186 with no problems. Suddenly, (I was tailing the logs), I get a segfault when the program "pwconv" is run. The compilation went smoothly.

I think this is because of my CLFAGS were a bit too much. They're
Code:
-march=native -O3
I changed them to
Code:
-march=native -O0
after experiencing these errors, but I get the same problem. Here is the result of "pwconv" ("passwd" runs with no problem) being run
Code:
Segmentation fault (core dumped)
It's not very descriptive...

Thanks for anybody who can help.
 
Old 08-29-2010, 05:22 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

CFLAGS could indeed be the underlying problem. Did you try unsetting them?

Maybe these articles might help you in setting safe CFLAGS:

Safe Cflags (gentoo wiki)
Safe Cflags/Intel (Do read the first warning!!)
Safe Cflags/AMD

I have Intel Core 2 Duo/Quad processors and use the following (which haven't given me any problems):
Quote:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
Another thing: You do not mention this but are you also using MAKEFLAGS? This one does give me problems every so often (especially with make test/make check, but also on other occasions). I've decided to not use it any more.

Hope this helps.
 
Old 08-30-2010, 11:27 AM   #3
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
Hmm, I tried using no CFLAGS, setting optimization to 0, removing march, etc. No idea.

I even modified the source code of the program to write a number after each call of a function. No luck...
 
Old 08-30-2010, 01:32 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I've never played with/used jhalfs on clfs-svn, (b)lfs is my poison.....

Only advise I can give at this point is: Did everything go OK with both Cracklib and Linux-PAM (assuming you use these) and are you sure the Shadow package was build with (or without!!) these?

Hope this helps.
 
Old 08-30-2010, 06:14 PM   #5
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
I tried to debug the problem, so I compiled "strace". Wow, that was REALLY useful.

It told me that there was a bad call to a file named "/etc/passwd". It does not exist. A quick "touch /etc/passwd" make the segfault go away.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"setgid:Operation not permitted" after shadow install proRandom Linux From Scratch 3 10-21-2010 10:48 PM
what is the deal of the "!" for the root password in /etc/shadow for Ubuntu 10.04? ripperfan Ubuntu 4 07-17-2010 08:40 AM
what is the purpose of having " /etc/shadow " file ashishravande Linux - Newbie 2 05-15-2010 08:21 AM
LXer: British Conservative Shadow Chancellor backs "Open Source"! Again. But don't ge LXer Syndicated Linux News 0 02-13-2009 06:40 PM
create "shadow" passwords benjalien Linux - Security 3 11-16-2004 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration