Skip to content

Recursive ADDFOLDER dies with malloc error #35

@apple2geek

Description

@apple2geek

I was relocating the contents of a large image to a smaller image. I began by extracting the contents of the larger image recursively, which worked:

block:A2.DESKTOP apple2geek$ cadius EXTRACTFOLDER ../A2DeskTop.po /A2.DESKTOP/DESK.ACC/ .
cadius v 1.4.4 (c) Brutal Deluxe 2011-2013.
  - Extract folder '/A2.DESKTOP/DESK.ACC/' :
      o Extract File   : /A2.DESKTOP/DESK.ACC/CALCULATOR
CALCULATOR=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/EYES
EYES=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/FIND.FILES
FIND.FILES=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/KEY.CAPS
KEY.CAPS=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/PUZZLE
PUZZLE=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/RUN.BASIC.HERE
RUN.BASIC.HERE=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/SCREEN.DUMP
SCREEN.DUMP=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/SORT.DIRECTORY
SORT.DIRECTORY=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/THIS.APPLE
THIS.APPLE=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      + Extract Folder : /A2.DESKTOP/DESK.ACC/CONTROL.PANELS
      o Extract File   : /A2.DESKTOP/DESK.ACC/CONTROL.PANELS/CONTROL.PANEL
CONTROL.PANEL=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/CONTROL.PANELS/DATE
DATE=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/CONTROL.PANELS/JOYSTICK
JOYSTICK=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/CONTROL.PANELS/SYSTEM.SPEED
SYSTEM.SPEED=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      + Extract Folder : /A2.DESKTOP/DESK.ACC/SCREEN.SAVERS
      o Extract File   : /A2.DESKTOP/DESK.ACC/SCREEN.SAVERS/FLYING.TOASTERS
FLYING.TOASTERS=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/SCREEN.SAVERS/INVERT
INVERT=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
      o Extract File   : /A2.DESKTOP/DESK.ACC/SCREEN.SAVERS/MELT
MELT=Type(F1),AuxType(0640),VersionCreate(00),MinVersion(00),Access(E3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
    => File(s) : 16,  Folder(s) : 3,  Error(s) : 0
block:A2.DESKTOP apple2geek$
block:A2.DESKTOP apple2geek$ ls -la DESK.ACC
total 144
drwx------  14 apple2geek  staff   476 Dec 17 19:05 .
drwxr-xr-x   8 apple2geek  staff   272 Dec 17 19:06 ..
-rw-r--r--   1 apple2geek  staff  2980 Dec 25  1920 CALCULATOR#F10640
drwx------   7 apple2geek  staff   238 Dec 17 19:05 CONTROL.PANELS
-rw-r--r--   1 apple2geek  staff  1961 Dec 25  1920 EYES#F10640
-rw-r--r--   1 apple2geek  staff  3150 Dec 25  1920 FIND.FILES#F10640
-rw-r--r--   1 apple2geek  staff  2490 Dec 25  1920 KEY.CAPS#F10640
-rw-r--r--   1 apple2geek  staff  2754 Dec 25  1920 PUZZLE#F10640
-rw-r--r--   1 apple2geek  staff   465 Dec 25  1920 RUN.BASIC.HERE#F10640
-rw-r--r--   1 apple2geek  staff   345 Dec 25  1920 SCREEN.DUMP#F10640
drwx------   6 apple2geek  staff   204 Dec 17 19:05 SCREEN.SAVERS
-rw-r--r--   1 apple2geek  staff  1157 Dec 25  1920 SORT.DIRECTORY#F10640
-rw-r--r--   1 apple2geek  staff  4356 Dec 25  1920 THIS.APPLE#F10640
-rw-r--r--   1 apple2geek  staff     0 Dec 17 19:05 _FileInformation.txt
block:A2.DESKTOP apple2geek$

Then attempted to add this folder to the smaller image, but was greeted with a malloc() error:

block:A2.DESKTOP apple2geek$ cadius ADDFOLDER ../400K.po /DESKTOP/A2.DESKTOP/ DESK.ACC
cadius v 1.4.4 (c) Brutal Deluxe 2011-2013.
  - Add folder 'DESK.ACC' :
cadius(88113,0x7fff796a4000) malloc: *** error for object 0x7f99a0c041a8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
block:A2.DESKTOP apple2geek$

I was able to successfully add the contents by using CREATEFOLDER and multiple ADDFILE operations, but it took much longer and much more effort than the recursive ADDFOLDER would have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions