Menu

#506 dirlist test fails on x64

x86_64-pc
closed-fixed
None
5
2016-03-22
2016-03-20
ALB42
No

Tests/Zune/dirlist

does not work, hangs on start, seems some kind of busy loop, computer full busy after starting.

Discussion

  • Kalamatee

    Kalamatee - 2016-03-20
    (gdb) bt
    #0  0x0000000060265c6c in LibNextTagItem (tagListPtr=0x4189aab0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/arossupport/./libnexttagitem.c:15
    #1  0x0000000060264b36 in Utility_8_NextTagItem (tagListPtr=0x4189aab0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/rom/utility/./nexttagitem.c:71
    #2  0x000000004189c706 in __inline_Utility_NextTagItem (__arg1=0x4189aab0, __UtilityBase=0x41094080) at /home/Nick/Developer/AROS/local_builds/trunk/linux-x86_64-gcc6exp/bin/linux-x86_64/AROS/Development/include/inline/utility.h:74
    #3  0x000000004189cb61 in Colorfield__OM_SET (cl=0x41207540, obj=0x418a1118, msg=0x4189acb0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/./colorfield.c:182
    #4  0x000000004189c3a4 in Colorfield_Dispatcher (CLASS=0x41207540, self=0x418a1118, message=0x4189acb0) at /home/Nick/Developer/AROS/local_builds/trunk/linux-x86_64-gcc6exp/bin/linux-x86_64/gen/workbench/libs/muimaster/classes/Colorfield_start.c:381
    #5  0x000000004194e9d9 in metaDispatcher (cl=0x41207540, obj=0x418a1118, msg=0x4189acb0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #6  0x000000004196f041 in Group_DispatchMsg (cl=0x41ccfd90, obj=0x41cd2838, msg=0x4189acb0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/group.c:965
    #7  0x000000004196e193 in Group__OM_SET (cl=0x41ccfd90, obj=0x41cd2838, msg=0x4189acb0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/group.c:588
    #8  0x0000000041975fa4 in Group_Dispatcher (cl=0x41ccfd90, obj=0x41cd2838, msg=0x4189acb0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/group.c:3361
    #9  0x000000004194e9d9 in metaDispatcher (cl=0x41ccfd90, obj=0x41cd2838, msg=0x4189acb0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #10 0x00000000601cfddc in Intuition_108_SetAttrsA (object=0x41cd2838, tagList=0x4189ad30, IntuitionBase=0x410b5400) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/rom/intuition/./setattrsa.c:82
    #11 0x00000000419860d6 in __inline_Intuition_SetAttrsA (__arg1=0x41cd2838, __arg2=0x4189ad30, __IntuitionBase=0x410b5400) at /home/Nick/Developer/AROS/local_builds/trunk/linux-x86_64-gcc6exp/bin/linux-x86_64/AROS/Development/include/inline/intuition.h:1707
    #12 0x000000004198752d in Notify__MUIM_Set (cl=0x416f5f70, obj=0x41cd2838, msg=0x41dcfd00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/notify.c:696
    #13 0x0000000041987bbc in Notify_Dispatcher (cl=0x416f5f70, obj=0x41cd2838, msg=0x41dcfd00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/notify.c:855
    #14 0x000000004194e9d9 in metaDispatcher (cl=0x416f5f70, obj=0x41cd2838, msg=0x41dcfd00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #15 0x000000004195f86b in Area_Dispatcher (cl=0x41a12640, obj=0x41cd2838, msg=0x41dcfd00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/area.c:2599
    #16 0x000000004194e9d9 in metaDispatcher (cl=0x41a12640, obj=0x41cd2838, msg=0x41dcfd00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #17 0x00000000419763f9 in Group_Dispatcher (cl=0x41ccfd90, obj=0x41cd2838, msg=0x41dcfd00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/group.c:3449
    #18 0x000000004194e9d9 in metaDispatcher (cl=0x41ccfd90, obj=0x41cd2838, msg=0x41dcfd00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #19 0x0000000041986bd9 in check_notify (nnode=0x41dcfc80, obj=0x418ba8a8, tag=0x4189b560) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/notify.c:389
    #20 0x0000000041986d75 in Notify__OM_SET (cl=0x416f5f70, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/notify.c:453
    #21 0x0000000041987a4a in Notify_Dispatcher (cl=0x416f5f70, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/notify.c:831
    #22 0x000000004194e9d9 in metaDispatcher (cl=0x416f5f70, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #23 0x0000000041959997 in Area__OM_SET (cl=0x41a12640, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/area.c:768
    #24 0x000000004195f3b1 in Area_Dispatcher (cl=0x41a12640, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/area.c:2523
    #25 0x000000004194e9d9 in metaDispatcher (cl=0x41a12640, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #26 0x000000004196dfeb in Group__OM_SET (cl=0x41ccfd90, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/group.c:541
    #27 0x0000000041975fa4 in Group_Dispatcher (cl=0x41ccfd90, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/group.c:3361
    #28 0x000000004194e9d9 in metaDispatcher (cl=0x41ccfd90, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #29 0x000000004197c6ac in List__OM_SET (cl=0x4129ce80, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/list.c:1459
    #30 0x000000004198339e in List_Dispatcher (cl=0x4129ce80, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/list.c:3831
    #31 0x000000004194e9d9 in metaDispatcher (cl=0x4129ce80, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #32 0x00000000418afce2 in Dirlist__OM_SET (cl=0x41b61370, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/./dirlist.c:378
    #33 0x00000000418ae76e in Dirlist_Dispatcher (CLASS=0x41b61370, self=0x418ba8a8, message=0x4189b4b0) at /home/Nick/Developer/AROS/local_builds/trunk/linux-x86_64-gcc6exp/bin/linux-x86_64/gen/workbench/libs/muimaster/classes/Dirlist_start.c:379
    #34 0x000000004194e9d9 in metaDispatcher (cl=0x41b61370, obj=0x418ba8a8, msg=0x4189b4b0) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #35 0x00000000601cfddc in Intuition_108_SetAttrsA (object=0x418ba8a8, tagList=0x4189b560, IntuitionBase=0x410b5400) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/rom/intuition/./setattrsa.c:82
    #36 0x00000000418aebde in __inline_Intuition_SetAttrsA (__arg1=0x418ba8a8, __arg2=0x4189b560, __IntuitionBase=0x410b5400) at /home/Nick/Developer/AROS/local_builds/trunk/linux-x86_64-gcc6exp/bin/linux-x86_64/AROS/Development/include/inline/intuition.h:1707
    #37 0x00000000418af88e in ReadDirectory (obj=0x418ba8a8, data=0x418bad00) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/./dirlist.c:278
    #38 0x00000000418afc8a in Dirlist__OM_SET (cl=0x41b61370, obj=0x418ba8a8, msg=0x4189b750) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/classes/./dirlist.c:373
    #39 0x00000000418ae76e in Dirlist_Dispatcher (CLASS=0x41b61370, self=0x418ba8a8, message=0x4189b750) at /home/Nick/Developer/AROS/local_builds/trunk/linux-x86_64-gcc6exp/bin/linux-x86_64/gen/workbench/libs/muimaster/classes/Dirlist_start.c:379
    #40 0x000000004194e9d9 in metaDispatcher (cl=0x41b61370, obj=0x418ba8a8, msg=0x4189b750) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/workbench/libs/muimaster/./support_classes.c:256
    #41 0x00000000601cfddc in Intuition_108_SetAttrsA (object=0x418ba8a8, tagList=0x4189b820, IntuitionBase=0x410b5400) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/rom/intuition/./setattrsa.c:82
    #42 0x00000000412c1192 in __inline_Intuition_SetAttrsA (__arg1=0x418ba8a8, __arg2=0x4189b820, __IntuitionBase=0x410b5400) at /home/Nick/Developer/AROS/local_builds/trunk/linux-x86_64-gcc6exp/bin/linux-x86_64/AROS/Development/include/inline/intuition.h:1707
    #43 0x00000000412c170f in main () at /mnt/NAS/PC/AROS/branches/ABI_V1/src/test/Zune/./dirlist.c:94
    #44 0x00000000412c10ae in __startup_main (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/startup/startup.c:97
    #45 0x00000000412c3e55 in ___startup_entries_next (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./programentries.c:26
    #46 0x00000000412c2ec4 in __initcommandline (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./commandline.c:89
    #47 0x00000000412c3e55 in ___startup_entries_next (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./programentries.c:26
    #48 0x00000000412c3d37 in __startup_initexit (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./initexitsets.c:68
    #49 0x00000000412c3e55 in ___startup_entries_next (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./programentries.c:26
    #50 0x00000000412c3548 in __startup_stdiowin (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./stdiowin.c:47
    #51 0x00000000412c3e55 in ___startup_entries_next (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./programentries.c:26
    #52 0x00000000412c3bb3 in __startup_fromwb (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./fromwb.c:47
    #53 0x00000000412c3e55 in ___startup_entries_next (SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/autoinit/./programentries.c:26
    #54 0x00000000412c0fd7 in __startup_entry (argstr=0x41181140 "\n", argsize=1, SysBase=0x41002820) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/compiler/startup/startup.c:79
    #55 0x000000006012dc81 in CallEntry (argptr=0x41181140 "\n", argsize=1, entry=0x412c0eec, me=0x41182790) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/rom/dos/./exit.c:129
    #56 0x000000006000c462 in trampoline (func=0x6012db77 <CallEntry>, ret=0x4115b1e0, args=0x4115b250) at /mnt/NAS/PC/AROS/branches/ABI_V1/src/arch/all-unix/exec/newstackswap.c:41
    #57 0x00007ffff785d110 in ?? () from /lib64/libc.so.6
    
     

    Last edit: Kalamatee 2016-03-20
  • ALB42

    ALB42 - 2016-03-21

    Further notice:

    the reason is a TagList which have some TAG_IGNORE and at last a TAG_MORE which points to the begin of the same TagList -> endless loop

    When I include a debugoutput to colorfield.c Colorfield__OM_SET

    bug("paramtaglist: %p , extraTagList: %p\n", (IPTR)msg->ops_AttrList, (IPTR)extra_tags);

    it results in:

    paramtaglist: 000000004c592410 , extraTagList: 000000004c592150
    paramtaglist: 000000004c592150 , extraTagList: 000000004c592150

    Please notice "extra_tags" is a function local TagItem Array and msg->ops_AttrList is the taglist from the parameter and both point to the same memory?

    Therefore if you replace the TAG_MORE in the "extra_tags" by TAG_DONE it work, but of course its just a bad hack, not a solution.

     
  • Kalamatee

    Kalamatee - 2016-03-22
    • status: open --> closed-fixed
    • assigned_to: Kalamatee
     
  • Kalamatee

    Kalamatee - 2016-03-22

    fixed in revision 52146 -:

    Fix an endless loop processing tags.

    N.B: DO NOT "poke" the attributes of a message you are called with! We do not know what the caller wishes to do with the message after returning from us, and as such we could end up doing some very nasty things. Construct a new message to put our replacement attributes in.

     

Log in to post a comment.