Skip to content

fseek in DiskFile.cpp causes segfault (was: Segfault on raspbian 64) #29

@wboerhout

Description

@wboerhout

So I built axpbox on Raspian 64-bit

uname -a
Linux raspoe 5.4.75-v8+ #1367 SMP PREEMPT Mon Nov 9 15:11:16 GMT 2020 aarch64 GNU/Linux

configure ran as expected. see cfg file below.
on run it segfaults:

pi@raspoe ~ $ sudo /opt/axpbox/build/axpbox run /opt/axpbox/es40.cfg 
sys0(tsunami): $Id: System.cpp,v 1.79 2008/06/12 07:29:44 iamcamiel Exp $
%FLS-F-NOREST: Flash could not be restored from /opt/axpbox/rom/flash.rom
sys0(tsunami): $Id: Flash.cpp,v 1.19 2008/03/24 22:11:50 iamcamiel Exp $
Segmentatiefout

es40.cfg after editing:

pi@raspoe ~ $ cat /opt/axpbox/es40.cfg
sys0 = tsunami
{
  memory.bits = 28;
  rom.srm = "/opt/axpbox/rom/cl67srmrom.exe";
  rom.decompressed = "/opt/axpbox/rom/decompressed.rom";
  rom.flash = "/opt/axpbox/rom/flash.rom";
  rom.dpr = "/opt/axpbox/rom/dpr.rom";

  cpu0 = ev68cb
  {
    speed = 800M;
    icache = false;
    skip_memtest_hack = false;
  }

  serial0 = serial
  {
    port = 21264;
  }

  pci0.15 = ali_ide
  {
  }

  pci0.1 = dec21143
  {
    adapter = "tap1";
    mac = "08-00-2B-E5-40-00";
  }

  pci0.2 = sym53c810
  {
    disk0.0 = file
    {
      file = "/vdisk/VSIAXP.vdisk";
      cdrom = false;
      read_only = false;
    }

    disk0.1 = file
    {
      file = "/vdisk/Tools-RZ22.vdisk";
      cdrom = false;
      read_only = false;
    }

  }

  pci0.7 = ali
  {
    mouse.enabled = false;
    vga_console = false;
  }

  pci0.19 = ali_usb
  {
  }
}

since I used the default build, gdb from the core dump only gives me this:


Thread 1 (LWP 9269):
#0  0xf74fd614 in ?? ()
No symbol table info available.
#1  0x0005c270 in CDiskFile::CDiskFile(CConfigurator*, CSystem*, CDiskController*, int, int) ()
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

I believe at this point it should decompress the ROM ?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions