[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Segmentation faults with aptitude and apt-get on some packages



On 11/30/2016 2:43 AM, Anatoly Pugachev wrote:
>> $ apt update
>> $ apt-get build-dep linux
>> $ cd /usr/src/
>> $ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz
>> $ tar xf linux-4.8.11.tar.xz
>> $ cd linux-4.8.11
>> $ cp -av /boot/config-$(uname -r)
>> $ make oldconfig (Just always <Enter> until the prompt comes back)
> 
> or instead of "make oldconfig" use "make olddefconfig"
> without hitting enter on every new kernel option

So I'm making progress, of sorts.  Learning is coming in bits and pieces.

The building of the kernel went well and the adding to silo.conf also
went well.  I made a new configuration section for the new kernel and it
shows up when I press TAB at the boot: prompt.  I know this because
after making the changes and rebooting the system it dropped me into an
(initramfs) prompt.  From discussions with Adrian I remembered the TAB
option and was able to get back into a working system. Yay!!

I rebooted the system with a console cable attached so I could see where
it was dying.  I got this: (I copied the whole thing in case there are
other things that need fixing that I can help test...)

Boot device: disk  File and args:
SILO Version 1.4.14
boot:
Linux                    LinuxWORKING             LinuxOLD
boot: Linux
Allocated 64 Megs of memory at 0x40000000 for kernel
Uncompressing image...
Loaded kernel version 4.8.7
Loading initial ramdisk (183723635 bytes at 0x1204000000 phys,
0x40C00000 virt)...
-
[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.22.33 2007/06/18 12:45'
[    0.000000] PROMLIB: Root node compatible:
[    0.000000] Linux version 4.8.0-1-sparc64-smp
(debian-kernel@lists.debian.org) (gcc version 5.4.1 20161019 (Debian
5.4.1-3) ) #1 SMP Debian 4.8.7-1 (2016-11-13)
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 00:03:ba:fa:3b:ed
[    0.000000] MM: PAGE_OFFSET is 0xfff0000000000000 (max_phys_bits == 42)
[    0.000000] MM: VMALLOC [0x0000000100000000 --> 0x000c000000000000]
[    0.000000] MM: VMEMMAP [0x000c000000000000 --> 0x0018000000000000]
[    0.000000] Kernel: Using 3 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1e,600000/isa@7/serial@0,3f8
[    0.000000] PROM: Built device tree with 124181 bytes of memory.
[    0.000000] Top of RAM: 0x123feee000, Total RAM: 0xffe78000
[    0.000000] Memory hole size: 70656MB
[    0.000000] Allocated 40960 bytes for kernel page tables.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000123feedfff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   node   0: [mem 0x0000000200000000-0x000000023fffffff]
[    0.000000]   node   0: [mem 0x0000001000000000-0x000000103fffffff]
[    0.000000]   node   0: [mem 0x0000001200000000-0x000000123effdfff]
[    0.000000]   node   0: [mem 0x000000123f000000-0x000000123fe5ffff]
[    0.000000]   node   0: [mem 0x000000123fe90000-0x000000123fe9ffff]
[    0.000000]   node   0: [mem 0x000000123fee0000-0x000000123fee7fff]
[    0.000000]   node   0: [mem 0x000000123feec000-0x000000123feedfff]
[    0.000000] Initmem setup node 0 [mem
0x0000000000000000-0x000000123feedfff]
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,ultra3,mul32,div32]
[    0.000000] CPU CAPS: [v8plus,vis,vis2]
[    0.000000] percpu: Embedded 10 pages/cpu @fff000123f800000 s43096
r8192 d30632 u2097152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 519485
[    0.000000] Kernel command line: root=/dev/sda4 ro
[    0.000000] PID hash table entries: 4096 (order: 2, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 524288 (order: 9,
4194304 bytes)
[    0.000000] Inode-cache hash table entries: 262144 (order: 8, 2097152
bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 3931704K/4192736K available (5704K kernel code,
769K rwdata, 1456K rodata, 488K init, 751K bss, 261032K reserved, 0K
cma-reserved)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=2
[    0.000000] NR_IRQS:2048 nr_irqs:2048 1
[  126.468276] clocksource: stick: mask: 0xffffffffffffffff max_cycles:
0x2c47f4ee7, max_idle_ns: 440795202497 ns
[  126.588030] clocksource: mult[53555555] shift[24]
[  126.644279] clockevent: mult[3126e98] shift[32]
[  126.698795] Console: colour dummy device 80x25
[  126.752032] console [tty0] enabled
[  126.792767] bootconsole [earlyprom0] disabled
[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.22.33 2007/06/18 12:45'
[    0.000000] PROMLIB: Root node compatible:
[    0.000000] Linux version 4.8.0-1-sparc64-smp
(debian-kernel@lists.debian.org) (gcc version 5.4.1 20161019 (Debian
5.4.1-3) ) #1 SMP Debian 4.8.7-1 (2016-11-13)
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 00:03:ba:fa:3b:ed
[    0.000000] MM: PAGE_OFFSET is 0xfff0000000000000 (max_phys_bits == 42)
[    0.000000] MM: VMALLOC [0x0000000100000000 --> 0x000c000000000000]
[    0.000000] MM: VMEMMAP [0x000c000000000000 --> 0x0018000000000000]
[    0.000000] Kernel: Using 3 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1e,600000/isa@7/serial@0,3f8
[    0.000000] PROM: Built device tree with 124181 bytes of memory.
[    0.000000] Top of RAM: 0x123feee000, Total RAM: 0xffe78000
[    0.000000] Memory hole size: 70656MB
[    0.000000] Allocated 40960 bytes for kernel page tables.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000123feedfff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   node   0: [mem 0x0000000200000000-0x000000023fffffff]
[    0.000000]   node   0: [mem 0x0000001000000000-0x000000103fffffff]
[    0.000000]   node   0: [mem 0x0000001200000000-0x000000123effdfff]
[    0.000000]   node   0: [mem 0x000000123f000000-0x000000123fe5ffff]
[    0.000000]   node   0: [mem 0x000000123fe90000-0x000000123fe9ffff]
[    0.000000]   node   0: [mem 0x000000123fee0000-0x000000123fee7fff]
[    0.000000]   node   0: [mem 0x000000123feec000-0x000000123feedfff]
[    0.000000] Initmem setup node 0 [mem
0x0000000000000000-0x000000123feedfff]
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,ultra3,mul32,div32]
[    0.000000] CPU CAPS: [v8plus,vis,vis2]
[    0.000000] percpu: Embedded 10 pages/cpu @fff000123f800000 s43096
r8192 d30632 u2097152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 519485
[    0.000000] Kernel command line: root=/dev/sda4 ro
[    0.000000] PID hash table entries: 4096 (order: 2, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 524288 (order: 9,
4194304 bytes)
[    0.000000] Inode-cache hash table entries: 262144 (order: 8, 2097152
bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 3931704K/4192736K available (5704K kernel code,
769K rwdata, 1456K rodata, 488K init, 751K bss, 261032K reserved, 0K
cma-reserved)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=2
[    0.000000] NR_IRQS:2048 nr_irqs:2048 1
[  126.468276] clocksource: stick: mask: 0xffffffffffffffff max_cycles:
0x2c47f4ee7, max_idle_ns: 440795202497 ns
[  126.588030] clocksource: mult[53555555] shift[24]
[  126.644279] clockevent: mult[3126e98] shift[32]
[  126.698795] Console: colour dummy device 80x25
[  126.752032] console [tty0] enabled
[  126.792767] bootconsole [earlyprom0] disabled
[  126.924908] Calibrating delay using timer specific routine.. 24.02
BogoMIPS (lpj=48046)
[  126.924923] pid_max: default: 32768 minimum: 301
[  126.925135] Security Framework initialized
[  126.925147] Yama: disabled by default; enable with sysctl kernel.yama.*
[  126.925168] AppArmor: AppArmor disabled by boot time parameter
[  126.925237] Mount-cache hash table entries: 8192 (order: 3, 65536 bytes)
[  126.925249] Mountpoint-cache hash table entries: 8192 (order: 3,
65536 bytes)
[  126.926258] ftrace: allocating 18940 entries in 37 pages
[  126.947372] CPU 0: synchronized TICK with master CPU (last diff 0
cycles, maxerr 6 cycles)
[  126.947554] Brought up 2 CPUs
[  126.948240] devtmpfs: initialized
[  126.951551] Performance events:
[  126.951569] Testing NMI watchdog ... OK.
[  127.031585] Supported PMU type is 'ultra3i'
[  127.069288] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[  127.069681] NET: Registered protocol family 16
[  127.071384] IRQ pre handler NOT supported.
[  127.071401] IRQ pre handler NOT supported.
[  127.071412] IRQ pre handler NOT supported.
[  127.071421] IRQ pre handler NOT supported.
[  127.071444] IRQ pre handler NOT supported.
[  127.071563] IRQ pre handler NOT supported.
[  127.071675] IRQ pre handler NOT supported.
[  127.071774] IRQ pre handler NOT supported.
[  127.071793] IRQ pre handler NOT supported.
[  127.071808] IRQ pre handler NOT supported.
[  127.071824] IRQ pre handler NOT supported.
[  127.071840] IRQ pre handler NOT supported.
[  127.072195] IRQ pre handler NOT supported.
[  127.074076] IRQ pre handler NOT supported.
[  127.074182] IRQ pre handler NOT supported.
[  127.074281] IRQ pre handler NOT supported.
[  127.074375] IRQ pre handler NOT supported.
[  127.074567] IRQ pre handler NOT supported.
[  127.074743] IRQ pre handler NOT supported.
[  127.074872] IRQ pre handler NOT supported.
[  127.075110] IRQ pre handler NOT supported.
[  127.075126] IRQ pre handler NOT supported.
[  127.075142] IRQ pre handler NOT supported.
[  127.075161] IRQ pre handler NOT supported.
[  127.075177] IRQ pre handler NOT supported.
[  127.075294] IRQ pre handler NOT supported.
[  127.075567] IRQ pre handler NOT supported.
[  127.075818] IRQ pre handler NOT supported.
[  127.075835] IRQ pre handler NOT supported.
[  127.075852] IRQ pre handler NOT supported.
[  127.075867] IRQ pre handler NOT supported.
[  127.075883] IRQ pre handler NOT supported.
[  127.075984] IRQ pre handler NOT supported.
[  127.076103] IRQ pre handler NOT supported.
[  127.077072] /pci@1f,700000: TOMATILLO PCI Bus Module ver[4:0]
[  127.077094] /pci@1f,700000: PCI IO[7f601000000] MEM[7f700000000]
MEM64[7f700000000]
[  127.078536] PCI: Scanning PBM /pci@1f,700000
[  127.078735] schizo f0068db0: PCI host bridge to bus 0000:00
[  127.078758] pci_bus 0000:00: root bus resource [io
0x7f601000000-0x7f601ffffff] (bus address [0x0000-0xffffff])
[  127.078784] pci_bus 0000:00: root bus resource [mem
0x7f700000000-0x7f7ffffffff] (bus address [0x00000000-0xffffffff])
[  127.078810] pci_bus 0000:00: root bus resource [mem
0x7f700000000-0x7f7ffffffff] (bus address [0x00000000-0xffffffff])
[  127.078836] pci_bus 0000:00: root bus resource [bus 00]
[  127.079468] /pci@1e,600000: TOMATILLO PCI Bus Module ver[4:0]
[  127.079489] /pci@1e,600000: PCI IO[7fe01000000] MEM[7ff00000000]
MEM64[7ff00000000]
[  127.080840] PCI: Scanning PBM /pci@1e,600000
[  127.081025] schizo f00716f4: PCI host bridge to bus 0001:00
[  127.081047] pci_bus 0001:00: root bus resource [io
0x7fe01000000-0x7fe01ffffff] (bus address [0x0000-0xffffff])
[  127.081073] pci_bus 0001:00: root bus resource [mem
0x7ff00000000-0x7ffffffffff] (bus address [0x00000000-0xffffffff])
[  127.081099] pci_bus 0001:00: root bus resource [mem
0x7ff00000000-0x7ffffffffff] (bus address [0x00000000-0xffffffff])
[  127.081124] pci_bus 0001:00: root bus resource [bus 00]
[  127.081409] pci 0001:00:06.0: quirk: [io
0x7fe01000800-0x7fe0100083f] claimed by ali7101 ACPI
[  127.081437] pci 0001:00:06.0: quirk: [io
0x7fe01000600-0x7fe0100061f] claimed by ali7101 SMB
[  127.081992] pci 0001:00:07.0: can't claim BAR 0 [io
0x7fe01000000-0x7fe0100ffff]: address conflict with 0001:00:06.0 [io
0x7fe01000600-0x7fe0100061f]
[  127.082025] pci 0001:00:07.0: can't claim BAR 1 [mem
0x7ff00000000-0x7ff000fffff]: address conflict with Video RAM area [???
0x7ff000a0000-0x7ff000bffff flags 0x80000000]
[  127.082061] pci 0001:00:07.0: can't claim BAR 2 [mem
0x7ff00000000-0x7ff000fffff]: address conflict with Video RAM area [???
0x7ff000a0000-0x7ff000bffff flags 0x80000000]
[  127.082296] /pci@1c,600000: TOMATILLO PCI Bus Module ver[4:0]
[  127.082315] /pci@1c,600000: PCI IO[7ce01000000] MEM[7cf00000000]
MEM64[7cf00000000]
[  127.083658] PCI: Scanning PBM /pci@1c,600000
[  127.083824] schizo f0079d44: PCI host bridge to bus 0002:00
[  127.083847] pci_bus 0002:00: root bus resource [io
0x7ce01000000-0x7ce01ffffff] (bus address [0x0000-0xffffff])
[  127.083873] pci_bus 0002:00: root bus resource [mem
0x7cf00000000-0x7cfffffffff] (bus address [0x00000000-0xffffffff])
[  127.083899] pci_bus 0002:00: root bus resource [mem
0x7cf00000000-0x7cfffffffff] (bus address [0x00000000-0xffffffff])
[  127.083924] pci_bus 0002:00: root bus resource [bus 00]
[  127.084508] /pci@1d,700000: TOMATILLO PCI Bus Module ver[4:0]
[  127.084531] /pci@1d,700000: PCI IO[7c601000000] MEM[7c700000000]
MEM64[7c700000000]
[  127.085933] PCI: Scanning PBM /pci@1d,700000
[  127.086098] schizo f00822e0: PCI host bridge to bus 0003:00
[  127.086118] pci_bus 0003:00: root bus resource [io
0x7c601000000-0x7c601ffffff] (bus address [0x0000-0xffffff])
[  127.086144] pci_bus 0003:00: root bus resource [mem
0x7c700000000-0x7c7ffffffff] (bus address [0x00000000-0xffffffff])
[  127.086170] pci_bus 0003:00: root bus resource [mem
0x7c700000000-0x7c7ffffffff] (bus address [0x00000000-0xffffffff])
[  127.086195] pci_bus 0003:00: root bus resource [bus 00]
[  127.101692] HugeTLB registered 8 MB page size, pre-allocated 0 pages
[  127.102860] vgaarb: loaded
[  127.103754] /pci@1e,600000/isa@7/rtc@0,70: RTC regs at 0x7fe01000070
[  127.104460] clocksource: Switched to clocksource stick
[  127.127786] VFS: Disk quotas dquot_6.6.0
[  127.127890] VFS: Dquot-cache hash table entries: 1024 (order 0, 8192
bytes)
[  127.135130] NET: Registered protocol family 2
[  127.135664] TCP established hash table entries: 32768 (order: 5,
262144 bytes)
[  127.136224] TCP bind hash table entries: 32768 (order: 6, 524288 bytes)
[  127.137353] TCP: Hash tables configured (established 32768 bind 32768)
[  127.137564] UDP hash table entries: 2048 (order: 3, 65536 bytes)
[  127.137746] UDP-Lite hash table entries: 2048 (order: 3, 65536 bytes)
[  127.138080] NET: Registered protocol family 1
[  127.138154] pci 0001:00:07.0: Activating ISA DMA hang workarounds
[  127.196707] Unpacking initramfs...
[  133.602905] Freeing initrd memory: 179416K (fff0001204000000 -
fff000120ef36000)
[  133.603205] power: Control reg at 7fe01000800
[  133.603661] chmc: UltraSPARC-IIIi memory controller at
/memory-controller@0,0
[  133.603708] chmc: UltraSPARC-IIIi memory controller at
/memory-controller@1,0
[  133.604554] futex hash table entries: 512 (order: 2, 32768 bytes)
[  133.604725] audit: initializing netlink subsys (disabled)
[  133.604813] audit: type=2000 audit(6.767:1): initialized
[  133.605490] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[  133.605570] zbud: loaded
[  133.607370] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 252)
[  133.607489] io scheduler noop registered
[  133.607506] io scheduler deadline registered
[  133.607543] io scheduler cfq registered (default)
[  133.608852] f00a7d5c: ttyS0 at MMIO 0x7fe010003f8 (irq = 15,
base_baud = 115387) is a 16550A
[  133.608884] Console: ttyS0 (SU)
[  146.620826] console [ttyS0] enabled
[  146.666877] f00a98dc: ttyS1 at MMIO 0x7fe010002e8 (irq = 15,
base_baud = 115387) is a 16550A
[  146.778832] mousedev: PS/2 mouse device common for all mice
[  146.852874] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[  146.936462] rtc_cmos rtc_cmos: no alarms, 114 bytes nvram
[  147.007650] ledtrig-cpu: registered to indicate activity on CPUs
[  147.087239] NET: Registered protocol family 10
[  147.146168] mip6: Mobile IPv6
[  147.185141] NET: Registered protocol family 17
[  147.243565] mpls_gso: MPLS GSO support
[  147.293248] registered taskstats version 1
[  147.347111] zswap: loaded using pool lzo/zbud
[  147.404912] rtc_cmos rtc_cmos: setting system clock to 2016-12-02
15:22:55 UTC (1480692175)
[  147.515541] This architecture does not have kernel memory protection.
Loading, please wait...
starting version[  147.649270] random: systemd-udevd: uninitialized
urandom read (16 bytes read)
 232
[  147.653613] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.653769] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.654290] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.654585] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.654838] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.655073] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.655112] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.655382] random: udevadm: uninitialized urandom read (16 bytes read)
[  147.655617] random: udevadm: uninitialized urandom read (16 bytes read)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running
/scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/sda4 does not exist.  Dropping to a shell!


BusyBox v1.22.1 (Debian 1:1.22.0-19) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)



Reply to: