Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

[BUG] unreadable reloXection deadlocks DPMILD32 (DOSX)

posted by DOS386(R), 12.06.2008, 23:58

include "IMPORT32.INC"
format PE GUI 4.0
entry llstart

section '.code' code readable executable

llstart:  ud2
          call [NotFound]
          call [ExitProcess]

section '.idata' import data readable writeable

  library  bd, 'BUGD.DLL', ke, 'KERNEL32.DLL'

  import   bd,  NotFound, 'NotFound'
  import   ke,  ExitProcess , 'ExitProcess'


include "EXPORT.INC"
format PE GUI 4.0 DLL
entry llentry

section '.code' code readable executable

llentry:  mov eax,1
          ret    12

none:     mov al,[none]

section '.edata' export data readable

  export 'BUGD.DLL', None, 'None'

section '.reloc' fixups data discardable ; readable

Seems I found a severe bug in DPMILD32: it deadlocks when a reloc section in not "readable" :-( Above very-high-quality code should trigger a "missing import" complaint, instead, it deadlocks itself at black screen with white rat arrow - reacting to mouse movements, but not to CTL-C, CTL-BEAK, APPZ/CRASH/MENU, ... -> reboot unavoidable :-( Uncommenting the "readable" or deleting complete section makes the bug vanish. Windaube, OTOH, seems to consider the section (all sections ?) unconditionally as readable.

IMHO the "readable" flag is crap - what's the point of a non-readable section ? Just ignore it and assume all readable ;-)

BTW, any plans to delete NE support from DPMILD32 ? Docs already flag it as "obsolete" , "no advantages" ... etc. - the time has come to kick it out :hungry:

This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***


Complete thread:

Back to the forum
Board view  Mix view
15274 Postings in 1373 Threads, 253 registered users, 20 users online (1 registered, 19 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum