33.9.0 segfaults at every scroll event 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.
User avatar
L29Ah
Moongazer
Moongazer
Posts: 10
Joined: 2023-09-12, 23:22

33.9.0 segfaults at every scroll event

Post by L29Ah » 2025-09-23, 13:24

Load https://www.palemoon.org/releasenotes.shtml and press spacebar or move the mouse wheel. Something similar will show up in your core dump:
(gdb) bt
#0 0x00007fe7cf0a2c8c in __pthread_kill_implementation () at /lib64/libc.so.6
#1 0x00007fe7cf04a976 in raise () at /lib64/libc.so.6
#2 0x00007fe7cc0657b5 in nsProfileLock::FatalSignalHandler (signo=11, info=0x7fff8deb1170, context=0x7fff8deb1040) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/toolkit/profile/nsProfileLock.cpp:177
#3 0x00007fe7cf04aaa0 in <signal handler called> () at /lib64/libc.so.6
#4 0x00007fe7c984c4e1 in nsILoadInfo::GetSkipContentSniffing (this=0x0) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/o/dist/include/nsILoadInfo.h:131
#5 NS_SniffContent
(aSnifferType=aSnifferType@entry=0x7fe7cd564446 "net-content-sniffers", aRequest=aRequest@entry=0x7fe77ce37270, aData=0x7fe78ad37000 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n", '\345' <repeats 160 times>, <incomplete sequence \345>..., aLength=39, aSniffedType=...)
at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/netwerk/base/nsNetUtil.cpp:2158
#6 0x00007fe7c9820162 in CallTypeSniffers (aClosure=0x7fe77ce37270, aData=<optimized out>, aCount=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/netwerk/base/nsBaseChannel.cpp:752
#7 0x00007fe7c982edc7 in CallPeekFunc
(aInStream=aInStream@entry=0x7fe77ce47580, aClosure=aClosure@entry=0x7fff8deb1ee0, aFromSegment=aFromSegment@entry=0x7fe78ad37000 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n", '\345' <repeats 160 times>, <incomplete sequence \345>..., aToOffset=<optimized out>, aCount=aCount@entry=39, aWriteCount=aWriteCount@entry=0x7fff8deb1e3c) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/netwerk/base/nsInputStreamPump.cpp:94
#8 0x00007fe7c97879f9 in nsPipeInputStream::ReadSegments (this=0x7fe77ce47580, aWriter=0x7fe7c982edb0 <CallPeekFunc(nsIInputStream*, void*, char const*, uint32_t, uint32_t, uint32_t*)>, aClosure=0x7fff8deb1ee0, aCount=32768, aReadCount=0x7fff8deb1ed0)
at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/xpcom/io/nsPipe3.cpp:435
#9 0x00007fe7c983b5de in nsInputStreamPump::PeekStream (this=0x7fe76d7f91f0, callback=callback@entry=0x7fe7c9820100 <CallTypeSniffers(void*, uint8_t const*, uint32_t)>, closure=closure@entry=0x7fe77ce37270)
at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/o/dist/include/nsCOMPtr.h:739
#10 0x00007fe7c9820657 in nsBaseChannel::OnStartRequest (this=0x7fe77ce37230, request=<optimized out>, ctxt=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/o/dist/include/mozilla/RefPtr.h:275
#11 0x00007fe7c983b9f1 in nsInputStreamPump::OnStateStart (this=this@entry=0x7fe76d7f91f0) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/netwerk/base/nsInputStreamPump.cpp:526
#12 0x00007fe7c983d1ec in nsInputStreamPump::OnInputStreamReady (this=0x7fe76d7f91f0, stream=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/netwerk/base/nsInputStreamPump.cpp:428
#13 0x00007fe7c978ac00 in nsInputStreamReadyEvent::Run (this=0x7fe76de75b80) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/xpcom/io/nsStreamUtils.cpp:94
#14 0x00007fe7c97a063c in nsThread::ProcessNextEvent (this=0x7fe7cee836a0, aMayWait=false, aResult=0x7fff8deb20a7) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/o/dist/include/nsCOMPtr.h:739
#15 nsThread::ProcessNextEvent (this=0x7fe7cee836a0, aMayWait=false, aResult=0x7fff8deb20a7) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/xpcom/threads/nsThread.cpp:1076
#16 0x00007fe7c97cea8c in NS_ProcessNextEvent (aThread=<optimized out>, aMayWait=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/xpcom/glue/nsThreadUtils.cpp:355
#17 0x00007fe7c9c68f6a in mozilla::ipc::MessagePump::Run (this=0x7fe7ceed7980, aDelegate=0x7fe7cee874e0) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/ipc/glue/MessagePump.cpp:95
#18 0x00007fe7c9c1297a in MessageLoop::RunInternal (this=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/o/dist/include/mozilla/RefPtr.h:275
#19 MessageLoop::RunHandler (this=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/ipc/chromium/src/base/message_loop.cc:221
#20 MessageLoop::Run (this=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/ipc/chromium/src/base/message_loop.cc:201
#21 0x00007fe7cb86c7ec in nsBaseAppShell::Run (this=0x7fe7ba1405e0) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/widget/nsBaseAppShell.cpp:153
#22 0x00007fe7cc04afee in nsAppStartup::Run (this=0x7fe7ba161ab0) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/toolkit/components/startup/nsAppStartup.cpp:282
#23 0x00007fe7cc070925 in XREMain::XRE_mainRun (this=this@entry=0x7fff8deb2340) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/toolkit/xre/nsAppRunner.cpp:3792
#24 0x00007fe7cc07131c in XREMain::XRE_main (this=this@entry=0x7fff8deb2340, argc=argc@entry=1, argv=argv@entry=0x7fff8deb37c8, aAppData=aAppData@entry=0x7fff8deb25b0) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/toolkit/xre/nsAppRunner.cpp:3896
#25 0x00007fe7cc0715fb in XRE_main (argc=1, argv=0x7fff8deb37c8, aAppData=0x7fff8deb25b0, aFlags=<optimized out>) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/platform/toolkit/xre/nsAppRunner.cpp:3978
#26 0x0000563ccbda899f in do_main (argc=<optimized out>, argc@entry=1, argv=argv@entry=0x7fff8deb37c8, envp=envp@entry=0x7fff8deb37d8, xreDirectory=0x7fe7cee8d6c0) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/palemoon/app/nsBrowserApp.cpp:253
#27 0x0000563ccbda8128 in main (argc=1, argv=0x7fff8deb37c8, envp=0x7fff8deb37d8) at /var/tmp/portage/www-client/palemoon-33.9.0/work/palemoon-33.9.0/palemoon/app/nsBrowserApp.cpp:377

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5537
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: 33.9.0 segfaults at every scroll event

Post by Night Wing » 2025-09-23, 13:49

I clicked on your link and I took me to the page with the release notes for Pale Moon (38.9.0). I moved the mouse wheel on my mouse and this started the scrolling down the page in incremental steps. No problems. Never got the gibberish that you got.

I then tapped my space bar and the scrolling jumped a few spaces, but that is what I consider normal. But I never use my spacebar when I want to scroll.

At this time I am using 64 bit linux Pale Moon 33.9.0 (GTK2) running in 64 bit MX Linux 23.6 (Libretto) Xfce.
Last edited by Night Wing on 2025-09-23, 14:46, edited 1 time in total.
MX Linux 25 (Xfinity) Xfce w/Pale Moon, Waterfox, Firefox
Linux Debian 13.1 (Trixie) Xfce w/Pale Moon, Waterfox, Firefox

Falna
Astronaut
Astronaut
Posts: 535
Joined: 2015-08-23, 17:56
Location: UK / France

Re: 33.9.0 segfaults at every scroll event

Post by Falna » 2025-09-23, 14:39

No problems here either, with space bar or scroll wheel on Windows.

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 818
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: 33.9.0 segfaults at every scroll event

Post by Lucio Chiappetti » 2025-09-23, 14:52

Normal here too, on linux
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

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

Re: 33.9.0 segfaults at every scroll event

Post by Moonchild » 2025-09-23, 19:36

OK, there seems to be some subtle issue with the content sniffer code that was touched here. Thanks for the stack, it immediately pointed to the problem area.
I don't know why it triggers for you and nobody else, but I'll consider backing out the changes for a point release as there are clearly some stability and usability issues.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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
Bababo26
Moongazer
Moongazer
Posts: 13
Joined: 2021-02-12, 11:49

Re: 33.9.0 segfaults at every scroll event

Post by Bababo26 » 2025-09-23, 21:18

Moonchild wrote:
2025-09-23, 19:36
OK, there seems to be some subtle issue with the content sniffer code that was touched here. Thanks for the stack, it immediately pointed to the problem area.
I don't know why it triggers for you and nobody else, but I'll consider backing out the changes for a point release as there are clearly some stability and usability issues.
From the source paths (/var/tmp/portage/www-client/palemoon-33.9.0/....) in the stack trace this is a gentoo build so the compiler (most likely gcc 14) other stuff is going to be different from what I assume would be the binary release the other posters are using.

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

Re: 33.9.0 segfaults at every scroll event

Post by Moonchild » 2025-09-23, 22:48

Oh right, I missed that detail.
So it's a build from source. well at least that makes it less critical.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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
feriman
New to the forum
New to the forum
Posts: 2
Joined: 2025-08-21, 07:34

Re: 33.9.0 segfaults at every scroll event

Post by feriman » 2025-09-24, 15:27

Bababo26 wrote:
2025-09-23, 21:18
Moonchild wrote:
2025-09-23, 19:36
OK, there seems to be some subtle issue with the content sniffer code that was touched here. Thanks for the stack, it immediately pointed to the problem area.
I don't know why it triggers for you and nobody else, but I'll consider backing out the changes for a point release as there are clearly some stability and usability issues.
From the source paths (/var/tmp/portage/www-client/palemoon-33.9.0/....) in the stack trace this is a gentoo build so the compiler (most likely gcc 14) other stuff is going to be different from what I assume would be the binary release the other posters are using.
I built =www-client/palemoon-33.9.0 in Gentoo by =sys-devel/gcc-13.2.0 and I have no such problem. Maybe this information would be useful.

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

Re: 33.9.0 segfaults at every scroll event

Post by Moonchild » 2025-09-24, 16:32

Thanks.
I've done more research in the meantime and the issue will be intermittent but is serious. A point update is in the pipeline at the moment and will be published asap.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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: 38404
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: 33.9.0 segfaults at every scroll event

Post by Moonchild » 2025-09-24, 22:15

33.9.0.1 is released that should address this issue.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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
feriman
New to the forum
New to the forum
Posts: 2
Joined: 2025-08-21, 07:34

Re: 33.9.0 segfaults at every scroll event

Post by feriman » 2025-09-25, 09:00

=www-client/palemoon-33.9.0.1 was built on Gentoo with latest stable =sys-devel/gcc-14.3.1 and works correctly.