Pale Moon 28 crashes when authentication required by web site Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
ari5_96
Apollo supporter
Apollo supporter
Posts: 39
Joined: 2014-07-26, 09:10
Location: Australia

Pale Moon 28 crashes when authentication required by web site

Unread post by ari5_96 » 2018-08-30, 13:30

I'm running Pale Moon 28.0.0 or 28.0.0.1 64-bit, on Windows 7 SP1 64-bit, at work. When I go to one of our internal web sites, I have to authenticate myself. This is not a username/password entry on the web page itself - instead the browser gives me a modal Windows dialog:
Authentication Required. https://example.com is requesting your username and a password. The site says: "Trac"
The web address I've quoted is (obviously) not the real one - it's an internal server so you couldn't connect to it even if I put the real address in there. The "Trac" bit is real. The web site is "Powered by Trac 1.2.2 by Edgewall Software" (https://trac.edgewall.org/)

I type in my username and password, and Pale Moon 28.0.0 crashes with:

Pale Moon web browser has stopped working.

Problem signature:
Problem Event Name: APPCRASH
Application Name: palemoon.exe
Application Version: 4.1.4.6793
Application Timestamp: 5b699ef8
Fault Module Name: xul.dll
Fault Module Version: 4.1.4.6793
Fault Module Timestamp: 5b69a0d6
Exception Code: c0000005
Exception Offset: 00000000004e43b5
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 3081
Additional Information 1: ccce
Additional Information 2: ccce36c26b4c307d6f789697c90040f9
Additional Information 3: f5bc
Additional Information 4: f5bcadc4d75510188cd92fdb3aab40c8

28.0.0.1 does not fix the problem. It fails much the same way, and says:

Problem signature:
Problem Event Name: APPCRASH
Application Name: palemoon.exe
Application Version: 4.1.4.6812
Application Timestamp: 5b82db07
Fault Module Name: xul.dll
Fault Module Version: 4.1.4.6812
Fault Module Timestamp: 5b82ddcb
Exception Code: c0000005
Exception Offset: 00000000004de485
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 3081
Additional Information 1: ccce
Additional Information 2: ccce36c26b4c307d6f789697c90040f9
Additional Information 3: 30e1
Additional Information 4: 30e13d837cb179184a83939e970e3a3a

It doesn't crash every time, but quite often - at least half of the time. There's no obvious conditions that correlate to its crashing or not.

After I click OK on the Authentication dialog, Pale Moon always asks me "would you like Pale Moon to remember this login" (I always ignore that prompt, for the purposes of reproducing the problem), but never shows any of the web page, not does it clear the window of the previous page (if there was one) from that tab. It sometimes says "Secure Connection Failed. The connection to the server was reset while the page was loading." first, then crashes (or not) after I click Try Again. Again, there's no obvious correlation between that message and whether or not I connect or crash.

I can reproduce the problem on two different PCs:
my work PC, Windows 7 SP1 64-bit, Pale Moon 64-bit
A VirtualBox virtual machine on my home PC, with Windows 7 SP1 64-bit (both host and guest), and Open VPN (on the VM) to connect to the office network.

Unfortunately it's an internal company website, which means you can't use it to replicate the problem. I've seen the Authentication dialog on several different companies' servers, but I don't know of any publicly visible website that does it.

New Tobin Paradigm

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by New Tobin Paradigm » 2018-08-30, 13:45

Likely gonna need a minidump or at least a call stack to work out exactly where the crash is happening.

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1325
Joined: 2015-09-08, 22:54
Location: 127.0.0.1
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Isengrim » 2018-08-30, 14:28

I've had a few crashes with similar circumstances to what you're describing on my Windows 10 machine. However, they have been so random that I have not been able to reliably reproduce them, and so sporadic (six over the last month) that I haven't bothered reported them. Looking at my WER files, I see the same sort of error as yours: caused by xul.dll, exception code 0xc0000005 (access violation). Our issues may be related, or they may not be.

If you don't know how to capture a minidump, please see this post.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Moonchild » 2018-08-30, 14:45

Looking at the addresses it's in nsHttpTransaction::Close. It's possible with the async madness that this is a deref crash because the pipe has already been torn down when the final close command is given. Another example of our builds being too fast for their own good ;)

A dump will be able to confirm if I'm right.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

ari5_96
Apollo supporter
Apollo supporter
Posts: 39
Joined: 2014-07-26, 09:10
Location: Australia

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by ari5_96 » 2018-09-01, 08:45

I've just tried v28.0.1, and that does not fix the problem. (I didn't particularly expect it to, but one can always hope.)

I found these web sites to test authentication:
* https://httpbin.org/basic-auth/user/passwd
* https://httpbin.org/digest-auth/auth/user/passwd
In both cases: user=user password=passwd (from https://stackoverflow.com/questions/650 ... st-servers).
but I can't reproduce the problem with either of these, even when running through the company network (through VPN).

Unfortunately security considerations prevent me from providing a crash minidump. (I realise that might make it infeasible for you to diagnose and fix the problem, but that's the price we pay for security.) However I'm quite happy to try any beta/test builds that you might create, or anything else you can suggest, to see if they fix the problem, and let you know the outcome.

p0k3m0n

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by p0k3m0n » 2018-09-01, 11:34

Windows 7
28.0.1
On my system its working:

Code: Select all

{
  "authenticated": true, 
  "user": "user"
}
Last edited by p0k3m0n on 2018-09-01, 11:34, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Moonchild » 2018-09-19, 06:37

@ari5_96: there will be a new release this week of v28.1.0 - once published, can you please try and see if the crash is still present or not? If it's still crashing, please provide a fresh appcrash report (like in your original post) so I can correlate its reported addresses with my previous findings on the current binaries, lacking the possibility of a crashdump to analyze.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1325
Joined: 2015-09-08, 22:54
Location: 127.0.0.1
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Isengrim » 2018-09-19, 10:42

I just uploaded a crashdump to the FTP that I believe is relevant to this issue. The dump was created on Windows 10 x64 build 1803 with Pale Moon x64 28.0.1.

I too was using some internal work sites at the time of the crash, so I won't be able to provide access to them for any testing. However, I'd be willing to test further on my end if needed.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Moonchild » 2018-09-19, 13:29

Thanks, the crash point is the same, confirmed it's a null deref on the http pipe.
Simple fix.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1325
Joined: 2015-09-08, 22:54
Location: 127.0.0.1
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Isengrim » 2018-09-19, 13:35

Fantastic! Thank you. :)
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Moonchild » 2018-09-19, 13:42

Issue #776 (UXP) filed, will have a one-liner fix in the tree in a minute ;)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Moonchild » 2018-09-19, 18:19

Latest unstable is patched and should prevent the crash. please verify?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

ari5_96
Apollo supporter
Apollo supporter
Posts: 39
Joined: 2014-07-26, 09:10
Location: Australia

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by ari5_96 » 2018-09-22, 08:43

I tried v28.1.0 (64-bit etc, per my original post), using a new clean profile, and it still fails the same way, specifically with:
Problem signature:
Problem Event Name: APPCRASH
Application Name: palemoon.exe
Application Version: 4.1.5.6834
Application Timestamp: 5b9f7151
Fault Module Name: xul.dll
Fault Module Version: 4.1.5.6834
Fault Module Timestamp: 5b9f733f
Exception Code: c0000005
Exception Offset: 00000000004e37d5
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 3081
Additional Information 1: ccce
Additional Information 2: ccce36c26b4c307d6f789697c90040f9
Additional Information 3: ae92
Additional Information 4: ae921404747a1e53502e3fa05b4bb542

I tried the unstable version -- 28.2.0a1 (64-bit)(2018-09-19), File version 4.1.5.6836, date modified 2018-09-20 00:26 (UTC+8). After entering my username/password in the dialog box, I get "Secure Connection Failed. The connection to the server was reset while the page was loading. The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem." When I click "Try again", Pale Moon becomes unresponsive - I can't move close or move the window, the window does not redraw if I drag another window over it and then away, Task Manager says it is "Not Responding", and I have to use Task Manager to end the task/process. It does this every time.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Moonchild » 2018-09-22, 08:50

Thanks for confirming that it fixes the crash.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

kex85

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by kex85 » 2018-10-01, 07:37

I have the same problem since getting 28, forcing me to use another browser at work :(
Any idea when a full fix will be in the unstable branch?

kex85

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by kex85 » 2018-10-10, 09:44

This is still an issue as of the latest unstable build (on Windows at least). It's about 50/50 if it outright crashes or becomes unresponsive and has to be killed by task manager.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by Moonchild » 2018-10-10, 11:27

If it still crashes, please provide details!

Of note, "try again" on a server where a secure connection can't be established is pointless. It won't magically fix itself.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

kex85

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by kex85 » 2018-10-11, 08:05

Sorry, but since it wasn't solved for the original poster, I didn't think a new report would help.

When it becomes unresponsive, it's with this callstack (I don't have the symbols, so you'll have to resolve it manually):

xul.dll!00007ffcdc015d0c()
xul.dll!00007ffcdcd11b73()
xul.dll!00007ffcdbb22e15()
xul.dll!00007ffcdbb26ba5()
xul.dll!00007ffcdbb27383()
xul.dll!00007ffcdbb189ba()

And this is the loaded module info:
xul.dll C:\Program Files\Pale Moon\xul.dll 4.01.5.6849 2018-10-10 08꞉16 00007FFCDB5F0000-00007FFCDFAD5000

Edit: For some pages it does work to connect, for others it doesn't, so I don't think it's an issue with the server being incorrectly configured. It worked fine for all pages in PM27 and Chrome as well.
Last edited by kex85 on 2018-10-11, 08:10, edited 1 time in total.

ari5_96
Apollo supporter
Apollo supporter
Posts: 39
Joined: 2014-07-26, 09:10
Location: Australia

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by ari5_96 » 2018-11-22, 12:58

With Pale Moon 28.2.1 it fails for me much the same as it did with 28.2.0a1 (64-bit)(2018-09-19), File version 4.1.5.6836, ie
After entering my username/password in the dialog box, I get "Secure Connection Failed. The connection to the server was reset while the page was loading. ..." If I click "Try again", Pale Moon becomes unresponsive - I can't move close or move the window, the window does not redraw if I drag another window over it and then away, and I have to use Task Manager to end the task/process. It does this most times. I've tried about 10 times so far, it failed on all except one occasion.

raphael75

Re: Pale Moon 28 crashes when authentication required by web site

Unread post by raphael75 » 2019-01-31, 14:05

I have basically the same issue as the original poster. I'm using Pale Moon 28.3.1 64-bit. On our internal company Sharepoint site, I try to login using the modal authentication dialog, and every other time it works. The other time Pale Moon will load the tab 50% and the browser completely freezes. I don't get any crash information. I have to either kill the process, or sometimes I can click the close X button to kill it. It's wierd that it crashes, works, crashes, works, etc. Is there any other information I can provide to help you troubleshoot this? Thanks!

Locked