Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

KernelEx 4.5.2015.11 updates

- - - - -

  • Please log in to reply
294 replies to this topic

#276
Dave-H

Dave-H

    MSFN Expert

  • MSFN Sponsor
  • 1,225 posts
  • Joined 04-January 06
  • OS:98SE
  • Country: Country Flag

Thank you @jumper for sticking with this!

I'll try it out tomorrow and let you know the outcome.

I assume I can now remove the registry patch, which I haven't yet done?

Cheers, Dave.

:)


Triple boot Windows 98SE SP2.1a, Windows XP Professional SP3 32 bit, and Windows 8.1 Pro 64 bit.
Dual 3.16GHz X5460 Quad Core Xeons with 8GB RAM. Dual graphics cards ATI Radeon X600 and Nvidia Quadro 2000. 1920x1080 32 Bit Colour with Large Fonts.



How to remove advertisement from MSFN

#277
deomsh

deomsh
  • Member
  • 7 posts
  • Joined 07-December 14
  • OS:98SE
  • Country: Country Flag

Kexbasen12 works, my win98se is starting up without problems & without the registry patch! Most import kernelex-programs are working. Great!



#278
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 915 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

It loads without crashing but both issues reported in this post remain: 

 

http://www.msfn.org/...-9#entry1112872

 

And some upxed files still won't load: Examples to download here:

 

http://filebin.ca/2V.../KernelexUPX.7z



#279
jumper

jumper

    2015 All-American Masters HJ'er

  • Member
  • PipPipPipPipPip
  • 703 posts
  • Joined 21-January 11
  • OS:98SE
  • Country: Country Flag
KernelEx.dll v.12 will address the UPX regression. I'll tweak the resolver code to detect UPX'd modules and use the old method if found--explicit imports will be treated the same as implicit. I think the UPX loader does all its explicit loads before calling VirtualProtect, so perhaps there I can safely toggle back to the new method. I'll also try to add back-end support for some new loader options. UI support will come later.

As for the gimp/git problems, I need to know what APIs are involved.
Design feedback requested:
KernelEx 4.5.2015
IHAtool - IpHlpApi tester; call various functions and report results
--status-> framework is solid; 22 api's fully supported; preview release coming soon
Future projects: Kexter - IP40+Ktree+Kexstubs

#280
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 227 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

Awesome - thanks !!!

 

(Quick first test: SeaMonkey 2.7.x. and 2.8 are unfortunately still freezing.)



#281
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 915 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

As for the gimp/git problems, I need to know what APIs are involved.

 

I gave a lot of info about the gimp issue a while back starting with this post:

 

http://www.msfn.org/...-5#entry1096811

 

All I can add/clarify about that is that it happens with non-upxed files too.


Edited by loblo, 04 February 2016 - 05:44 AM.


#282
Dave-H

Dave-H

    MSFN Expert

  • MSFN Sponsor
  • 1,225 posts
  • Joined 04-January 06
  • OS:98SE
  • Country: Country Flag

@jumper

 

Just to confirm that the new version of kexbasen.dll has completely fixed the problems here!

:thumbup

I have removed the registry patch, and put all my scripting files back in the system folder, and all is working well, including VLC Player again.

Thanks very much for sorting this out!

:)


Edited by Dave-H, 04 February 2016 - 11:54 AM.

Triple boot Windows 98SE SP2.1a, Windows XP Professional SP3 32 bit, and Windows 8.1 Pro 64 bit.
Dual 3.16GHz X5460 Quad Core Xeons with 8GB RAM. Dual graphics cards ATI Radeon X600 and Nvidia Quadro 2000. 1920x1080 32 Bit Colour with Large Fonts.


#283
jumper

jumper

    2015 All-American Masters HJ'er

  • Member
  • PipPipPipPipPip
  • 703 posts
  • Joined 21-January 11
  • OS:98SE
  • Country: Country Flag

Might be an incompatible LOGFONT structure being passed to CreateFont().

Last month I gave this post a "Like This" because it told me exactly what I should investigate. (I did and will pursue it soon.)

> SeaMonkey 2.7.x. and 2.8 are unfortunately still freezing.
In or after what API's? (Use the debug console.)

> I gave a lot of info about the gimp issue a while back starting with this post:
Yes, but I need to know in or after what API's the problem occurs. (Use the debug console.)
Design feedback requested:
KernelEx 4.5.2015
IHAtool - IpHlpApi tester; call various functions and report results
--status-> framework is solid; 22 api's fully supported; preview release coming soon
Future projects: Kexter - IP40+Ktree+Kexstubs

#284
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 915 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag
> I gave a lot of info about the gimp issue a while back starting with this post:
Yes, but I need to know in or after what API's the problem occurs. (Use the debug console.)

 

 

I thought I had done all that already with apihook. If I should do something else let me know what and how exactly.



#285
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 227 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

Hi Jumper, unfortunately I have to admit that I need more infos on debug console. I am still a noob on most things.

 

And I have similar problems with VLC on a P4/ICH4-system running v11&v12-configuration that Dave-H reported earlier.

Nothing happens when I try to start VLC.

After enableing KEX on kexbasen.dll the follwing error message appears. I maybe just have to change one comp-mode

but I can't find the culprit. Thanks for your hard work !!

Datum 02/05/2016 Uhrzeit 20:53
VLC verursachte einen Stapelfehler in Modul KEXBASEN.DLL bei 017f:7d00a034.
Register:
EAX=00440000 CS=017f EIP=7d00a034 EFLGS=00010293
EBX=928c5e68 SS=0187 ESP=00572000 EBP=0057201c
ECX=9289efd4 DS=0187 ESI=7d000000 FS=4b1f
EDX=7d017004 ES=0187 EDI=00000000 GS=0000
Bytes bei CS:EIP:
ff 15 28 40 01 7d c9 c2 0c 00 55 8b ec 51 81 7d
Stapelwerte:
00440000 00000000 00000010 00000000 00000000 00000000 00000000 00572040 7d00a03a 00440000 00000000 00000010 00000000 00000000 00000000 00000000

Edited by MiKl, 05 February 2016 - 02:07 PM.


#286
jumper

jumper

    2015 All-American Masters HJ'er

  • Member
  • PipPipPipPipPip
  • 703 posts
  • Joined 21-January 11
  • OS:98SE
  • Country: Country Flag
@Mikl:
KernelEx extensions *MUST* be disabled on KernelEx.dll, Kexbasen.dll, Kexbases.dll and all non-auxiliary support files.

@Mikl, loblo, and all
1. enable "Use API hook" on the main app
2. launch DebugWindow.exe (right-click to access menu)
3. Filter Settings->Include: "("; Exclude: ""

If fault occurs during app loading:
4. enable "Output to log file"
5. launch main app

If fault can be triggered manually:
4. disable "Filter to console"
5. launch main app
6. enable "Filter to console" and "Output to logfile"
7. trigger fault

After fault, logfile can be found in app folder with unfiltered debug info.
Console filtered results (last 1000?) can be saved to file.

Filtering tips:
Include filter will limit display to lines containing a set of substrings (case sensitive). Use to show only API's or DLL's of interest:
"Print;[1998;[07d;[bfa"
Exclude: "dePo;Mess"

Test with latest releases and if regression, last to work correctly. Report API's that lead to problems or different results.

Edited by jumper, 05 February 2016 - 06:36 PM.

Design feedback requested:
KernelEx 4.5.2015
IHAtool - IpHlpApi tester; call various functions and report results
--status-> framework is solid; 22 api's fully supported; preview release coming soon
Future projects: Kexter - IP40+Ktree+Kexstubs

#287
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 227 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

kexbasen v12 is 'causing' this problem only on this particular system - don't know why. All other 98SE machines are fine. So I went back to v10.



#288
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 915 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

Thanks jumper for those explanations but I think I did all that already regarding  gimp plugins crashing and your last word about it was:

 

 

GetEnvironmentVariableW appears to be failing in both the good and the bad logs. SetEnvironmentVariableW returns different values. I may need to write a small test app to debug these.

It was important to have a matched set of fault and api logs so the that the various memory addresses matched. I used first Procwin and then DumpPe -disasm to identify MSVCR70.

The problem is that _wputenv calls down through several private functions and invokes _wenviron which is uninitialized. I don't yet know why.

http://www.msfn.org/...-5#entry1097494

 

Do you want new logs?



#289
DougB

DougB

    Junior

  • Member
  • Pip
  • 88 posts
  • Joined 04-September 11
  • OS:98SE
  • Country: Country Flag

R11 with kexbasen r12 has been working well for me; no more problems with VLC v2.1.5.  (W98SE, U98SESP3, 98SE2ME, IEradicator; KExt/KStubs disabled for testing.)  

@jumper:

>> "Kex16."

Sounds intriguing... will this be a re-write of KernelEx?

>> Many thanks to everyone for their feedback and patience while I
>> worked through this challenging puzzle.

@Dave-H:

> Thank you @jumper for sticking with this!

+1!  

If i was more experienced with Windows programming, i could help more.  

- Doug B.
 



#290
jumper

jumper

    2015 All-American Masters HJ'er

  • Member
  • PipPipPipPipPip
  • 703 posts
  • Joined 21-January 11
  • OS:98SE
  • Country: Country Flag
> Do you want new logs?
No, I'm working on other things. Try retesting and debugging with Kexstubs disabled and with Msvcrt version 6.10.x.

Also, if you could figure out why LIBGOBJECT-2.0-0.DLL is calling g_realloc_n in LIBGLIB-2.0-0.DLL instead of g_malloc0, that is probably the key. (See post #106.)

>> "Kex16."
> Sounds intriguing... will this be a re-write of KernelEx?
No, just KernelEx 4.16. It's a new year and I want to be able to bump the third number as needed to indicate core incompatibility with previous versions (like between 4.5.2015.9 and .10). "K16" will probably be the alias.
Design feedback requested:
KernelEx 4.5.2015
IHAtool - IpHlpApi tester; call various functions and report results
--status-> framework is solid; 22 api's fully supported; preview release coming soon
Future projects: Kexter - IP40+Ktree+Kexstubs

#291
schwups

schwups

    schwups

  • Member
  • PipPipPipPip
  • 505 posts
  • Joined 11-November 09
  • OS:ME
  • Country: Country Flag

Kexbasen.11 revealed an initialization loop vulnerability in the KernelEx 4.5 architecture. I plan to address it more completely in "Kex16."

For now, the Kernel32 fixes in Kexbasen for TlsAlloc, TlsFree, TlsGetValue, TlsSetValue have been rewritten to be better, faster, and (most importantly) not need preinitialization. Along with restoring the delay-load linker options, Kexbasen should now be stable again with current SE and ME configurations.

Use Kexbasen.12 with KernelEx.11 and Kexbases.11.

Many thanks to everyone for their feedback and patience while I worked through this challenging puzzle.

No problems so far anymore and I'm happy to see Opera with Win2000 mode runs again. Did you work on my problem with Opera?

 

In any case from me also big thanks!



#292
jumper

jumper

    2015 All-American Masters HJ'er

  • Member
  • PipPipPipPipPip
  • 703 posts
  • Joined 21-January 11
  • OS:98SE
  • Country: Country Flag
> Did you work on my problem with Opera?
Actually, no. I just fixed what I knew to be broken in 11. 12 is what 11 should have been and hopefully will be once I get the core and kexbases DLL's updated.

I have now almost finished the changelog for 11: post #223
Note that more of Ley0k's code has been integrated including his versions of [COMDLG32.DLL] PrintDlgExA and PrintDlgExW.

Thanks, Ley0k! :thumbup:

Edited by jumper, 08 February 2016 - 06:09 PM.

Design feedback requested:
KernelEx 4.5.2015
IHAtool - IpHlpApi tester; call various functions and report results
--status-> framework is solid; 22 api's fully supported; preview release coming soon
Future projects: Kexter - IP40+Ktree+Kexstubs

#293
jumper

jumper

    2015 All-American Masters HJ'er

  • Member
  • PipPipPipPipPip
  • 703 posts
  • Joined 21-January 11
  • OS:98SE
  • Country: Country Flag
:sneaky:

Attached Files


  • Tommy likes this
Design feedback requested:
KernelEx 4.5.2015
IHAtool - IpHlpApi tester; call various functions and report results
--status-> framework is solid; 22 api's fully supported; preview release coming soon
Future projects: Kexter - IP40+Ktree+Kexstubs

#294
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 227 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

New KernelEx.dll installed on two machines and had no problems so far !!

 

~

 

Regarding the flash.306.msi installation problem. I have compared the three PCs and the major changes between the one where installation still worked and the two were installation failed are:

 

- KernelEx updates

- disabling Kex on system dlls

 

I will test installing .306 after re-enabling system dlls.

Would the following be good/meaningful/helpful ?

 

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\KernelEx\AppSettings\Flags]
"C:\\WINDOWS\\KERNELEX\\*"=dword:00000001

Edited by MiKl, 12 February 2016 - 06:08 AM.


#295
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 227 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag
> SeaMonkey 2.7.x. and 2.8 are unfortunately still freezing.
In or after what API's? (Use the debug console.)

 

I am not sure if I did everything correctly but I tested both SM 2.7.2. and 2.8 and both frooze at the following api:

KERNEL32.DLL>SetCriticalSectionSpinCount

 

Log 2.7.2

Spoiler

 

Log 2.8

Spoiler

Edited by MiKl, Yesterday, 06:24 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users