LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   'slackpkg update' ends in segmentation fault (https://www.linuxquestions.org/questions/slackware-14/slackpkg-update-ends-in-segmentation-fault-929616/)

STDOUBT 02-16-2012 12:23 AM

'slackpkg update' ends in segmentation fault
 
Slackware 13.37.0 32bit, no fancy addons, default kernel.

The recent big update went fine, and out of curiosity I ran 'slackpkg update' today which seemed to go pretty far but returned me to the prompt with:
Code:

Formatting lists to slackpkg style...
                Package List: using CHECKSUMS.md5 as source
/usr/libexec/slackpkg/core-functions.sh: line 956: 13189 Segmentation fault      cp ${TMPDIR}/pkglist ${WORKDIR}/pkglist
/usr/libexec/slackpkg/core-functions.sh: line 956: 13214 Segmentation fault      cp ${TMPDIR}/*-filelist.gz ${WORKDIR}/
                Package descriptions
/usr/libexec/slackpkg/core-functions.sh: line 956: 13220 Segmentation fault      cp $TMPDIR/PACKAGES.TXT ${WORKDIR}/PACKAGES.TXT
/usr/libexec/slackpkg/core-functions.sh: line 956: 13221 Segmentation fault      cp $TMPDIR/CHECKSUMS.md5 $WORKDIR/CHECKSUMS.md5 2> /dev/null
/usr/libexec/slackpkg/core-functions.sh: line 956: 13222 Segmentation fault      cp $TMPDIR/CHECKSUMS.md5.asc $WORKDIR/CHECKSUMS.md5.asc 2> /dev/null

Line 956 looks normal, it's just an open bracket"{". I've never even messed with that file before. I actually haven't monkeyed around with this system other than install several mundane items from SBo. I tried changing the mirror with the exact same result.
I guess CHECKSUMS.md5 or core-functions.sh are just corrupt somehow?
Any and all advice welcome!

willysr 02-16-2012 01:06 AM

i'm curious, did you change your repository to -Current?

STDOUBT 02-16-2012 08:50 AM

Did not change repo to -current. Has been 13.37 since the system was installed. I only changed it to another mirror (a 13.37 mirror) to test it since this problem cropped up.

STDOUBT 02-16-2012 10:25 AM

OK,
I "fixed" this problem by copying the /usr/libexec/slackpkg/core-functions.sh file from a different system also running 13.37. The strange thing is, running diff on the files came up empty... I guess I'll just chalk this up to bitrot and move on. Frustrating to not know what the actual problem was.


All times are GMT -5. The time now is 04:33 PM.