Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    [ACLFS] Shadow-4.1.4 segfaults on "pwconv"


    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
    -march=native -O3
    I changed them to
    -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
    Segmentation fault (core dumped)
    It's not very descriptive...

    Thanks for anybody who can help.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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!

  3. #3
    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.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts