#479 crash when trying to load REL file from virtual device

v2.4.x
closed-fixed
Ingo Korb
None
Drives
2014-11-29
2013-11-20
gpz
No

when autostarting a D64 that contains a REL file as its first file in the directory, VICE will crash

AUTOSTART: Turning true drive emulation off.
Open existing REL file '*' with record length 0 on channel 0.
Filesystem Image DXX: Error - Track 0, Sector 0 out of bounds.
VDriveREL: Error - Cannot read side sector.
Speicherzugriffsfehler

Discussion

  • Greg King
    Greg King
    2013-11-20

    I can't duplicate that bug (in WinVICE-2.4.5-x86-r27835). For me, VICE loads the first record of the RELative file (CBM DOS, also, will do that if you use ",l", on the file-name, to force a REL load).

    Maybe, your REL file is broken.

     
  • gpz
    gpz
    2013-11-21

    yes, the REL file is "broken" (its a dir entry that says REL but there isnt an actual REL file connected to it)

    i noticed it when trying to autorun http://csdb.dk/release/download.php?id=154680

     
  • gpz
    gpz
    2014-01-28

    here is a backtrace for a start:

    #0 0x000000000050ce83 in vdrive_rel_record_max (secondary=0, vdrive=0x2153300) at vdrive-rel.c:942
    #1 vdrive_rel_open (vdrive=vdrive@entry=0x2153300, secondary=secondary@entry=0, cmd_parse=cmd_parse@entry=0x7fffffffcf20,
    name=name@entry=0xb01740 <SerialBuffer> "") at vdrive-rel.c:850
    #2 0x000000000050a9dd in vdrive_iec_open (vdrive=0x2153300, name=0xb01740 <SerialBuffer> "
    ", length=<optimized out="">, secondary=0,
    cmd_parse_ext=<optimized out="">) at vdrive-iec.c:489
    #3 0x000000000055a692 in serialcommand (device=device@entry=40, secondary=secondary@entry=240 '\360') at fsdrive.c:133
    #4 0x000000000055a88b in fsdrive_unlisten (device=40, secondary=240 '\360', st_func=st_func@entry=0x559b00 <serial_set_st>) at fsdrive.c:217
    #5 0x0000000000557d48 in serial_iec_bus_unlisten (device=<optimized out="">, secondary=<optimized out="">, st_func=st_func@entry=0x559b00 <serial_set_st>)
    at serial-iec-bus.c:83
    #6 0x0000000000559ce8 in serial_trap_attention () at serial-trap.c:102
    #7 0x0000000000472a9b in traps_handler () at traps.c:247
    #8 0x000000000048015a in maincpu_mainloop () at ../6510core.c:2084
    #9 0x0000000000464f85 in main_program (argc=2, argv=0x7fffffffd218) at main.c:256
    #10 0x00000030c3c2460d in __libc_start_main () from /lib64/libc.so.6
    #11 0x000000000044f0b1 in _start ()

     
    Last edit: gpz 2014-01-28
  • Soci/Singular
    Soci/Singular
    2014-11-29

    • status: open --> closed-fixed
     
  • Soci/Singular
    Soci/Singular
    2014-11-29

    Fixed in 28803.