Re: [hatari-devel] ide.c segfault when config changed to Falcon

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,


I'm starting from the falc configuration.

When on the desktop, I load the hatari.cfg (which is the st destination) and I select reset.

I get the core dump

Does this help ?

regards




Le 13/01/2021 à 13:50, Nicolas Pomarède a écrit :
Le 13/01/2021 à 13:26, Laurent Sallafranque a écrit :
I've also noticed another hatari core dump.

I start in falcon mode and I change all my conf to switch to ST mode and I click reboot now.

Hatari then crash.


Hi

can you be more specific on the tos version you use before and after change ?

Nicolas


Le 13/01/2021 à 11:17, Nicolas Pomarède a écrit :
Le 07/12/2020 à 20:46, Thomas Huth a écrit :
Am Mon, 7 Dec 2020 15:28:13 +0100
schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>:

Le 06/12/2020 à 17:59, Eero Tamminen a écrit :
Hi,

I've pushed doc updates for all the fixes.


Unless there are objections, I was thinking of
pushing also my fix for the issue with double
usage of same image through ACSI/SCSI/IDE
(the one Uwe reported).

Hi


I'm not against it, but on my side I don't use ACSI/SCSI/IDE, so I'm
not able to test if these changes can have any side effects.

More testers would be needed for this fix to ensure all cases are
handled.

FWIW, the patches look pretty straight-forward to me, so I think it
should be safe to commit them. I currently don't have much spare time
for testing, though, sorry.

  Thomas

Hi

unfortunately, I found another case where Hatari might crash because of IDE IO.

start hatari in falcon mode (with --tos tos404.img) then do a memory save while falcon mode is booting (atari logo displayed in top left).

exit hatari and restart hatari with --memstate and the name of the save file. hatari should start, complete the floppy test and then core dump when it comes to checking IDE state.

(gdb) bt
#0  0x00000000005f6980 in Ide_Mem_bget ()
#1  0x0000000000691d34 in wait_cpu_cycle_read_ce020 ()
#2  0x0000000000bd1070 in op_4a39_24_ff ()
#3  0x000000000066fca8 in m68k_run_3ce ()
#4  0x000000000066a852 in m68k_go ()
#5  0x00000000005bc9a3 in main ()

In my case I don't use any IDE drive, so it's likely to be some null pointers in IDE part as we saw before.

Nicolas







[Log]
sLogFileName = stderr
sTraceFileName = stderr
nTextLogLevel = 3
nAlertDlgLogLevel = 1
bConfirmQuit = TRUE
bNatFeats = FALSE
bConsoleWindow = FALSE

[Debugger]
nNumberBase = 10
nSymbolLines = -1
nMemdumpLines = -1
nDisasmLines = -1
nBacktraceLines = 0
nExceptionDebugMask = 515
nDisasmOptions = 15
bDisasmUAE = FALSE
bSymbolsAutoLoad = TRUE
bMatchAllSymbols = FALSE

[Screen]
nMonitorType = 1
nFrameSkips = 5
bFullScreen = FALSE
bKeepResolution = TRUE
bResizable = TRUE
bAllowOverscan = TRUE
nSpec512Threshold = 1
nForceBpp = 0
bAspectCorrect = TRUE
bUseExtVdiResolutions = FALSE
nVdiWidth = 640
nVdiHeight = 480
nVdiColors = 2
bMouseWarp = TRUE
bShowStatusbar = FALSE
bShowDriveLed = FALSE
bCrop = FALSE
bForceMax = FALSE
nMaxWidth = 832
nMaxHeight = 588
nZoomFactor = 1
bUseSdlRenderer = TRUE
bUseVsync = TRUE

[Joystick0]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick1]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = 0
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Left Ctrl

[Joystick2]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick3]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick4]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick5]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Keyboard]
bDisableKeyRepeat = FALSE
nKeymapType = 0
szMappingFileName =

[KeyShortcutsWithMod]
kOptions = O
kFullScreen = F
kBorders = B
kMouseMode = M
kColdReset = C
kWarmReset = R
kScreenShot = G
kBossKey = I
kCursorEmu = J
kFastForward = X
kRecAnim = A
kRecSound = Y
kSound = S
kPause =
kDebugger = Pause
kQuit = Q
kLoadMem = L
kSaveMem = K
kInsertDiskA = D
kSwitchJoy0 = F1
kSwitchJoy1 = F2
kSwitchPadA = F3
kSwitchPadB = F4

[KeyShortcutsWithoutMod]
kOptions = F12
kFullScreen = F11
kBorders =
kMouseMode =
kColdReset =
kWarmReset =
kScreenShot =
kBossKey =
kCursorEmu =
kFastForward =
kRecAnim =
kRecSound =
kSound =
kPause = Pause
kDebugger =
kQuit =
kLoadMem =
kSaveMem =
kInsertDiskA =
kSwitchJoy0 =
kSwitchJoy1 =
kSwitchPadA =
kSwitchPadB =

[Sound]
bEnableMicrophone = TRUE
bEnableSound = TRUE
bEnableSoundSync = FALSE
nPlaybackFreq = 50066
nSdlAudioBufferSize = 0
szYMCaptureFileName = /home/laurent/Atari/hatari/build/src/hatari.wav
YmVolumeMixing = 2

[Memory]
nMemorySize = 4096
nTTRamSize = 0
bAutoSave = FALSE
szMemoryCaptureFileName = /home/laurent/.config/hatari/hatari.sav
szAutoSaveFileName = /home/laurent/.config/hatari/auto.sav

[Floppy]
bAutoInsertDiskB = TRUE
FastFloppy = FALSE
EnableDriveA = TRUE
DriveA_NumberOfHeads = 2
EnableDriveB = TRUE
DriveB_NumberOfHeads = 2
nWriteProtection = 0
szDiskAZipPath =
szDiskAFileName =
szDiskBZipPath =
szDiskBFileName =
szDiskImageDirectory = /home/laurent/Atari/hatari/build/src/

[HardDisk]
nGemdosDrive = 0
bBootFromHardDisk = TRUE
bUseHardDiskDirectory = TRUE
szHardDiskDirectory = /media/Toshiba/Data_Laurent/Jeux/Atari/DiskDur.FAL
nGemdosCase = 0
nWriteProtection = 0
bFilenameConversion = FALSE
bGemdosHostTime = FALSE

[ACSI]
bUseDevice0 = FALSE
sDeviceFile0 = /home/laurent/Atari/hatari/build/src
nBlockSize0 = 512
bUseDevice1 = FALSE
sDeviceFile1 = /home/laurent/Atari/hatari/build/src
nBlockSize1 = 512
bUseDevice2 = FALSE
sDeviceFile2 = /home/laurent/Atari/hatari/build/src
nBlockSize2 = 512
bUseDevice3 = FALSE
sDeviceFile3 = /home/laurent/Atari/hatari/build/src
nBlockSize3 = 512
bUseDevice4 = FALSE
sDeviceFile4 = /home/laurent/Atari/hatari/build/src
nBlockSize4 = 512
bUseDevice5 = FALSE
sDeviceFile5 = /home/laurent/Atari/hatari/build/src
nBlockSize5 = 512
bUseDevice6 = FALSE
sDeviceFile6 = /home/laurent/Atari/hatari/build/src
nBlockSize6 = 512
bUseDevice7 = FALSE
sDeviceFile7 = /home/laurent/Atari/hatari/build/src
nBlockSize7 = 512

[SCSI]
bUseDevice0 = FALSE
sDeviceFile0 = /home/laurent/Atari/hatari/build/src
nBlockSize0 = 512
bUseDevice1 = FALSE
sDeviceFile1 = /home/laurent/Atari/hatari/build/src
nBlockSize1 = 512
bUseDevice2 = FALSE
sDeviceFile2 = /home/laurent/Atari/hatari/build/src
nBlockSize2 = 512
bUseDevice3 = FALSE
sDeviceFile3 = /home/laurent/Atari/hatari/build/src
nBlockSize3 = 512
bUseDevice4 = FALSE
sDeviceFile4 = /home/laurent/Atari/hatari/build/src
nBlockSize4 = 512
bUseDevice5 = FALSE
sDeviceFile5 = /home/laurent/Atari/hatari/build/src
nBlockSize5 = 512
bUseDevice6 = FALSE
sDeviceFile6 = /home/laurent/Atari/hatari/build/src
nBlockSize6 = 512
bUseDevice7 = FALSE
sDeviceFile7 = /home/laurent/Atari/hatari/build/src
nBlockSize7 = 512

[IDE]
bUseDevice0 = FALSE
nByteSwap0 = 2
sDeviceFile0 = /home/laurent/Atari/hatari/build/src
nBlockSize0 = 512
nDeviceType0 = 0
bUseDevice1 = FALSE
nByteSwap1 = 2
sDeviceFile1 = /home/laurent/Atari/hatari/build/src
nBlockSize1 = 512
nDeviceType1 = 0

[ROM]
szTosImageFileName = /media/Toshiba/Data_Laurent/Jeux/Atari/Emulateurs/TosImages/tos162fr.img
bPatchTos = TRUE
szCartridgeImageFileName =

[LILO]
Args = root=/dev/ram video=atafb:vga16 load_ramdisk=1
Kernel = /home/laurent/Atari/hatari/build/share/hatari/vmlinuz
Symbols =
Ramdisk = /home/laurent/Atari/hatari/build/share/hatari/initrd
HaltOnReboot = TRUE
KernelToFastRam = TRUE
RamdiskToFastRam = TRUE

[RS232]
bEnableRS232 = FALSE
szOutFileName = /dev/modem
szInFileName = /dev/modem
bEnableSccB = FALSE
sSccBOutFileName = /dev/modem

[Printer]
bEnablePrinting = FALSE
szPrintToFileName = /home/laurent/.config/hatari/hatari.prn

[Midi]
bEnableMidi = FALSE
sMidiInFileName = /dev/snd/midiC1D0
sMidiOutFileName = /dev/snd/midiC1D0
sMidiInPortName = Off
sMidiOutPortName = Off

[System]
nCpuLevel = 0
nCpuFreq = 8
bCompatibleCpu = TRUE
nModelType = 2
bBlitter = FALSE
nDSPType = 0
bPatchTimerD = FALSE
bFastBoot = FALSE
bFastForward = FALSE
bAddressSpace24 = TRUE
bCycleExactCpu = TRUE
n_FPUType = 0
bSoftFloatFPU = TRUE
bMMU = FALSE
VideoTiming = 3

[Video]
AviRecordVcodec = 2
AviRecordFps = 0
AviRecordFile = /home/laurent/Atari/hatari/build/src/hatari.avi
[Log]
sLogFileName = stderr
sTraceFileName = stderr
nTextLogLevel = 3
nAlertDlgLogLevel = 1
bConfirmQuit = TRUE
bNatFeats = FALSE
bConsoleWindow = FALSE

[Debugger]
nNumberBase = 10
nSymbolLines = -1
nMemdumpLines = -1
nDisasmLines = -1
nExceptionDebugMask = 515
nDisasmOptions = 15
bDisasmUAE = FALSE
bMatchAllSymbols = FALSE
nBacktraceLines = 0
bSymbolsAutoLoad = TRUE

[Screen]
nMonitorType = 1
nFrameSkips = 5
bFullScreen = FALSE
bKeepResolution = TRUE
bResizable = TRUE
bAllowOverscan = TRUE
nSpec512Threshold = 1
nForceBpp = 0
bAspectCorrect = TRUE
bUseExtVdiResolutions = FALSE
nVdiWidth = 640
nVdiHeight = 480
nVdiColors = 2
bMouseWarp = TRUE
bShowStatusbar = FALSE
bShowDriveLed = FALSE
bCrop = FALSE
bForceMax = FALSE
nMaxWidth = 832
nMaxHeight = 588
bUseSdlRenderer = TRUE
bUseVsync = TRUE
nZoomFactor = 1

[Joystick0]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick1]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = 0
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Left Ctrl

[Joystick2]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick3]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick4]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Joystick5]
nJoystickMode = 0
bEnableAutoFire = FALSE
bEnableJumpOnFire2 = FALSE
nJoyId = -1
kUp = Up
kDown = Down
kLeft = Left
kRight = Right
kFire = Right Ctrl

[Keyboard]
bDisableKeyRepeat = FALSE
nKeymapType = 0
szMappingFileName =

[KeyShortcutsWithMod]
kOptions = O
kFullScreen = F
kBorders = B
kMouseMode = M
kColdReset = C
kWarmReset = R
kScreenShot = G
kBossKey = I
kCursorEmu = J
kFastForward = X
kRecAnim = A
kRecSound = Y
kSound = S
kPause =
kDebugger = Pause
kQuit = Q
kLoadMem = L
kSaveMem = K
kInsertDiskA = D
kSwitchJoy0 = F1
kSwitchJoy1 = F2
kSwitchPadA = F3
kSwitchPadB = F4

[KeyShortcutsWithoutMod]
kOptions = F12
kFullScreen = F11
kBorders =
kMouseMode =
kColdReset =
kWarmReset =
kScreenShot =
kBossKey =
kCursorEmu =
kFastForward =
kRecAnim =
kRecSound =
kSound =
kPause = Pause
kDebugger =
kQuit =
kLoadMem =
kSaveMem =
kInsertDiskA =
kSwitchJoy0 =
kSwitchJoy1 =
kSwitchPadA =
kSwitchPadB =

[Sound]
bEnableMicrophone = TRUE
bEnableSound = TRUE
bEnableSoundSync = FALSE
nPlaybackFreq = 50066
nSdlAudioBufferSize = 0
szYMCaptureFileName = /home/laurent/Atari/hatari/build/src/hatari.wav
YmVolumeMixing = 2

[Memory]
nMemorySize = 14336
nTTRamSize = 0
bAutoSave = FALSE
szMemoryCaptureFileName = /home/laurent/.config/hatari/hatari.sav
szAutoSaveFileName = /home/laurent/.config/hatari/auto.sav

[Floppy]
bAutoInsertDiskB = TRUE
FastFloppy = FALSE
EnableDriveA = TRUE
DriveA_NumberOfHeads = 2
EnableDriveB = TRUE
DriveB_NumberOfHeads = 2
nWriteProtection = 0
szDiskAZipPath =
szDiskAFileName =
szDiskBZipPath =
szDiskBFileName =
szDiskImageDirectory = /home/laurent/Atari/hatari/build/src/

[HardDisk]
nGemdosDrive = 0
bBootFromHardDisk = TRUE
bUseHardDiskDirectory = TRUE
szHardDiskDirectory = /media/Toshiba/Data_Laurent/Jeux/Atari/DiskDur.FAL
nGemdosCase = 0
nWriteProtection = 0
bFilenameConversion = FALSE
bGemdosHostTime = FALSE

[ACSI]
bUseDevice0 = FALSE
sDeviceFile0 = /home/laurent/Atari/hatari/build/src
nBlockSize0 = 512
bUseDevice1 = FALSE
sDeviceFile1 = /home/laurent/Atari/hatari/build/src
nBlockSize1 = 512
bUseDevice2 = FALSE
sDeviceFile2 = /home/laurent/Atari/hatari/build/src
nBlockSize2 = 512
bUseDevice3 = FALSE
sDeviceFile3 = /home/laurent/Atari/hatari/build/src
nBlockSize3 = 512
bUseDevice4 = FALSE
sDeviceFile4 = /home/laurent/Atari/hatari/build/src
nBlockSize4 = 512
bUseDevice5 = FALSE
sDeviceFile5 = /home/laurent/Atari/hatari/build/src
nBlockSize5 = 512
bUseDevice6 = FALSE
sDeviceFile6 = /home/laurent/Atari/hatari/build/src
nBlockSize6 = 512
bUseDevice7 = FALSE
sDeviceFile7 = /home/laurent/Atari/hatari/build/src
nBlockSize7 = 512

[SCSI]
bUseDevice0 = FALSE
sDeviceFile0 = /home/laurent/Atari/hatari/build/src
nBlockSize0 = 512
bUseDevice1 = FALSE
sDeviceFile1 = /home/laurent/Atari/hatari/build/src
nBlockSize1 = 512
bUseDevice2 = FALSE
sDeviceFile2 = /home/laurent/Atari/hatari/build/src
nBlockSize2 = 512
bUseDevice3 = FALSE
sDeviceFile3 = /home/laurent/Atari/hatari/build/src
nBlockSize3 = 512
bUseDevice4 = FALSE
sDeviceFile4 = /home/laurent/Atari/hatari/build/src
nBlockSize4 = 512
bUseDevice5 = FALSE
sDeviceFile5 = /home/laurent/Atari/hatari/build/src
nBlockSize5 = 512
bUseDevice6 = FALSE
sDeviceFile6 = /home/laurent/Atari/hatari/build/src
nBlockSize6 = 512
bUseDevice7 = FALSE
sDeviceFile7 = /home/laurent/Atari/hatari/build/src
nBlockSize7 = 512

[IDE]
bUseDevice0 = FALSE
nByteSwap0 = 2
sDeviceFile0 = /home/laurent/Atari/hatari/build/src
nBlockSize0 = 512
nDeviceType0 = 0
bUseDevice1 = FALSE
nByteSwap1 = 2
sDeviceFile1 = /home/laurent/Atari/hatari/build/src
nBlockSize1 = 512
nDeviceType1 = 0

[ROM]
szTosImageFileName = /media/Toshiba/Data_Laurent/Jeux/Atari/Emulateurs/TosImages/tos4_04Falcon.img
bPatchTos = TRUE
szCartridgeImageFileName =

[RS232]
bEnableRS232 = FALSE
szOutFileName = /dev/modem
szInFileName = /dev/modem
bEnableSccB = FALSE
sSccBOutFileName = /dev/modem

[Printer]
bEnablePrinting = FALSE
szPrintToFileName = /home/laurent/.config/hatari/hatari.prn

[Midi]
bEnableMidi = FALSE
sMidiInFileName = /dev/snd/midiC1D0
sMidiOutFileName = /dev/snd/midiC1D0
sMidiInPortName = Off
sMidiOutPortName = Off

[System]
nCpuLevel = 3
nCpuFreq = 16
bCompatibleCpu = TRUE
nModelType = 5
bBlitter = FALSE
nDSPType = 2
bPatchTimerD = FALSE
bFastBoot = FALSE
bFastForward = FALSE
bAddressSpace24 = TRUE
bCycleExactCpu = TRUE
n_FPUType = 68882
bSoftFloatFPU = TRUE
bMMU = FALSE
VideoTiming = 3

[Video]
AviRecordVcodec = 2
AviRecordFps = 0
AviRecordFile = /home/laurent/Atari/hatari/build/src/hatari.avi

[LILO]
Args = root=/dev/ram video=atafb:vga16 load_ramdisk=1
Kernel = /home/laurent/Atari/hatari/build/share/hatari/vmlinuz
Symbols =
Ramdisk = /home/laurent/Atari/hatari/build/share/hatari/initrd
HaltOnReboot = TRUE
KernelToFastRam = TRUE
RamdiskToFastRam = TRUE


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/