Results 1 to 3 of 3
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 ...
- 08-29-2010 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 6
[ACLFS] 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
I changed them toCode:-march=native -O3
after experiencing these errors, but I get the same problem. Here is the result of "pwconv" ("passwd" runs with no problem) being runCode:-march=native -O0
It's not very descriptive...Code:Segmentation fault (core dumped)
Thanks for anybody who can help.
- 08-30-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,952
Myself, I'd build pwconv with debugging options on, make sure not to strip the libraries and executable, and then run it in gdb. At least when it dumps core, you will be able to find out what it was doing, and where, not to mention have the ability to inspect program variables and data. Who knows, you may have found a bug and are the hero of the week!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 08-30-2010 #3Just Joined!
- Join Date
- Feb 2009
- Posts
- 6
So I debugged the program with strace, and it worked like a charm.
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.
I'm not really sure if it is a bug, but it went away.


Reply With Quote
