#8 aos4 (debug kernel): non custom drag routines in environment/icon settings cause a crash

5.92
open
nobody
None
2014-11-17
2013-09-20
kas1e
No

Crash can be reproduced on os4, and only when we use debug.kernel with "munge" (so it can catch problems with Nodes and co). So, to reproduce:

-- hard reboot, run dopus5
-- go to Settings/Environment and choice Icon Settings.
-- at the bottom there is option "use custom drag routines" (currently enabled).
-- disable it (so will be used not custom drag routines, but original ones).
-- use/use
-- gran the icon and drag it to any place.

So, on moment of realising of mouse button on new place, crash is happens. Stack trace looks like this:

Stack trace:
(0x682D89E0) native kernel module graphics.library.kmod+0x00076c40
(0x682D8A40) native kernel module graphics.library.kmod+0x00076f84
(0x682D8B10) [aos4_ppc_libstubs.c:341] libstub_L_DrawDragList()+0x1c (section 1 @ 0x47C08)
(0x682D8B20) [backdrop_drag.c:220] backdrop_stop_drag()+0x270 (section 1 @ 0x1D19C)
(0x682D8B50) [backdrop_buttons.c:397] backdrop_handle_button()+0x380 (section 1 @ 0x1811C)
(0x682D8BA0) [backdrop_idcmp.c:255] backdrop_idcmp()+0x3e4 (section 1 @ 0x177BC)
(0x682D8BF0) [event_loop.c:752] event_loop()+0xb84 (section 1 @ 0x11210)
(0x682D8CD0) [main.c:81] main()+0x1c8 (section 1 @ 0x7694)
(0x682D8D00) native kernel module newlib.library.kmod+0x000020a4
(0x682D8D70) native kernel module newlib.library.kmod+0x00002d54
(0x682D8F10) native kernel module newlib.library.kmod+0x00002ee8
(0x682D8F50) _start()+0x170 (section 1 @ 0x16C)
(0x682D8F90) native kernel module dos.library.kmod+0x00024ab4
(0x682D8FC0) native kernel module kernel+0x0006aa5c
(0x682D8FD0) native kernel module kernel+0x0006aadc

DAR register point out on DAR: CCCCCCE0, what can mean something about Node being freed two times or something like that.

backdrop_date.c:220 is :

DrawDragList(&GUI->drag_screen_rp,&info->window->WScreen->ViewPort,(info->flags&BDIF_CUSTOM_DRAG)?DRAGF_CUSTOM|DRAGF_REMOVE:0);

Remember, crash reproducable ONLY with debug kernel and "munge" enabled. As without, all will looks like fine.

To add, on AROS native icon drag routines pure broken currently, so it can be all somehow related.

Discussion

  • kas1e
    kas1e
    2014-05-12

    • Milestone: 5.90 --> 5.92