Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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
    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.

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

  4. $spacer_open
    $spacer_close

Posting Permissions

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