Author Topic: theseus 4.001 trap in usbmon  (Read 1364 times)

Lars

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 76
  • Posts: 815
  • Karma: +23/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #15 on: May 24, 2021, 08:47:05 pm »
For everyone where this trap occurs: what happens if you select System->General System->Modules and then have a look at USBMON.EXE in the module list ? Is there anything that looks strange or suspicious ?

Lars

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 76
  • Posts: 815
  • Karma: +23/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #16 on: May 24, 2021, 08:58:16 pm »
The strange thing is: on my system, with the given value of a certain variable "SELGDTLAddr" I would experience that very same trap. But obviously, that code path is not executed when I doubleclick on USBMON. How is USBMON started on your system ? I have a load icon in the "System Start" folder but I also selected "Auto Monitor" in the USB port object (you only ever need USBMON if you have installed a USB port on one of your printers in which case you can select "Auto Monitor" from the port settings).

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 219
  • Posts: 3066
  • Karma: +50/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #17 on: May 24, 2021, 09:21:23 pm »
For everyone where this trap occurs: what happens if you select System->General System->Modules and then have a look at USBMON.EXE in the module list ? Is there anything that looks strange or suspicious ?

Code: [Select]
FCAA35E0  0CC0  USBMON     LX   W:\OS2\USBMON.EXE

Weirdly enough, I can't quickly figure out how it is started. It is in OS2.INI and I can see the script that called the install script, but no traces in the startup folder or config.sys
« Last Edit: May 24, 2021, 09:26:00 pm by Dave Yeo »

Lars

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 76
  • Posts: 815
  • Karma: +23/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #18 on: May 25, 2021, 12:45:55 am »
What do you mean by "it is in OS2.INI" ? I cannot find any mentioning of USBMON.EXE in OS2.INI.

What IS really remarkable is if I remove "USBPRT Auto Monitor" (which is USBMON.EXE) from the Startup Folder, that object is recreated on the next system restart ! Therefore, it seems that USBMON.EXE is and has to be started from the Startup Folder. On my system, it is then started as a detached process (it shows up in the leftmost column in the process view in Theseus).

Dave, what happens, if you then doubleclick on the MTE entry (leftmost number on the line you have pasted) ? Will it display the content correctly or will that also crash Theseus/the system ?

Dave, maybe the object is in the XWorkplace Startup Folder instead of the legacy WPS startup folder ? For me, it is in the legacy WPS startup folder.
« Last Edit: May 25, 2021, 12:48:13 am by Lars »

Andreas Schnellbacher

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 37
  • Posts: 703
  • Karma: +9/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #19 on: May 25, 2021, 02:40:14 am »
Dave, maybe the object is in the XWorkplace Startup Folder instead of the legacy WPS startup folder ? For me, it is in the legacy WPS startup folder.
No, it's always recreated in <WP_STARTUP>. That one is always processed before any XFldStartup object. Maybe it's recreated early on startup via PM_InstallObject, indirectly added by USBPRT.SYS. Quite unlikely and I suppose its notification window during object creation can't be disabled.

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 219
  • Posts: 3066
  • Karma: +50/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #20 on: May 25, 2021, 03:15:17 am »
OK, the USBPRT Auto monitor is in startup,  looked too quick before.
If I double click the MTE, I get another window with a bunch more info as expected.

Doug Bissett

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 62
  • Posts: 1455
  • Karma: +2/-2
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #21 on: May 25, 2021, 08:17:58 am »
Dave, maybe the object is in the XWorkplace Startup Folder instead of the legacy WPS startup folder ? For me, it is in the legacy WPS startup folder.
No, it's always recreated in <WP_STARTUP>. That one is always processed before any XFldStartup object. Maybe it's recreated early on startup via PM_InstallObject, indirectly added by USBPRT.SYS. Quite unlikely and I suppose its notification window during object creation can't be disabled.

Actually, it does get recreated, if you delete the object. I don't have a USB printer, so I just MOVE it somewhere outside of a startup folder. It doesn't get replaced (it already exists), and it doesn't start (nothing to start it), so it can't take up resources, or cause problems. Not a useful approach if you do have a USB printer, but it makes sense when you don't have a USB printer.

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 50
  • Posts: 1095
  • Karma: +3/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #22 on: May 25, 2021, 01:21:36 pm »
hi All

I have never had a problem deleting the USBPRT Auto monitor from the Startup folder. This is something I always do immediately after an install as it is never required as I use a wireless printer - and most modern usb printers require cups which does not use the IBM USB print system.


Regards

Pete



Lars

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 76
  • Posts: 815
  • Karma: +23/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #23 on: May 25, 2021, 02:31:36 pm »
This discussion is going into the wrong direction.

The real question is: how can Theseus bring down the whole system just by double clicking on one of the processes in the process view ? That should not happen.

We know the trap occurs in Ring 0, in a helper function invoked by Theseus. It happens for some people and it would also happen for me (as much as I can tell from the code around the trapping location) but for some reason the trapping code path is not executed on my system when I double click on USBMON (or any other process).

It would at least be helpful to know what needs to be done to circumvent that trap. A trap in Ring 0 is really a bad thing to happen.

roberto

  • Hero Member
  • *****
  • Thank You
  • -Given: 19
  • -Receive: 13
  • Posts: 608
  • Karma: +1/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #24 on: May 25, 2021, 05:33:43 pm »
I'm not Ivan, but here's what you asked for from my system.
Thank you very much Andreas. He has served me at least to discard it, from what I am looking for. And I have looked elsewhere at videopmi.dll, and things improve a lot. They are still experimental, but I can access more virtual memory, and I start to see things that I have never seen before. This is usually good.
Watching a video I got this message, in an overload, I attached a photo. New changes in the pk-r06.bas file.
The trap in usbmon, it seems to me something of little importance, almost anecdotal, but you will say.

pk-r06.bas
Code: [Select]
CLS
DATA long a
PRINT "ejecutando pk-r00..."
REM swap 2048 2048
FOR a = 1 TO 100000
REM no quitar la linea print o se generara el error wifi on off
 PRINT a
REM  POKE &HFFEBCBDD, 0
REM  POKE &HFFEBCBDD, 0


REM overflow POKE &HFFEBC821, 160
POKE &HFFEBC974, 53
POKE &HFFEBCA6D, 53
POKE &HFFEBCFB9, 53
POKE &HFFEBD594, 53
POKE &HFFEBD6E0, 53
POKE &HFFEBD6F4, 53
   POKE &HFFEBDD3C, 53
   POKE &HFFEC4C2C, 53

 REM MMHELP
 POKE &HFBB1A323, 20
REM A4A4 ARREGLA BARRA NEGRA EN TRUE SPECTRA
 POKE &HFBB1A4A4, 20
 POKE &HFBB1A639, 20
 POKE &HFBB1A6E2, 20

 POKE &HFBB1A7F7, 20
 POKE &HFBB1B887, 20
 POKE &HFBB1F7E5, 20
 POKE &HFBB218B0, 20

 REM ASWITCH
 POKE &H11898, 20
 POKE &H118F2, 20
 POKE &H11951, 20

REM FREEMEMR
POKE &H1F321B66, 20
POKE &H1F321C24, 20
POKE &H1F321C51, 20
POKE &H1F321DA8, 20
POKE &H1F321E9C, 20
POKE &H1F321EC0, 20
REM POKE &H1F321F31, 20
POKE &H1F321FC9, 20
POKE &H1F322090, 20
POKE &H1F32245A, 20
POKE &H1F3224EF, 20
POKE &H1F3225A3, 20
POKE &H1F3225AB, 20
POKE &H1F3226A7, 20
POKE &H1F322766, 20
POKE &H1F322904, 20
POKE &H1F322A24, 20
POKE &H1F322AAC, 20
POKE &H1F322B60, 20
POKE &H1F322B82, 20
POKE &H1F322BDE, 20
POKE &H1F322CC0, 20
POKE &H1F322DBE, 20
POKE &H1F322DE9, 20
POKE &H1F322DFC, 20
POKE &H1F322E0D, 20
POKE &H1F322E41, 20
POKE &H1F322E7A, 20
POKE &H1F322EAD, 20
POKE &H1F322ECC, 20
POKE &H1F322EE9, 20
POKE &H1F322F5B, 20
POKE &H1F322FC3, 20
POKE &H1F32303F, 20
POKE &H1F3230B4, 20
POKE &H1F323108, 20
POKE &H1F323173, 20
POKE &H1F3231C8, 20
POKE &H1F3231D9, 20
POKE &H1F323253, 20
POKE &H1F323261, 20
POKE &H1F3232E5, 20
POKE &H1F323449, 20
POKE &H1F3234B6, 20

REM GRE2VMAN PMSHELL
POKE &H1F371B66, 160
POKE &H1F371C24, 160
POKE &H1F371C51, 160
POKE &H1F371E9C, 160
POKE &H1F371EC0, 160
POKE &H1F371F31, 160
POKE &H1F372090, 160
REM POKE &H1F37245A, 160
REM POKE &H1F3724EF, 160
REM POKE &H1F3725A3, 160
REM POKE &H1F3725AB, 160

REM PNCLOCK PMSHELL
POKE &HFE3B7F04, 160

REM VDM PMSHELL
POKE &HFE3B626A, 160
POKE &HFE3B63B0, 160

REM CAD-POP PMSHELL
POKE &HFE3BC26C, 160

rem xwpdaemon pmshell
poke &HFE3B726A, 160

REM NDCTL PMSHELL
POKE &HFE3B9465, 160

rem harderr pmshell
rem POKE &HFE3B5B09, 160
rem POKE &HFE3B626A, 160

REM USBMON PMSHELL
POKE &HFCF4A92C, 160
POKE &HFCF4B094, 160
REM POKE &HFCF4B7FC, 160
REM POKE &HFCF4BF64, 160
REM POKE &HFCF4C8E8, 160
REM POKE &HFCF4CE34, 160

REM PMSHELL PMSHELL
POKE &HFE3B5B09, 160
POKE &HFE3B626A, 160

REM VIDEOPMI   **SONIDO**MEJORA**LAS INTERRUPCIONES*****MEMORIA VIRTUAL UTILIZO MAS MEMORIA QUE HANTES NO PODIA ACCEDER!!!*****
POKE &HFB91C39A, 160
POKE &HFB91C61F, 160
POKE &HFB91CCD0, 160
POKE &HFB91CCDC, 160
POKE &HFB91CDE6, 160
POKE &HFB91D69E, 160
POKE &HFB91D76A, 160
POKE &HFB91D824, 160


rem otro usbmon
REM poke &HFD255372, 160


REM ERRORS CRASH
POKE &H1E101AE6, 211
REM 1AE1 1AEC EXPERIMENTALLLL  UN SIGNO 2D -
POKE &H1CB41AEC, 211
POKE &H1CB41C82, 211
POKE &H1682DA77, 211
POKE &H1E101AE6, 211
POKE &H17612EA2, 211

REM IMPORTANTES MEMORIA AGOTADA
poke &H1CB41AE1, 160
POKE &H1CCA1AE1, 160

rem errores de los trp
POKE &H001AF5F3, 20
POKE &H001AD083, 20
POKE &H001AB173, 20

REM POKE &H0013C4DF, 20
rem POKE &H0013C4FF, 20 falla con las descargas se cierra
rem POKE &H0013C5E4, 20 ciclo infinito no mejora



    REM midi 92b8
    REM POKE &HB96792B8, 211
   REM mouse 51b8
   REM POKE &HFCC051B8, 211

REM   POKE &HFFEC8082, 160
REM   POKE &HFFEC830F, 160
REM   POKE &HFFEC8333, 160
REM   POKE &HFFEC843D, 160
REM    POKE &HFFEC8464, 160
REM   POKE &HFFEC84BA, 160
REM   POKE &HFFEC8532, 160
REM   POKE &HFFEC8543, 160
REM   POKE &HFFEC86C2, 160
REM   POKE &HFFEC876B, 160
REM   POKE &HFFEC877C, 160
REM   POKE &HFFEC884B, 160
REM   POKE &HFFEC886E, 160
REM   POKE &HFFEC88CA, 160
REM   POKE &HFFEC8AD6, 160
REM   POKE &HFFEC8C8A, 160
REM   POKE &HFFEC8C90, 160
REM   POKE &HFFEC8F1E, 160
REM   POKE &HFFEC8F73, 160
REM   POKE &HFFEC8FA3, 160
REM   POKE &HFFEC8FEB, 160
REM   POKE &HFFEC9092, 160
REM   POKE &HFFEC90F0, 160
REM   POKE &HFFEC91CF, 160
REM   POKE &HFFEC9242, 160
REM   POKE &HFFEC92A0, 160
REM   POKE &HFFEC92EC, 160
REM   POKE &HFFEC9450, 160
REM   POKE &HFFEC9562, 160
REM   POKE &HFFEC958E, 160



NEXT a
END



saludos

Andreas Schnellbacher

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 37
  • Posts: 703
  • Karma: +9/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #25 on: May 25, 2021, 08:03:24 pm »
I have never had a problem deleting the USBPRT Auto monitor from the Startup folder.
Finally confirmed here, thanks. I had to clean my inis.

First ckeckini /C /Y:2. cleanini.exe reports a bug and won't start, so I used xfix to delete many handles. After that, there were not too many orphaned program objects. Maybe I should have protected them first. After recreating these, I started cleanini /c /delall, always with a long list of paths below [Handles] and [FolderPos] to remove.

I had 3 blocks of handles before (many years ago I had 6) and am now down to 1 block. With xfix I deleted almost half of the 3 blocks.

What I've seen with cleanini the last times I used it: It requires a Ctrl+Alt+Del restart (press it 2 - 3 times with CAD handler), not just a WPS restart. Otherwise desktop icons move on the next full start. Unfortunately that still happens with Rich's newest version if IFX, but I always have my tool installed in a shutdown folder, because of that. (Due to the bypassed shutdown, it couldn't work.)

I guess the recreation was caused by having accessed an archived desktop unintentionally with the WPS. Hope that's the same for Lars and others.

OS4User

  • Sr. Member
  • ****
  • Thank You
  • -Given: 92
  • -Receive: 16
  • Posts: 299
  • Karma: +9/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #26 on: May 26, 2021, 03:44:30 pm »
The Theseus program, when I click twice on the USBMON it generates a TRAP.
If someone is not produced any TRAP, let them tell me and I will tell them what I want.

could you try the same  on OS/4  ?

roberto

  • Hero Member
  • *****
  • Thank You
  • -Given: 19
  • -Receive: 13
  • Posts: 608
  • Karma: +1/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #27 on: May 26, 2021, 04:30:57 pm »
The Theseus program, when I click twice on the USBMON it generates a TRAP.
If someone is not produced any TRAP, let them tell me and I will tell them what I want.

could you try the same  on OS/4  ?
I think so. I have a free partition where I can install it. I tried it a long time ago and I really liked it. But for compatibility with the official I preferred to continue using the standard.
Exactly what you want me to prove, I'm not sure I understand you. Keep in mind that I work by intuition, sensations of what is better or worse, and I do not know the OS4. It is very difficult for me to detect small differences if I do not know the system. But I can try it.
saludos

roberto

  • Hero Member
  • *****
  • Thank You
  • -Given: 19
  • -Receive: 13
  • Posts: 608
  • Karma: +1/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #28 on: May 29, 2021, 09:37:12 pm »
A clarification, I am using the sawper:
SWAPPATH=C:\ 311289 368640
REM SWAPPATH=C:\ 2048 2048

Both are valid, but the one I propose is much better

Saludos

roberto

  • Hero Member
  • *****
  • Thank You
  • -Given: 19
  • -Receive: 13
  • Posts: 608
  • Karma: +1/-0
    • View Profile
Re: theseus 4.001 trap in usbmon
« Reply #29 on: June 11, 2021, 05:34:10 pm »
A little better: PKR06PI.BAS
Code: [Select]
CLS
REM PKR06PI.BAS
DATA long a
PRINT "ejecutando pk-r00..."
REM swap 2048 2048
FOR a = 1 TO 100000
REM no quitar la linea print o se generara el error wifi on off
 PRINT a

POKE &HFFEBC974, 53
 POKE &HFFEBCA6D, 53
POKE &HFFEBCFB9, 53
 POKE &HFFEBD594, 53
POKE &HFFEBD6E0, 53
 POKE &HFFEBD6F4, 53
POKE &HFFEBDD3C, 53
   POKE &HFFEC4C2C, 53

 REM MMHELP
 POKE &HFBB1A323, 20
REM A4A4 ARREGLA BARRA NEGRA EN TRUE SPECTRA
 POKE &HFBB1A4A4, 20
 POKE &HFBB1A639, 20
 POKE &HFBB1A6E2, 20

 POKE &HFBB1A7F7, 20
 POKE &HFBB1B887, 20
 POKE &HFBB1F7E5, 20
 POKE &HFBB218B0, 20

 REM ASWITCH
 POKE &H11898, 20
 POKE &H118F2, 20
 POKE &H11951, 20

REM FREEMEMR
POKE &H1F321B66, 20
POKE &H1F321C24, 20
POKE &H1F321C51, 20
POKE &H1F321DA8, 20
POKE &H1F321E9C, 20
POKE &H1F321EC0, 20
REM POKE &H1F321F31, 20
POKE &H1F321FC9, 20
POKE &H1F322090, 20
POKE &H1F32245A, 20
POKE &H1F3224EF, 20
POKE &H1F3225A3, 20
POKE &H1F3225AB, 20
POKE &H1F3226A7, 20
POKE &H1F322766, 20
POKE &H1F322904, 20
POKE &H1F322A24, 20
POKE &H1F322AAC, 20
POKE &H1F322B60, 20
POKE &H1F322B82, 20
POKE &H1F322BDE, 20
POKE &H1F322CC0, 20
POKE &H1F322DBE, 20
POKE &H1F322DE9, 20
POKE &H1F322DFC, 20
POKE &H1F322E0D, 20
POKE &H1F322E41, 20
POKE &H1F322E7A, 20
POKE &H1F322EAD, 20
POKE &H1F322ECC, 20
POKE &H1F322EE9, 20
POKE &H1F322F5B, 20
POKE &H1F322FC3, 20
POKE &H1F32303F, 20
POKE &H1F3230B4, 20
POKE &H1F323108, 20
POKE &H1F323173, 20
POKE &H1F3231C8, 20
POKE &H1F3231D9, 20
POKE &H1F323253, 20
POKE &H1F323261, 20
POKE &H1F3232E5, 20
POKE &H1F323449, 20
POKE &H1F3234B6, 20

REM GRE2VMAN PMSHELL
POKE &H1F371B66, 160
REM --- POKE &H1F371C24, 160
POKE &H1F371C51, 160
REM --- POKE &H1F371E9C, 160
POKE &H1F371EC0, 160
REM --- POKE &H1F371F31, 160
POKE &H1F372090, 160
REM POKE &H1F37245A, 160
REM POKE &H1F3724EF, 160
REM POKE &H1F3725A3, 160
REM POKE &H1F3725AB, 160

REM PNCLOCK PMSHELL
POKE &HFE3B7F04, 160

REM VDM PMSHELL
POKE &HFE3B626A, 160
POKE &HFE3B63B0, 160

REM CAD-POP PMSHELL
POKE &HFE3BC26C, 160

rem xwpdaemon pmshell
poke &HFE3B726A, 160

REM TWOHAND
  POKE &HFE3B735C, 160
 POKE &HFE3B7AC4, 160
REM POKE &HFE3B9758, 160
REM POKE &HFE3BD940, 160


REM NDCTL PMSHELL
POKE &HFE3B9465, 160

REM USBMON PMSHELL
POKE &HFCF4A92C, 160
POKE &HFCF4B094, 160
REM POKE &HFCF4B7FC, 160
REM POKE &HFCF4BF64, 160
REM POKE &HFCF4C8E8, 160
REM POKE &HFCF4CE34, 160

REM PMSHELL PMSHELL
POKE &HFE3B5B09, 160
POKE &HFE3B626A, 160

REM VIDEOPMI   **SONIDO**MEJORA**LAS INTERRUPCIONES*****MEMORIA VIRTUAL UTILIZO MAS MEMORIA QUE HANTES NO PODIA ACCEDER!!!*****
POKE &HFB91C39A, 160
REM NOOO   POKE &HFB91C5F2, 160
POKE &HFB91C61F, 160
REM --- POKE &HFB91CCD0, 160
   POKE &HFB91CCDC, 160
REM  SONIDO PEOR POKE &HFB91CDE6, 160
REM  SONIDO TARTAMUDO POKE &HFB91D69E, 160
REM POKE &HFB91D76A, 160
REM POKE &HFB91D824, 160

REM CUPS
POKE &HFE3B9EDA, 160
REM POKE &HFE3BB512, 160
POKE &HFE3BAD90, 160
REM POKE &HFE3BB448, 160
POKE &HFE3BB548, 160

REM XWPDAEMONM
POKE &HFE3B735C, 160
REM POKE &HFE3B7AC4, 160
REM POKE &HFE3B8DAC, 160

REM ERRORS CRASH
POKE &H1E101AE6, 211
REM 1AE1 1AEC EXPERIMENTALLLL  UN SIGNO 2D -
POKE &H1CB41AEC, 211
POKE &H1CB41C82, 211
POKE &H1682DA77, 211
POKE &H1E101AE6, 211
POKE &H17612EA2, 211

REM IMPORTANTES MEMORIA AGOTADA
poke &H1CB41AE1, 160
POKE &H1CCA1AE1, 160

rem errores de los trp
POKE &H001AF5F3, 20
POKE &H001AD083, 20
POKE &H001AB173, 20

NEXT a
END




The only problem I notice is a noise sometimes with the sound.
  But using the browser is nice.

saludos