Summary: | sys-apps/openrc-0.2.4 segfaults when stopping hwclock init.d | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rod <r1h> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | VERIFIED FIXED | ||
Severity: | major | CC: | roy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge openrc >& log
FEATURES=nostrip emerge openrc >& log emerge openrc-2.4 FEATURES=nostrip emerge openrc-2.4 >& log Check deptree exists before using it FEATURES=nostrip emerge openrc >& log + patch |
Description
Rod
2008-05-06 12:56:25 UTC
only install baselayout-2 and openrc, and then post the full build log as an attachment from doing: emerge openrc >& log Created attachment 152195 [details]
emerge openrc >& log
and so do you still get the same errors ? what about running an init.d script by hand like: /etc/init.d/hwclock --nodeps stop /etc/init.d/hwclock --nodeps start (In reply to comment #3) > and so do you still get the same errors ? what about running an init.d script > by hand like: > /etc/init.d/hwclock --nodeps stop > /etc/init.d/hwclock --nodeps start > yes the errors are just the same. i cant see any change at all after re-emerging. localhost r1h # /etc/init.d/hwclock --nodeps stop * WARNING: you are stopping a boot service /lib64/rc/sh/runscript.sh: line 165: command: stop_pre: not found /lib64/rc/sh/runscript.sh: line 169: command: stop_post: not found localhost r1h # /etc/init.d/hwclock --nodeps start /lib64/rc/sh/runscript.sh: line 165: command: start_pre: not found * Setting system clock using the hardware clock [UTC] ... [ ok ] /lib64/rc/sh/runscript.sh: line 169: command: start_post: not found Segmentation fault localhost r1h # although , when i add -nodeps to the command i see it has segmentation fault at the end. r1h@localhost ~ $ dmesg | tail Adding 995988k swap on /dev/hdc1. Priority:1 extents:1 across:995988k Adding 995988k swap on /dev/hdd1. Priority:1 extents:1 across:995988k skge eth0: enabling interface skge eth0: Link is up at 100 Mbps, full duplex, flow control none agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode NVRM: bad caching on address 0xffff81003b302000: actual 0x173 != expected 0x17b NVRM: please see the README section on Cache Aliasing for more information hwclock[4069]: segfault at 0 ip 7f40e5eaad39 sp 7fffee4caec0 error 4 in librc.so.1[7f40e5ea6000+9000] r1h@localhost ~ $ run the same tests, but with --debug on the command line also re-emerge openrc with USE=debug and CFLAGS='-g' and FEATURES=nostrip (In reply to comment #5) > run the same tests, but with --debug on the command line > > also re-emerge openrc with USE=debug and CFLAGS='-g' and FEATURES=nostrip > mother r1h # /etc/init.d/hwclock --nodeps --debug stop hwclock | * WARNING: you are stopping a boot service hwclock |+ _conf_d=/etc/init.d/../conf.d hwclock |+ _c=hwclock hwclock |+ '[' -n hwclock -a hwclock '!=' hwclock ']' hwclock |+ unset _c hwclock |+ '[' -e /etc/init.d/../conf.d/hwclock.default ']' hwclock |+ '[' -e /etc/init.d/../conf.d/hwclock ']' hwclock |+ . /etc/init.d/../conf.d/hwclock hwclock |++ CLOCK=local hwclock |++ TIMEZONE=NZ hwclock |++ CLOCK_OPTS= hwclock |++ CLOCK_SYSTOHC=yes hwclock |++ SRM=no hwclock |++ ARC=no hwclock |+ unset _conf_d hwclock |+ '[' -e /etc/rc.conf ']' hwclock |+ . /etc/rc.conf hwclock |++ rc_parallel=YES hwclock |++ rc_interactive=NO hwclock |++ rc_depend_strict=YES hwclock |++ rc_hotplug=YES hwclock |++ rc_coldplug=YES hwclock |++ rc_plug_services= hwclock |++ rc_logger=YES hwclock |++ unicode=YES hwclock |++ net_fs_list='afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs smbfs' hwclock |++ rc_tty_number=12 hwclock |++ rc_devices=udev hwclock |++ rc_device_tarball=NO hwclock |++ dmesg_level=1 hwclock |+ '[' -n '' ']' hwclock |+ . /etc/init.d/hwclock hwclock |++ extra_commands='save show' hwclock |++ description='Sets the local clock to UTC or Local Time.' hwclock |++ description_save='Saves the current time in the BIOS.' hwclock |++ description_show='Displays the current time in the BIOS.' hwclock |++ clock_adjfile= hwclock |++ clock_args= hwclock |++ clock_systohc=yes hwclock |++ clock=local hwclock |++ '[' local = UTC ']' hwclock |++ utc='Local Time' hwclock |++ utc_cmd=--localtime hwclock |+ unset _d hwclock |+ unset _f hwclock |+ '[' -n stop ']' hwclock |+ for _cmd in describe start stop '${extra_commands:-${opts}}' '${extra_started_commands}' hwclock |+ '[' describe = stop ']' hwclock |+ for _cmd in describe start stop '${extra_commands:-${opts}}' '${extra_started_commands}' hwclock |+ '[' start = stop ']' hwclock |+ for _cmd in describe start stop '${extra_commands:-${opts}}' '${extra_started_commands}' hwclock |+ '[' stop = stop ']' hwclock |++ command -v stop hwclock |+ '[' stop = stop ']' hwclock |+ yesno hwclock |+ '[' -z '' ']' hwclock |+ return 1 hwclock |+ unset _cmd hwclock |++ command -v stop_pre hwclock |/lib64/rc/sh/runscript.sh: line 165: command: stop_pre: not found hwclock |+ '[' '' = stop_pre ']' hwclock |+ stop hwclock |+ '[' -n '' ']' hwclock |+ yesno yes hwclock |+ '[' -z yes ']' hwclock |+ case "$1" in hwclock |+ return 0 hwclock |+ local retval=0 errstr= hwclock |+ setupopts hwclock |+ case "$(uname -m)" in hwclock |++ uname -m hwclock |+ '[' -e /proc/devices ']' hwclock |+ grep -q ' cobd$' /proc/devices hwclock |+ case "${utc}" in hwclock |+ '[' -z --localtime ']' hwclock |+ ebegin 'Setting hardware clock using the system clock' '[Local Time]' hwclock | * Setting hardware clock using the system clock [Local Time] ... hwclock |+ yesno '' hwclock |+ '[' -z '' ']' hwclock |+ return 1 hwclock |+ LC_ALL=C hwclock |+ hwclock --help hwclock |+ grep -q '\-\-noadjfile' hwclock |+ utc_cmd='--localtime --noadjfile' hwclock |+ _hwclock --systohc --localtime --noadjfile hwclock |++ hwclock --systohc --localtime --noadjfile hwclock |+ local err= hwclock |+ '[' -z '' ']' hwclock |+ return 0 hwclock |+ retval=0 hwclock |+ eend 0 'Failed to sync clocks' [ ok ] hwclock |++ command -v stop_post hwclock |/lib64/rc/sh/runscript.sh: line 169: command: stop_post: not found hwclock |+ '[' '' = stop_post ']' hwclock |+ shift hwclock |+ continue 2 hwclock |+ '[' -n '' ']' mother r1h # /etc/init.d/hwclock --nodeps --debug start hwclock |+ _conf_d=/etc/init.d/../conf.d hwclock |+ _c=hwclock hwclock |+ '[' -n hwclock -a hwclock '!=' hwclock ']' hwclock |+ unset _c hwclock |+ '[' -e /etc/init.d/../conf.d/hwclock.default ']' hwclock |+ '[' -e /etc/init.d/../conf.d/hwclock ']' hwclock |+ . /etc/init.d/../conf.d/hwclock hwclock |++ CLOCK=local hwclock |++ TIMEZONE=NZ hwclock |++ CLOCK_OPTS= hwclock |++ CLOCK_SYSTOHC=yes hwclock |++ SRM=no hwclock |++ ARC=no hwclock |+ unset _conf_d hwclock |+ '[' -e /etc/rc.conf ']' hwclock |+ . /etc/rc.conf hwclock |++ rc_parallel=YES hwclock |++ rc_interactive=NO hwclock |++ rc_depend_strict=YES hwclock |++ rc_hotplug=YES hwclock |++ rc_coldplug=YES hwclock |++ rc_plug_services= hwclock |++ rc_logger=YES hwclock |++ unicode=YES hwclock |++ net_fs_list='afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs smbfs' hwclock |++ rc_tty_number=12 hwclock |++ rc_devices=udev hwclock |++ rc_device_tarball=NO hwclock |++ dmesg_level=1 hwclock |+ '[' -n '' ']' hwclock |+ . /etc/init.d/hwclock hwclock |++ extra_commands='save show' hwclock |++ description='Sets the local clock to UTC or Local Time.' hwclock |++ description_save='Saves the current time in the BIOS.' hwclock |++ description_show='Displays the current time in the BIOS.' hwclock |++ clock_adjfile= hwclock |++ clock_args= hwclock |++ clock_systohc=yes hwclock |++ clock=local hwclock |++ '[' local = UTC ']' hwclock |++ utc='Local Time' hwclock |++ utc_cmd=--localtime hwclock |+ unset _d hwclock |+ unset _f hwclock |+ '[' -n start ']' hwclock |+ for _cmd in describe start stop '${extra_commands:-${opts}}' '${extra_started_commands}' hwclock |+ '[' describe = start ']' hwclock |+ for _cmd in describe start stop '${extra_commands:-${opts}}' '${extra_started_commands}' hwclock |+ '[' start = start ']' hwclock |++ command -v start hwclock |+ '[' start = start ']' hwclock |+ yesno hwclock |+ '[' -z '' ']' hwclock |+ return 1 hwclock |+ unset _cmd hwclock |++ command -v start_pre hwclock |/lib64/rc/sh/runscript.sh: line 165: command: start_pre: not found hwclock |+ '[' '' = start_pre ']' hwclock |+ start hwclock |+ local retval=0 errstr= hwclock |+ setupopts hwclock |+ case "$(uname -m)" in hwclock |++ uname -m hwclock |+ '[' -e /proc/devices ']' hwclock |+ grep -q ' cobd$' /proc/devices hwclock |+ case "${utc}" in hwclock |+ '[' -z --localtime ']' hwclock |+ ebegin 'Setting system clock using the hardware clock [Local Time]' hwclock | * Setting system clock using the hardware clock [Local Time] ... hwclock |+ '[' -e /proc/modules -a '!' -e /dev/rtc ']' hwclock |+ '[' -e /etc/adjtime ']' hwclock |+ yesno hwclock |+ '[' -z '' ']' hwclock |+ return 1 hwclock |+ '[' '' '!=' N -o --localtime '!=' --utc -o -n '' ']' hwclock |+ _hwclock --hctosys --localtime hwclock |++ hwclock --hctosys --localtime hwclock |+ local err= hwclock |+ '[' -z '' ']' hwclock |+ return 0 hwclock |+ retval=0 hwclock |+ eend 0 'Failed to set the system clock' [ ok ] hwclock |+ return 0 hwclock |++ command -v start_post hwclock |/lib64/rc/sh/runscript.sh: line 169: command: start_post: not found hwclock |+ '[' '' = start_post ']' hwclock |+ shift hwclock |+ continue 2 hwclock |+ '[' -n '' ']' Segmentation fault mother r1h # Created attachment 152817 [details]
FEATURES=nostrip emerge openrc >& log
what is your /bin/sh pointing to ? the output you've shown indicates the warnings are harmless, but `command -v` should not be outputting that stuff to stderr in the first place. (In reply to comment #8) > what is your /bin/sh pointing to ? the output you've shown indicates the > warnings are harmless, but `command -v` should not be outputting that stuff to > stderr in the first place. > mother ~ # file /bin/sh /bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped mother ~ # /bin/sh --help GNU bash, version 3.00.16(1)-release-(x86_64-pc-linux-gnu) Usage: /bin/sh [GNU long option] [option] ... /bin/sh [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --protected --rcfile --restricted --verbose --version --wordexp Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option Type `/bin/sh -c "help set"' for more information about shell options. Type `/bin/sh -c help' for more information about shell builtin commands. Use the `bashbug' command to report bugs. your /bin/sh should be a symlink to /bin/bash. it certainly shouldnt be an old copy of bash. (In reply to comment #10) > your /bin/sh should be a symlink to /bin/bash. it certainly shouldnt be an old > copy of bash. > changing /bin/sh to a symlink to /bin/bash has fixed the problem. it seems there really is no bug then. thank u for all ur help. i dont know why i had that old copy of bash. thanks again can you double check that things are no longer segfaulting as well ? (In reply to comment #12) > can you double check that things are no longer segfaulting as well ? > oh. i tried /etc/init.d/hwclock --nodeps stop /etc/init.d/hwclock --nodeps start and it seems to segfault and launches gdb maybe i shouldnt have closed the bug yet? localhost ~ # /etc/init.d/hwclock --nodeps start hwclock | * Setting system clock using the hardware clock [Local Time] ... [ ok ] Auto launching gdb! Attaching to process 7627 Reading symbols from /sbin/rc...done. Reading symbols from /lib64/libutil.so.1...done. Loaded symbols for /lib64/libutil.so.1 Reading symbols from /lib64/librc.so.1...done. Loaded symbols for /lib64/librc.so.1 Reading symbols from /lib64/libeinfo.so.1...done. Loaded symbols for /lib64/libeinfo.so.1 Reading symbols from /lib64/libncurses.so.5...done. Loaded symbols for /lib64/libncurses.so.5 Reading symbols from /lib64/libdl.so.2...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/libpam.so.0...done. Loaded symbols for /lib64/libpam.so.0 Reading symbols from /lib64/libc.so.6...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x00007fbbd96fa5fb in fork () from /lib64/libc.so.6 #0 0x00007fbbd96fa5fb in fork () from /lib64/libc.so.6 No symbol table info available. #1 0x00000000004139c4 in handle_bad_signal (sig=11) at rc.c:897 pid = "\001\000\000\000������" status = 0 crashed_pid = 7627 #2 <signal handler called> No symbol table info available. #3 0x00007fbbda232bf9 in get_depinfo (deptree=0x0, service=0x419955 "iprovide") at librc-depend.c:99 di = (RC_DEPINFO *) 0x7fbbda858bc0 #4 0x00007fbbda233ab9 in *__RC_rc_deptree_depend (deptree=0x0, service=0x419955 "iprovide", type=0x7fffe28580b5 "hwclock") at librc-depend.c:465 di = (RC_DEPINFO *) 0x0 dt = (RC_DEPTYPE *) 0xfefefefefefefeff svcs = (RC_STRINGLIST *) 0x8101010101010100 svc = (RC_STRING *) 0x7fbbda857000 #5 0x0000000000410a41 in svc_start (deps=false) at runscript.c:878 started = true background = false svc = (RC_STRING *) 0x7fffe28580b5 svc2 = (RC_STRING *) 0x7fffe28542e0 depoptions = 3 state = RC_SERVICE_STOPPED first = false n = 0 len = 140444801797056 p = 0x0 tmp = 0x7fffe28565d0 "\004" #6 0x0000000000411c33 in runscript (argc=3, argv=0x7fffe28565e0) at runscript.c:1300 deps = false doneone = true pidstr = "7627\000\000\000\000\000" retval = 0 opt = -1 svc = (RC_STRING *) 0x0 dir = '\0' <repeats 3368 times>, "�Vdڻ\177\000\000\000\000\000\000\000\000\000\000\2100\205ڻ\177\000\000\a\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000FX7\017\000\000\000\000<[dڻ\177\000\000\000\000\000\000\000\000\000\000��eٻ\177", '\0' <repeats 14 times>, "\006\000\000\000a�<\000\000\000\000\000 Q\205��\177\000\000\230R\205��\177\000\000P�eٻ\177\000\000\000\000\000\000\000\000\000\000�0\205ڻ\177\000\000pI\205ڻ\177\000\000�Vdڻ\177\000\000H�fٻ\177\000\000\2100\205ڻ\177\000\000\a\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000�p\016�\000\000\000\000�V"... l = 24 ll = 7 save = 0x7fffe28565d8 "\231\200\205��\177" depoptions = 1 #7 0x000000000040a249 in run_applets (argc=4, argv=0x7fffe28565d8) at rc-applets.c:387 i = 2 match = false p = 0x7fbbda857000 "" pid = 0 #8 0x0000000000413c9e in main (argc=4, argv=0x7fffe28565d8) at rc.c:976 bootlevel = 0x0 newlevel = 0x0 deporder = (RC_STRINGLIST *) 0x0 tmplist = (RC_STRINGLIST *) 0x7fffe28565d8 service = (RC_STRING *) 0x7fbbda858bc0 going_down = false depoptions = 3 krunlevel = "\000\000\000\000\000\000\000\000h�dڻ\177\000\000\000\000\000\000\000\000\000\000�\224\205ڻ\177\000\000�h�ٻ\177\000\000\200Fdڻ\177", '\0' <repeats 66 times>, "\001", '\0' <repeats 167 times>, "h�dڻ\177", '\0' <repeats 11 times>, "@\205ڻ\177\000\000�\v�ٻ\177\000\000\200Fdڻ\177", '\0' <repeats 66 times>, "\001", '\0' <repeats 24 times>, "-dڻ\177", '\0' <repeats 42 times>, "\220a\205��\177\000\000\000b\205��\177\000\000p;\233ٻ\177\000\000\000\000\000\000\000\000\000\000�W\205��\177\000\000\000\000\000\000\000\000\000\000M\177dڻ\177\000\000\000\000\000\000"... pidstr = "\000\000\000\000\000\000\000\000\000" opt = 0 ---Type <return> to continue, or q <return> to quit--- ive added openrc-0.2.4 ... please update to that and if it still crashes, re-open reopened due to segfault Created attachment 152915 [details]
emerge openrc-2.4
(In reply to comment #16) > Created an attachment (id=152915) [edit] > emerge openrc-2.4 > mother r1h # /etc/init.d/hwclock --nodeps stop hwclock | * WARNING: you are stopping a boot service hwclock | * Setting hardware clock using the system clock [Local Time] ... [ ok ] mother r1h # /etc/init.d/hwclock --nodeps start hwclock | * Setting system clock using the hardware clock [Local Time] ... [ ok ] Auto launching gdb! Attaching to process 6649 Reading symbols from /sbin/rc...(no debugging symbols found)...done. Reading symbols from /lib64/libutil.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libutil.so.1 Reading symbols from /lib64/librc.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/librc.so.1 Reading symbols from /lib64/libeinfo.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libeinfo.so.1 Reading symbols from /lib64/libncurses.so.5...(no debugging symbols found)...done. Loaded symbols for /lib64/libncurses.so.5 Reading symbols from /lib64/libdl.so.2... (no debugging symbols found)...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/libpam.so.0...(no debugging symbols found)...done. Loaded symbols for /lib64/libpam.so.0 Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 (no debugging symbols found) 0x00007f3de8815064 in wait () from /lib64/libc.so.6 #0 0x00007f3de8815064 in wait () from /lib64/libc.so.6 No symbol table info available. #1 0x000000000041002a in ?? () No symbol table info available. #2 <signal handler called> No symbol table info available. #3 0x00007f3de934cc59 in ?? () from /lib64/librc.so.1 No symbol table info available. #4 0x00007f3de934ccfe in rc_deptree_depend () from /lib64/librc.so.1 No symbol table info available. #5 0x000000000040d84e in ?? () No symbol table info available. #6 0x000000000040eec1 in ?? () No symbol table info available. #7 0x0000000000408b5f in ?? () No symbol table info available. #8 0x0000000000410121 in ?? () No symbol table info available. #9 0x00007f3de87951f4 in __libc_start_main () from /lib64/libc.so.6 No symbol table info available. #10 0x0000000000404829 in ?? () No symbol table info available. #11 0x00007ffff1971708 in ?? () No symbol table info available. #12 0x0000000000000000 in ?? () No symbol table info available. (gdb) i must say im not familiar with debugging , is this good? why does gdb launch only when i use --nodeps? the last gdb backtrace is useless ... you need to build openrc without optimization and with stripping disabled the backtrace in comment #13 though may be applicable to current git (In reply to comment #18) > the last gdb backtrace is useless ... you need to build openrc without > optimization and with stripping disabled > > the backtrace in comment #13 though may be applicable to current git > mother r1h # /etc/init.d/hwclock --nodeps stop hwclock | * WARNING: you are stopping a boot service hwclock | * Setting hardware clock using the system clock [Local Time] ... [ ok ] mother r1h # /etc/init.d/hwclock --nodeps start hwclock | * Setting system clock using the hardware clock [Local Time] ... [ ok ] Auto launching gdb! Attaching to process 2758 Reading symbols from /sbin/rc...done. Reading symbols from /lib64/libutil.so.1...done. Loaded symbols for /lib64/libutil.so.1 Reading symbols from /lib64/librc.so.1...done. Loaded symbols for /lib64/librc.so.1 Reading symbols from /lib64/libeinfo.so.1...done. Loaded symbols for /lib64/libeinfo.so.1 Reading symbols from /lib64/libncurses.so.5...done. Loaded symbols for /lib64/libncurses.so.5 Reading symbols from /lib64/libdl.so.2...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/libpam.so.0...done. Loaded symbols for /lib64/libpam.so.0 Reading symbols from /lib64/libc.so.6...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x00007f97ac83d064 in wait () from /lib64/libc.so.6 #0 0x00007f97ac83d064 in wait () from /lib64/libc.so.6 No symbol table info available. #1 0x0000000000413bc1 in handle_bad_signal (sig=11) at rc.c:909 pid = "\001\000\000\000\001\000\000\000X�" status = 0 crashed_pid = 2758 #2 <signal handler called> No symbol table info available. #3 0x00007f97ad375ad1 in get_depinfo (deptree=0x0, service=0x419ad5 "iprovide") at librc-depend.c:99 di = (RC_DEPINFO *) 0xb #4 0x00007f97ad376991 in *__RC_rc_deptree_depend (deptree=0x0, service=0x419ad5 "iprovide", type=0xe6c01c "hwclock") at librc-depend.c:465 di = (RC_DEPINFO *) 0x0 dt = (RC_DEPTYPE *) 0xfefefefefefefeff svcs = (RC_STRINGLIST *) 0x8101010101010100 svc = (RC_STRING *) 0x7f97ad99a000 #5 0x00000000004109bc in svc_start (deps=false) at runscript.c:880 started = true background = false svc = (RC_STRING *) 0xe6c01c svc2 = (RC_STRING *) 0x7fffb59983b0 depoptions = 3 state = RC_SERVICE_STOPPED first = false n = 0 len = 11 p = 0x0 tmp = 0x7fffb599b740 "\004" #6 0x0000000000411da1 in runscript (argc=3, argv=0x7fffb599b750) at runscript.c:1342 deps = false doneone = true pidstr = "2758\000\000\000\000@�" retval = 0 opt = -1 svc = (RC_STRING *) 0x0 path = "/etc/init.d\000hwclock", '\0' <repeats 3365 times>, "�\206x�\227\177\000\000\000\000\000\000\000\000\000\000\210`\231�\227\177\000\000\a\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000FX7\017\000\000\000\000<\213x�\227\177\000\000\000\000\000\000\000\000\000\000�!z�\227\177", '\0' <repeats 14 times>, "\006\000\000\000a�<\000\000\000\000\000\220�\231��\177\000\000\b�\231��\177\000\000P+z�\227\177\000\000\000\000\000\000\000\000\000\000�`\231�\227\177\000\000py\231�\227\177\000\000�\206x�\227\177\000\000H�z�\227\177\000\000\210`\231�\227\177\000\000\a\000\000\000\000\000\000"... lnk = '\0' <repeats 4095 times> l = 24 ll = 7 dir = 0x7fffb59994e0 "/etc/init.d" save = 0x0 file = 0x7fffb599c0e2 "hwclock" depoptions = 1 stbuf = {st_dev = 2053, st_ino = 49581, st_nlink = 1, st_mode = 33261, st_uid = 0, st_gid = 0, pad0 = 0, st_rdev = 0, st_size = 2599, st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1210590568, tv_nsec = 0}, st_mtim = {tv_sec = 1210590568, tv_nsec = 0}, st_ctim = {tv_sec = 1210590575, tv_nsec = 0}, __unused = {0, 0, 0}} #7 0x000000000040a229 in run_applets (argc=4, argv=0x7fffb599b748) at rc-applets.c:387 i = 2 match = false p = 0x7f97ad99a000 "" pid = 0 #8 0x0000000000413e13 in main (argc=4, argv=0x7fffb599b748) at rc.c:978 bootlevel = 0x0 newlevel = 0x0 deporder = (RC_STRINGLIST *) 0x0 tmplist = (RC_STRINGLIST *) 0x7fffb599b748 service = (RC_STRING *) 0x7f97ad99bbc0 going_down = false depoptions = 3 krunlevel = "\000\000\000\000\000\000\000\000h�x�\227\177\000\000\000\000\000\000\000\000\000\000��\231�\227\177\000\000�\230Ь\227\177\000\000\200vx�\227\177", '\0' <repea---Type <return> to continue, or q <return> to quit--- ts 66 times>, "\001", '\0' <repeats 167 times>, "h�x�\227\177", '\0' <repeats 11 times>, "p\231�\227\177\000\000�;��\227\177\000\000\200vx�\227\177", '\0' <repeats 66 times>, "\001", '\0' <repeats 24 times>, "]x�\227\177", '\0' <repeats 43 times>, "�\231��\177\000\000p�\231��\177\000\000pk��\227\177\000\000\000\000\000\000\000\000\000\000`�\231��\177\000\000\000\000\000\000\000\000\000\000M�x�\227\177\000\000\000\000\000\000\000"... pidstr = "\000\000\000\000\000\000\000\000\000" opt = 0 parallel = false regen = 0 proc = 0x7fffb599b740 "\004" p = 0x0 token = 0x0 (gdb) Created attachment 152927 [details]
FEATURES=nostrip emerge openrc-2.4 >& log
Created attachment 152943 [details, diff]
Check deptree exists before using it
This should fix the segfault.
(In reply to comment #21) > Created an attachment (id=152943) [edit] > Check deptree exists before using it > > This should fix the segfault. > is this what u mean? mother r1h # equery b deptree [ Searching for file(s) deptree in *... ] mother r1h # deptree bash: deptree: command not found mother r1h # (In reply to comment #22) > (In reply to comment #21) > > Created an attachment (id=152943) [edit] > > Check deptree exists before using it > > > > This should fix the segfault. > > > is this what u mean? > > mother r1h # equery b deptree > [ Searching for file(s) deptree in *... ] > mother r1h # deptree > bash: deptree: command not found > mother r1h # > hmm , sorry im a newbie. i googled abit is this it? mother r1h # file /var/lib/init.d/deptree /var/lib/init.d/deptree: ASCII text, with very long lines That comment was to describe the patch :P You need to add it to the ebuild on line 69 after the line that starts with epatch epatch /path/to/patch Replace /path/to/patch with where you download the attachment to. The re-emerge openrc. Created attachment 153015 [details]
FEATURES=nostrip emerge openrc >& log + patch
(In reply to comment #25) > Created an attachment (id=153015) [edit] > FEATURES=nostrip emerge openrc >& log + patch > it seems to be all good now. can someone confirm pls. im pretty green at this. thx mother r1h # /etc/init.d/hwclock stop hwclock | * WARNING: you are stopping a boot service hwclock | * Caching service dependencies ... [ ok ] hwclock | * Setting hardware clock using the system clock [Local Time] ... [ ok ] mother r1h # /etc/init.d/hwclock start hwclock | * Setting system clock using the hardware clock [Local Time] ... [ ok ] mother r1h # /etc/init.d/hwclock --nodeps stop hwclock | * WARNING: you are stopping a boot service hwclock | * Setting hardware clock using the system clock [Local Time] ... [ ok ] mother r1h # /etc/init.d/hwclock --nodeps start hwclock | * Setting system clock using the hardware clock [Local Time] ... [ ok ] mother r1h # emerge -av openrc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-apps/openrc-0.2.4 USE="debug ncurses pam unicode" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] n Quitting. mother r1h # /etc/init.d/hwclock --nodeps restart hwclock | * Setting hardware clock using the system clock [Local Time] ... [ ok ] hwclock | * Setting system clock using the hardware clock [Local Time] ... [ ok ] mother r1h # (In reply to comment #24) > That comment was to describe the patch :P > > You need to add it to the ebuild on line 69 after the line that starts with > epatch > > epatch /path/to/patch > > Replace /path/to/patch with where you download the attachment to. > The re-emerge openrc. > i named it 0004-marples.patch and dumped it into /usr/portage/sys-apps/openrc/files/9999 it seemed to be applied , is this ok? thx Yes, that's fine :) (In reply to comment #28) > Yes, that's fine :) > ok cool. thanks so close this off then? please don't close bugs unless they're fixed in the tree. fixed in 0.2.4-r1 |