You are not logged in.

#1 2012-06-20 18:27:37

tasty_minerals
Member
Registered: 2011-03-30
Posts: 191

Segmentation fault upon starting upowerd

This issue was bugging me for about a month, or maybe even since I've installed tlp for my thinkpad.
cat /var/log/boot

Wed Jun 20 21:04:47 2012: Starting upowerd.../etc/rc.d/tlp: line 31:   524 Segmentation fault      $UPWR -e > /dev/null 2>&1
Wed Jun 20 21:04:47 2012: done.
Wed Jun 20 21:04:47 2012: :: Starting D-BUS system messagebus    [BUSY]    [DONE] 
Wed Jun 20 21:04:48 2012: :: Starting NetworkManager    [BUSY]    [DONE] 
Wed Jun 20 21:04:49 2012: :: Starting alsa    [BKGD] 
Wed Jun 20 21:04:49 2012: :: Starting cupsd    [BKGD] 
Wed Jun 20 21:04:49 2012: :: Starting cpufreq    [BKGD] 
Wed Jun 20 21:04:50 2012: 
Wed Jun 20 21:04:50 2012: /dev/sda:
Wed Jun 20 21:04:50 2012:  setting Advanced Power Management level to 0xd2 (210)
Wed Jun 20 21:04:50 2012:  APM_level

cat /var/log/messages.log | grep error

Jun 20 21:04:47 localhost kernel: [   13.289962] upower[524]: segfault at 8 ip 08049130 sp bf8363d0 error 4 in upower[8048000+2000]

cat /etc/rc.d/tlp, line 31 starts at "case $1 in"

#!/bin/sh

### BEGIN INIT INFO
# Provides:          tlp
# Required-Start:    $remote_fs $all
# Required-Stop:     $remote_fs $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: tlp start/stop script
# Description:       Initialize tlp settings
### END INIT INFO

TLP=/usr/sbin/tlp
LIB=/usr/lib/tlp-pm/tlp-functions
RFLIB=/usr/lib/tlp-pm/tlp-rf-func

[ -x $TLP ] || exit 0

[ -f $LIB ] || exit 0
[ -f $RFLIB ] || exit 0
. $LIB
. $RFLIB

read_defaults || exit 0

echo_debug "run" "+++ init.d $1"
echo_debug "path" "PATH=$PATH"

check_tlp_enabled || exit 0

case $1 in
    start|restart|force-reload)
        echo -n "Loading tp-smapi kernel module..."
        load_tp_modules
        echo "done. "
        
        init_radio_devices start
    
        echo -n "Setting battery charge thresholds..."
        set_charge_thresholds
        echo "done."

        UPWR=$(which upower)
        if [ -n "$UPWR" ]; then
            echo -n "Starting upowerd..."
            $UPWR -e > /dev/null 2>&1
            echo "done."
            echo_debug "run" "upower_start"
        fi
        ;;
        
    stop)
        init_radio_devices stop
        
        # Remove usb startup flag
        [ -f $USB_DONE ] && rm $USB_DONE
        ;;

    *)
        echo "Usage: tlp {start|stop|restart|force-reload}" >&2
        exit 3
        ;;
esac

exit 0

I can start tlp though.
Can somebody help with an advice on that? Why does tlp causes a upowerd segfault?

Last edited by tasty_minerals (2012-06-20 18:34:03)


lenovo thinkpad EDGE 13'

Offline

Board footer

Powered by FluxBB