Re: stable/11 debugging kernel unable to produce crashdump again

2017-07-24 Thread Eugene Grosbein
On 25.07.2017 00:22, Mark Johnston wrote: > On Tue, Jul 25, 2017 at 12:03:05AM +0700, Eugene Grosbein wrote: >> Thanks, this helped: >> >> $ addr2line -f -e kernel.debug 0x80919c00 >> g_raid_shutdown_post_sync >> /home/src/sys/geom/raid/g_raid.c:2458 >> >> That is GEOM_RAID's g_raid_shutdow

Re: stable/11 debugging kernel unable to produce crashdump again

2017-07-24 Thread Warner Losh
I've often wondered why, for CAM at least, we don't automatically fall back to the dump way when scheduling is stopped rather than have two different interfaces and special knowledge of this in a lot of places... Warner On Mon, Jul 24, 2017 at 11:25 AM, Alexander Motin wrote: > I guess that pro

Re: stable/11 debugging kernel unable to produce crashdump again

2017-07-24 Thread Alexander Motin
I guess that problem of g_raid_shutdown_post_sync in case of panic can be explained by the fact it tries to write clean metadata in regular (not dumping) way while system is already in panic mode and there is no proper scheduling. May be it could be just bypassed in case of dumping (should be triv

Re: stable/11 debugging kernel unable to produce crashdump again

2017-07-24 Thread Mark Johnston
On Tue, Jul 25, 2017 at 12:03:05AM +0700, Eugene Grosbein wrote: > Thanks, this helped: > > $ addr2line -f -e kernel.debug 0x80919c00 > g_raid_shutdown_post_sync > /home/src/sys/geom/raid/g_raid.c:2458 > > That is GEOM_RAID's g_raid_shutdown_post_sync() that hangs if called just > before

Re: stable/11 debugging kernel unable to produce crashdump again

2017-07-24 Thread Eugene Grosbein
CCing mav@ as graid expert. On 24.07.2017 08:44, Mark Johnston wrote: >> Sadly, this time 11.1-STABLE r321371 SMP hangs instead of doing crashdump: >> >> - "call doadump" from DDB prompt works just fine; >> - "shutdown -r now" reboots the system without problems; >> - "sysctl debug.kdb.panic=1" t

Re: stable/11 debugging kernel unable to produce crashdump again

2017-07-24 Thread Eugene Grosbein
On 24.07.2017 08:44, Mark Johnston wrote: >> Sadly, this time 11.1-STABLE r321371 SMP hangs instead of doing crashdump: > > Is this amd64 GENERIC, or something else? Custom kernel, amd64. > >> >> - "call doadump" from DDB prompt works just fine; >> - "shutdown -r now" reboots the system withou

Re: stable/11 debugging kernel unable to produce crashdump again

2017-07-23 Thread Mark Johnston
On Sun, Jul 23, 2017 at 04:26:45PM +0700, Eugene Grosbein wrote: > On 14.01.2017 18:40, Eugene Grosbein wrote: > > > >> I suspect that this is because we only stop the scheduler upon a panic > >> if SMP is configured. Can you retest with the patch below applied? > >> > >> Index: sys/kern/kern_shut

stable/11 debugging kernel unable to produce crashdump again

2017-07-23 Thread Eugene Grosbein
On 14.01.2017 18:40, Eugene Grosbein wrote: > >> I suspect that this is because we only stop the scheduler upon a panic >> if SMP is configured. Can you retest with the patch below applied? >> >> Index: sys/kern/kern_shutdown.c >> ===