LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   PaleMoon from source SlackBuild (https://www.linuxquestions.org/questions/slackware-14/palemoon-from-source-slackbuild-4175605127/)

montagdude 05-03-2017 11:51 PM

Quote:

Originally Posted by Skaendo (Post 5705940)
There is a hack if you're using the Oxygen icon theme; just modify your launch command to point to a different theme.
It's on the forum here somewhere.

Yeah, the link is in the README for the from-source PaleMoon on SBo.

http://docs.slackware.com/howtos:sof..._segfaults_etc

Anyway, I'm building now with ENABLE_DEBUG=yes and OPTIMIZE="-Os". We'll see what happens.

ponce 05-03-2017 11:57 PM

note that, in some cases, simply enabling debug might stop the crashes, so if you are willing to do some tests, might be useful to play with the parameters one at a time.
regarding the OPTIMIZE one is worth to try -Os but also simply -O (still like Alien Bob wrote above).

Alien Bob 05-04-2017 12:52 AM

Quote:

Originally Posted by Skaendo (Post 5705940)
There is a hack if you're using the Oxygen icon theme; just modify your launch command to point to a different theme.
It's on the forum here somewhere.

... or you install my patched oxygen-gtk2 package: http://www.slackware.com/~alien/slac...s/oxygen-gtk2/

In my conversations with the Pale Moon developer he mentioned that there was a commit to the oxygen-gtk2 repository which was meant to solve crashes in certain firefox-derived browsers (such as Pale Moon) but that patch was never part of an official release, so many distros do not have a proper oxygen-gtk2 package that fixes the theme-related crashes in Pale Moon.
Slackware's oxygen-gtk2 package does not contain that patch either, so I added a patched oxygen-gtk2 package to my repository at the same time when I added a palemoon package to my repository.

montagdude 05-04-2017 06:25 AM

Alright, so I tried with ENABLE_DEBUG=yes, OPTIMIZE="-Os", and using the GTK theme override, and it still crashes reliably on http://hfboards.hockeysfuture.com/. Here is a link to the end of the terminal output and then a backtrace:

https://pastebin.com/udFJVSNv

khronosschoty 05-04-2017 08:33 AM

Quote:

Originally Posted by Alien Bob (Post 5705672)
I am not bashing you, at all :-)
I think it is great that SBo has a script for a source build of Pale Moon. If possible, I always prefer programs that are compiled on Slackware instead of relying on "official binaries".
It's just that the Pale Moon developer is not a Linux guy, so he relies on some other people to tell him what's working and what not. Those people are all running some kind of Debian/Ubuntu/Mint variant, and when I told him I rely more on the stability of Slackware's un-patched compilers than on the stories about crashes on other distros, he answered that I should do what i think is best.

So, I use gcc5, and at the same time am using "-Os" as optimization flag, similar to "-O2" optimization but with better respect for code size.

What we used to have to do with Slackware's Firefox builds in the past, was to apply no optimizations at all by specifying CFLAGS="-O" and "--enable-optimization" without parameter. Perhaps I will try that in future builds of my own package.

I am at work now, so I can not test, but tonight I will test Pale Moon with Yahoo pages.

I am just wondering if you ever tested yahoo out?

khronosschoty 05-04-2017 08:34 AM

Quote:

Originally Posted by montagdude (Post 5706044)
Alright, so I tried with ENABLE_DEBUG=yes, OPTIMIZE="-Os", and using the GTK theme override, and it still crashes reliably on http://hfboards.hockeysfuture.com/. Here is a link to the end of the terminal output and then a backtrace:

https://pastebin.com/udFJVSNv


Site does not crash for me using the build from SBo but I also built it with gcc 4.9.4 so idk.

montagdude 05-04-2017 11:50 AM

Quote:

Originally Posted by khronosschoty (Post 5706100)
Site does not crash for me using the build from SBo but I also built it with gcc 4.9.4 so idk.

Interesting. I just built gcc 4.9.4, and later tonight I will use that to build Pale Moon and try again.

Alien Bob 05-04-2017 01:55 PM

Quote:

Originally Posted by montagdude (Post 5706044)
Alright, so I tried with ENABLE_DEBUG=yes, OPTIMIZE="-Os", and using the GTK theme override, and it still crashes reliably on http://hfboards.hockeysfuture.com/. Here is a link to the end of the terminal output and then a backtrace:

https://pastebin.com/udFJVSNv

I tried accessing http://hfboards.hockeysfuture.com/ using my Pale Moon package, on Slackware64-current with Plasma 5. No issue at all. I see an ugly site with ads that span half the screen and I scrolled from top to bottom. I also clicked through on some of the links. Am I supposed to click anywhere in particular to trigger a crash?

I also visited https://www.yahoo.com/ and this site too, does not make my Pale Moon crash.

montagdude 05-04-2017 01:59 PM

Quote:

Originally Posted by Alien Bob (Post 5706277)
I tried accessing http://hfboards.hockeysfuture.com/ using my Pale Moon package, on Slackware64-current with Plasma 5. No issue at all. I see an ugly site with ads that span half the screen and I scrolled from top to bottom.

Oh no doubt, the ads are ugly and annoying. Hence why I normally block them.

Quote:

Originally Posted by Alien Bob (Post 5706277)
I also clicked through on some of the links. Am I supposed to click anywhere in particular to trigger a crash?

No, with my SBo build it happens within seconds of navigating to that site, whether I scroll or not. I never even got the chance to click on anything. For the record, this is with a fresh ~/.moonchild productions and no add-ons installed.

Alien Bob 05-04-2017 02:14 PM

Quote:

Originally Posted by montagdude (Post 5706279)
Oh no doubt, the ads are ugly and annoying. Hence why I normally block them.

No, with my SBo build it happens within seconds of navigating to that site, whether I scroll or not. I never even got the chance to click on anything. For the record, this is with a fresh ~/.moonchild productions and no add-ons installed.

I did not install particular add-ons or extensions, but Pale Moon finds the same plugins that Firefox also uses (flash player, icedtea-web, gecko mediaplayer).

montagdude 05-04-2017 09:42 PM

Here is an update on my tests. The SBo from-source Pale Moon segfaults for me at both yahoo.com and hfboards.hockeysfuture.com. I tried with the default build options and also with ENABLE_DEBUG=yes and OPTIMIZE=-Os (together, not independently), and using the oxygen theme workaround. Using the same SlackBuild but building with gcc-4.9.4 instead of the system gcc-5.3.0, there is no segfault on either page. There is also no problem with the SBo package that repackages the official binaries, or with Alien Bob's Pale Moon package. These tests were all done on Slackware64-14.2 with multilib.

So take that for what you will. It would be nice if others could confirm my results with the SBo package built with the two different compilers.

khronosschoty 05-04-2017 09:54 PM

Quote:

Originally Posted by montagdude (Post 5706407)
Here is an update on my tests. The SBo from-source Pale Moon segfaults for me at both yahoo.com and hfboards.hockeysfuture.com. I tried with the default build options and also with ENABLE_DEBUG=yes and OPTIMIZE=-Os (together, not independently), and using the oxygen theme workaround. Using the same SlackBuild but building with gcc-4.9.4 instead of the system gcc-5.3.0, there is no segfault on either page. There is also no problem with the SBo package that repackages the official binaries, or with Alien Bob's Pale Moon package. These tests were all done on Slackware64-14.2 with multilib.

So take that for what you will. It would be nice if others could confirm my results with the SBo package built with the two different compilers.

Thank you for reporting that. Would you mind testing aleinBob's script using the option in his build script to build palemoon with "official optimization"?

montagdude 05-04-2017 10:21 PM

Quote:

Originally Posted by khronosschoty (Post 5706411)
Thank you for reporting that. Would you mind testing aleinBob's script using the option in his build script to build palemoon with "official optimization"?

Hm, seems to be broken.

Code:

0:10.48 configure: error: These compiler flags are invalid: -O2 ac_add_options -msse2 ac_add_options -mfpmath=sse
 0:10.48 *** Fix above errors and then restart with\
 0:10.49                "/usr/bin/gmake -f client.mk build"
 0:10.49 /tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/client.mk:361: recipe for target 'configure' failed
 0:10.49 gmake[2]: *** [configure] Error 1
 0:10.49 /tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/client.mk:375: recipe for target '/tmp/build/tmp-palemoon/pmbuild/Makefile' failed
 0:10.49 gmake[1]: *** [/tmp/build/tmp-palemoon/pmbuild/Makefile] Error 2
 0:10.49 client.mk:171: recipe for target 'build' failed
 0:10.49 gmake: *** [build] Error 2
 0:10.53 0 compiler warnings present.
./palemoon.SlackBuild FAILED at line 282

It's building fine with OPTIMIZE=0 though.

khronosschoty 05-04-2017 10:29 PM

Quote:

Originally Posted by montagdude (Post 5706418)
Hm, seems to be broken.

Code:

0:10.48 configure: error: These compiler flags are invalid: -O2 ac_add_options -msse2 ac_add_options -mfpmath=sse
 0:10.48 *** Fix above errors and then restart with\
 0:10.49                "/usr/bin/gmake -f client.mk build"
 0:10.49 /tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/client.mk:361: recipe for target 'configure' failed
 0:10.49 gmake[2]: *** [configure] Error 1
 0:10.49 /tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/client.mk:375: recipe for target '/tmp/build/tmp-palemoon/pmbuild/Makefile' failed
 0:10.49 gmake[1]: *** [/tmp/build/tmp-palemoon/pmbuild/Makefile] Error 2
 0:10.49 client.mk:171: recipe for target 'build' failed
 0:10.49 gmake: *** [build] Error 2
 0:10.53 0 compiler warnings present.
./palemoon.SlackBuild FAILED at line 282

It's building fine with OPTIMIZE=0 though.

Thank you. I am still convinced that building with gcc 4.9.4 in the case of palemoon is the "correct", or at least IMO desired, way to go about this.

montagdude 05-04-2017 11:03 PM

One more data point, since I just built it anyway. Alien Bob's Pale Moon doesn't segfault either when rebuilt here with the default optimization. The SBo version did segfault with equivalent optimization (-Os), but I also built that with ENABLE_DEBUG=yes. It's also a different version of Pale Moon. But I'm a bit burned out on compiling Pale Moon since I've done it 5-10 times in the last two days, so I'm not going to rebuild the SBo version with OPTIMIZE="-Os" and ENABLE_DEBUG=no.


All times are GMT -5. The time now is 12:40 AM.