init kill signal的数字总结

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/mengxiangbaidu/article/details/48163217
1.init 

0:停机
1:单用户形式,只root进行维护
2:多用户,不能使用net file system
3:完全多用户
5:图形化
4:安全模式
6:重启
其实,可以通过查看/etc/rc.d/中的rc*.d的文件来对比理解,不同的目录中包含的命令是不同的
init 0,对应的系统会运行,/etc/rc.d/rc0.d里指定的程序
S00killall、 S01halt
这两个都表示为终止进程。故init 0是用于表示关机的。

cat /etc/inittab
# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:


2.kill -signal

 1       HUP (hang up)
 2       INT (interrupt)
 3       QUIT (quit)
 6       ABRT (abort)
 9       KILL (non-catchable, non-ignorable kill)
 14      ALRM (alarm clock)
 15      TERM (software termination signal)

3.man signal

 1     SIGHUP       terminate process    terminal line hangup
 2     SIGINT       terminate process    interrupt program
 3     SIGQUIT      create core image    quit program
 4     SIGILL       create core image    illegal instruction
 5     SIGTRAP      create core image    trace trap
 6     SIGABRT      create core image    abort program (formerly SIGIOT)
 7     SIGEMT       create core image    emulate instruction executed
 8     SIGFPE       create core image    floating-point exception
 9     SIGKILL      terminate process    kill program
 10    SIGBUS       create core image    bus error
 11    SIGSEGV      create core image    segmentation violation
 12    SIGSYS       create core image    non-existent system call invoked
 13    SIGPIPE      terminate process    write on a pipe with no reader
 14    SIGALRM      terminate process    real-time timer expired
 15    SIGTERM      terminate process    software termination signal
 16    SIGURG       discard signal       urgent condition present on socket
 17    SIGSTOP      stop process         stop (cannot be caught or ignored)
 18    SIGTSTP      stop process         stop signal generated from keyboard
 19    SIGCONT      discard signal       continue after stop
 20    SIGCHLD      discard signal       child status has changed
 21    SIGTTIN      stop process         background read attempted from control terminal
 22    SIGTTOU      stop process         background write attempted to control terminal
 23    SIGIO        discard signal       I/O is possible on a descriptor (see fcntl(2))
 24    SIGXCPU      terminate process    cpu time limit exceeded (see setrlimit(2))
 25    SIGXFSZ      terminate process    file size limit exceeded (see setrlimit(2))
 26    SIGVTALRM    terminate process    virtual time alarm (see setitimer(2))
 27    SIGPROF      terminate process    profiling timer alarm (see setitimer(2))
 28    SIGWINCH     discard signal       Window size change
 29    SIGINFO      discard signal       status request from keyboard
 30    SIGUSR1      terminate process    User defined signal 1
 31    SIGUSR2      terminate process    User defined signal 2

展开阅读全文

android Kernel Panic -- not syncing: attempted to kill init

08-13

各位大虾帮帮忙!!Kernel panic了,android应用导致kernel panic!我已经把init反汇编了,里面找不到ff0008的值,android手机死机蓝屏,各位大虾求救啊!!!!rnrnrn<7>[1, init] [ 39.977264] init: unhandled page fault (11) at 0x00ff0008, code 0x80000005rn<1>[1, init] [ 39.977264] pgd = cf3c0000rn<1>[1, init] [ 39.977294] [00ff0008] *pgd=00000000rn<4>[1, init] [ 39.977294] rn<4>[1, init] [ 39.977294] Pid: 1, comm: initrn<4>[1, init] [ 39.977294] CPU: 0 Not tainted (2.6.35.7-perf #1)rn<4>[1, init] [ 39.977294] PC is at 0xff0008rn<4>[1, init] [ 39.977325] LR is at 0xefe1rn<4>[1, init] [ 39.977325] pc : [<00ff0008>] lr : [<0000efe1>] psr: 00000030rn<4>[1, init] [ 39.977325] sp : befb2b00 ip : 00000000 fp : 0002052crn<4>[1, init] [ 39.977325] r10: 0002052c r9 : 00000001 r8 : 00000001rn<4>[1, init] [ 39.977355] r7 : 0000cba8 r6 : 0001e768 r5 : 00000003 r4 : 00ff02ffrn<4>[1, init] [ 39.977355] r3 : 00ff00ff r2 : 00000011 r1 : 00000011 r0 : 00000001rn<4>[1, init] [ 39.977355] Flags: nzcv IRQs on FIQs on Mode USER_32 ISA Thumb Segment userrn<4>[1, init] [ 39.977386] Control: 10c57c7d Table: 0f5c0059 DAC: 00000015rn<4>[1, init] [ 39.977386] do_exit: exit code=11rn<0>[1, init] [ 39.977508] Kernel panic - not syncing: Attempted to kill init!rn<4>[1, init] [ 39.977539] [] (unwind_backtrace+0x0/0x164) from [] (panic+0x6c/0xe0)rn<4>[1, init] [ 39.977569] [] (panic+0x6c/0xe0) from [] (do_exit+0x70/0x688)rn<4>[1, init] [ 39.977569] [] (do_exit+0x70/0x688) from [] (do_group_exit+0xb0/0xe0)rn<4>[1, init] [ 39.977600] [] (do_group_exit+0xb0/0xe0) from [] (get_signal_to_deliver+0x3c4/0x420)rn<4>[1, init] [ 39.977600] [] (get_signal_to_deliver+0x3c4/0x420) from [] (do_signal+0x68/0x68c)rn<4>[1, init] [ 39.977630] [] (do_signal+0x68/0x68c) from [] (do_notify_resume+0x18/0x48)rn<4>[1, init] [ 39.977630] [] (do_notify_resume+0x18/0x48) from [] (work_pending+0x1c/0x20) 论坛

Kernel panic - not syncing: Attempted to kill init! 问题

02-26

linux版本是2.6.27,自己编译了一个内核,烧写到ARM9的板子上停留在Kernel panic - not syncing: Attempted to kill init! ,帮忙看看是怎么回事rnRomBOOTrn>Start AT91Bootstrap 1.14...rnrnrnU-Boot 2010.03 (Apr 20 2010 - 22:23:51)rnrnDRAM: 64 MBrnNAND: 128 MiBrn*** Warning - bad CRC or NAND, using default environmentrnrnIn: serialrnOut: serialrnErr: serialrnNet: macb0rnmacb0: Starting autonegotiation...rnmacb0: Autonegotiation timed out (status=0x7849)rnmacb0: link down (status: 0x7849)rnHit any key to stop autoboot: 3  2  1  0 rnrnNAND read: device 0 offset 0xa0000, size 0x200000rn 2097152 bytes read: OKrn## Booting kernel from Legacy Image at 22000000 ...rn Image Name: Linux-2.6.27rn Image Type: ARM Linux Kernel Image (uncompressed)rn Data Size: 1538504 Bytes = 1.5 MBrn Load Address: 20008000rn Entry Point: 20008000rn Verifying Checksum ... OKrn Loading Kernel Image ... OKrnOKrnrnStarting kernel ...rnrnUncompressing Linux.................................................................................................... done, booting the kernel.rn<5>Linux version 2.6.27 (root@zhouchuan) (gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126)) #5 Fri Feb 25 15:26:25 CST 2011rnCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177rnMachine: Atmel AT91SAM9263-EKrnIgnoring unrecognised tag 0x54410008rnMemory policy: ECC disabled, Data cache writebackrnClocks: CPU 198 MHz, master 99 MHz, main 18.432 MHzrnCPU0: D VIVT write-back cachernCPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsrnCPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsrnBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 16256rnKernel command line: console=ttyS0,115200 root=/dev/mtdblock5 mtdparts=atmel_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,2M(linux),-(root) rw rootfstype=jffs2rnAT91: 160 gpio irqs in 5 banksrnPID hash table entries: 256 (order: 8, 1024 bytes)rnConsole: colour dummy device 80x30rnconsole [ttyS0] enabledrnDentry cache hash table entries: 8192 (order: 3, 32768 bytes)rnInode-cache hash table entries: 4096 (order: 2, 16384 bytes)rnMemory: 64MB = 64MB totalrnMemory: 61664KB available (2844K code, 234K data, 124K init)rnCalibrating delay loop... 99.12 BogoMIPS (lpj=495616)rnMount-cache hash table entries: 512rnCPU: Testing write buffer coherency: okrnnet_namespace: 288 bytesrnNET: Registered protocol family 16rnAT91: Power ManagementrnAT91: Starting after user resetrnSCSI subsystem initializedrnusbcore: registered new interface driver usbfsrnusbcore: registered new interface driver hubrnusbcore: registered new device driver usbrnNET: Registered protocol family 2rnIP route cache hash table entries: 1024 (order: 0, 4096 bytes)rnTCP established hash table entries: 2048 (order: 2, 16384 bytes)rnTCP bind hash table entries: 2048 (order: 1, 8192 bytes)rnTCP: Hash tables configured (established 2048 bind 2048)rnTCP reno registeredrnNET: Registered protocol family 1rnNetWinder Floating Point Emulator V0.97 (double precision)rnJFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.rnmsgmni has been set to 120rnio scheduler noop registeredrnio scheduler anticipatory registered (default)rnatmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23940000 (mapped at ffc00000)rnConsole: switching to colour frame buffer device 30x40rnatmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00700000 (mapped at c485c000), irq 26rnatmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIALrnatmel_usart.1: ttyS1 at MMIO 0xfff8c000 (irq = 7) is a ATMEL_SERIALrnbrd: module loadedrnloop: module loadedrnmacb macb: invalid hw address, using randomrnMACB_mii_bus: probedrneth0: Atmel MACB at 0xfffbc000 irq 21 (3e:0d:1d:97:54:b3)rneth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)rnDriver 'sd' needs updating - please use bus_type methodsrnNAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)rnAT91 NAND: 8-bit, Software ECCrnScanning device for bad blocksrnBad eraseblock 256 at 0x02000000rn6 cmdlinepart partitions found on MTD device atmel_nandrnCreating 6 MTD partitions on "atmel_nand":rn0x00000000-0x00020000 : "bootstrap"rn0x00020000-0x00060000 : "uboot"rn0x00060000-0x00080000 : "env1"rn0x00080000-0x000a0000 : "env2"rn0x000a0000-0x002a0000 : "linux"rn0x002a0000-0x08000000 : "root"rnatmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffa4000 (irq 14)rnusbmon: debugfs is not availablernat91_ohci at91_ohci: AT91 OHCIrnat91_ohci at91_ohci: new USB bus registered, assigned bus number 1rnat91_ohci at91_ohci: irq 29, io mem 0x00a00000rnusb usb1: configuration #1 chosen from 1 choicernhub 1-0:1.0: USB hub foundrnhub 1-0:1.0: 2 ports detectedrnInitializing USB Mass Storage driver...rnusbcore: registered new interface driver usb-storagernUSB Mass Storage support registered.rnudc: at91_udc version 3 May 2006rnmice: PS/2 mouse device common for all micerninput: gpio-keys as /class/input/input0rnads7846 spi0.3: touchscreen, irq 31rninput: ADS784x Touchscreen as /class/input/input1rnrtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0rnrtc-at91sam9 at91_rtt.0: rtc0: SET TIME!rnRegistered led device: ds1rnRegistered led device: ds2rnRegistered led device: ds3rnusbcore: registered new interface driver usbhidrnusbhid: v2.6:USB HID core driverrnAdvanced Linux Sound Architecture Driver Version 1.0.17.rnAC97C regs = FFFA0000 rnAC97C irq = 18 rnat91-ac97: codec write timeoutrnrn<4>at91-ac97: codec write timeoutrnrn<3>AC'97 0 access is not valid [0xffffffff], removing mixer.rnac97c: probe of ac97c.1 failed with error -5rnALSA device list:rn No soundcards found.rnTCP cubic registeredrnNET: Registered protocol family 17rnRPC: Registered udp transport module.rnRPC: Registered tcp transport module.rnrtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clockrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x8000 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0015 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x20be insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x3c7f insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x30ff insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x0003 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x0009 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x3000 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x3000 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2001 insteadrnFurther such events for this erase block will not be printedrnEmpty flash at 0x0001c3d4 ends at 0x0001c3d8rnEmpty flash at 0x0001c41c ends at 0x0001c420rnEmpty flash at 0x0001c460 ends at 0x0001c464rnEmpty flash at 0x0001c4ac ends at 0x0001c4b0rnEmpty flash at 0x0001c5d4 ends at 0x0001c5d8rnEmpty flash at 0x0001c660 ends at 0x0001c664rnEmpty flash at 0x0001c690 ends at 0x0001c694rnEmpty flash at 0x0001c6d4 ends at 0x0001c6d8rnEmpty flash at 0x0001c718 ends at 0x0001c71crnEmpty flash at 0x0001c758 ends at 0x0001c75crnEmpty flash at 0x0001c7ec ends at 0x0001c7f0rnEmpty flash at 0x0001c840 ends at 0x0001c844rnEmpty flash at 0x0001cb74 ends at 0x0001cb78rnEmpty flash at 0x0001cbbc ends at 0x0001cbc0rnEmpty flash at 0x0001cc00 ends at 0x0001cc04rnEmpty flash at 0x0001cc4c ends at 0x0001cc50rnEmpty flash at 0x0001cc9c ends at 0x0001cca0rnEmpty flash at 0x0001cce0 ends at 0x0001cce4rnEmpty flash at 0x0001cd24 ends at 0x0001cd28rnEmpty flash at 0x0001cd64 ends at 0x0001cd68rnEmpty flash at 0x0001ce28 ends at 0x0001ce2crnEmpty flash at 0x0001ceb4 ends at 0x0001ceb8rnEmpty flash at 0x0001d210 ends at 0x0001d214rnEmpty flash at 0x0001d470 ends at 0x0001d474rnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x3004 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x0008 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0x3001 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0x3000 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x0887 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x3000 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x009c insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x1008 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x3004 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x3000 insteadrnFurther such events for this erase block will not be printedrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x0359 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x00c7 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x0323 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0x0320 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0x030d insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x030f insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x04b9 insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x04cd insteadrnjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x02c1 insteadrnFurther such events for this erase block will not be printed 论坛

没有更多推荐了,返回首页