Re: Sites in firefox stop loading with "out of memory" in console

2017-04-19 Thread George
On Wed, 19 Apr 2017 00:06:10 -0300
Daniel Bolgheroni  wrote:

> Ultimately some sites opened with Firefox 52 stop loading with "out of
> memory" in console.  Two ofenders are https://app.wire.com and
> https://www.protonmail.com/login, and both seem related to asm.js.
> 
> Note that Firefox doesn't crash, but the sites beeing loaded just stop
> being loaded, and the F12 console notifies the error (console messages
> below). This occurred also with the previous 51 version but not with
> firefox-esr 45. Chrome works OK.
> 

Hi Daniel,

This is most probably a JavaScript issue. Try disabling JavaScript,
PrefBar add-on, and checking whether you get the out-of-memory messages
if it is the case I am not sure what you or OpenBSD can do about it as
it is a program served by the site. Try blocking or not downloading the
asm.js but I'd venture a guess it will be of no use to you then then.

Web NO-point-Oh what can I say ;)

Good luck!
George



Sites in firefox stop loading with "out of memory" in console

2017-04-18 Thread Daniel Bolgheroni
Ultimately some sites opened with Firefox 52 stop loading with "out of
memory" in console.  Two ofenders are https://app.wire.com and
https://www.protonmail.com/login, and both seem related to asm.js.

Note that Firefox doesn't crash, but the sites beeing loaded just stop
being loaded, and the F12 console notifies the error (console messages
below). This occurred also with the previous 51 version but not with
firefox-esr 45. Chrome works OK.

I already tweaked /etc/login.conf and the relevant part is:

staff:\
:datasize-cur=4096M:\
:datasize-max=infinity:\
:stacksize-cur=32M:\
:maxproc-max=512:\
:maxproc-cur=256:\
:ignorenologin:\
:requirehome@:\
:tc=default:

I tried to ktrace the process opening the ProtonMail login site. Two
"out of memory" messages in console corresponding to two "mmap -1 errno
12 Cannot allocate memory".

$ kdump -f ktrace.out | fgrep -C25 memory
 24760 firefox  CALL  
__thrsleep(0x1670c8e82e38,CLOCK_REALTIME,0,0x1670f79ede80,0x1670c8e82f04)
 24760 firefox  RET   __thrsleep 0
 24760 firefox  CALL  clock_gettime(CLOCK_MONOTONIC,0x7f7e44d8)
 24760 firefox  STRU  struct timespec { 44565.727442111 }
 24760 firefox  RET   clock_gettime 0
 24760 firefox  CALL  mprotect(0x298015817000,0x1000,0x3)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x298015817000,0x1000,0x5)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24673942310912/0x1670d9911000
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24673866743808/0x1670d510
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24676063653888/0x167158023000
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24674684030976/0x167105c6d000
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24674885947392/0x167111cfd000
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24676806189056/0x167184446000
 24760 firefox  CALL  __thrwakeup(0x16716c7eba38,1)
 24760 firefox  RET   __thrwakeup 0
 24760 firefox  RET   __thrsleep 0
 24760 firefox  CALL  
mmap(0,0x180011000,0,0x1002,-1,0)
 24760 firefox  RET   mmap -1 errno 12 Cannot allocate memory
 24760 firefox  CALL  gettimeofday(0x7f7e4568,0)
 24760 firefox  STRU  struct timeval { 1492564136<"Apr 18 22:08:56 
2017">.731298 }
 24760 firefox  RET   gettimeofday 0
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24675854073856/0x16714b844000
 24760 firefox  CALL  clock_gettime(CLOCK_MONOTONIC,0x7f7ea918)
 24760 firefox  STRU  struct timespec { 44565.728584189 }
 24760 firefox  RET   clock_gettime 0
 24760 firefox  CALL  gettimeofday(0x7f7ea910,0)
 24760 firefox  STRU  struct timeval { 1492564136<"Apr 18 22:08:56 
2017">.731404 }
 24760 firefox  RET   gettimeofday 0
 24760 firefox  CALL  gettimeofday(0x7f7ea6b8,0)
 24760 firefox  STRU  struct timeval { 1492564136<"Apr 18 22:08:56 
2017">.731623 }
 24760 firefox  RET   gettimeofday 0
 24760 firefox  CALL  gettimeofday(0x7f7eabd0,0)
 24760 firefox  STRU  struct timeval { 1492564136<"Apr 18 22:08:56 
2017">.731640 }
 24760 firefox  RET   gettimeofday 0
 24760 firefox  CALL  clock_gettime(CLOCK_MONOTONIC,0x7f7eac68)
 24760 firefox  STRU  struct timespec { 44565.728985299 }
 24760 firefox  RET   clock_gettime 0
 24760 firefox  CALL  gettimeofday(0x7f7eac60,0)
 24760 firefox  STRU  struct timeval { 1492564136<"Apr 18 22:08:56 
2017">.731808 }
 24760 firefox  CALL  
mmap(0,0x8000,0x3,0x1002,-1,0)
 24760 firefox  RET   gettimeofday 0
 24760 firefox  RET   mmap 24673649692672/0x1670c8201000
--
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x5)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  
mmap(0,0x11000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24673836089344/0x1670d33c4000
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x3)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x5)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x3)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x5)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x3)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x5)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x3)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  mprotect(0x2980158a,0x1000,0x5)
 24760 firefox  RET   mprotect 0
 24760 firefox  CALL  
mmap(0,0x11000,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24674633240576/0x167102bfd000
 24760 firefox  CALL  
mmap(0,0x40,0x3,0x1002,-1,0)
 24760 firefox  RET   mmap 24677847662592/0x1671c258
 24760 firefox  CALL  
mmap(0,0x180011000,0,0x1002,-1,0)
 24760 firefox  RET   mmap -1 errno 12 Cannot allocate memory
 2