I'm seeing similar deadlocks of firefox with 100% cpu usage; this is
happening a lot. I have installed firefox-dbg and started firefox with
"-g" under gdb. When I hit Ctrl-C during a deadlock I get this
backtrace:

(gdb) where
#0  0x00007fffe954c546 in js::irregexp::InterpretCode<unsigned 
char>(JSContext*, unsigned char const*, unsigned char const*, unsigned long, 
unsigned long, js::MatchPairs*, unsigned long*) (cx=cx@entry=0x7fffe1b8d000, 
byteCode=byteCode@entry=0x7fff73838000 "\002", chars=0x7fff7bd12000 
";##[{\"type\":\"http://schema|org/WebPage\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/NewsArticle\""...,
 current=2274, 
    current@entry=0, length=length@entry=4327, matches=matches@entry=0x0, 
endIndex=0x7fffffff4fc0)
    at 
/build/firefox-iUv61F/firefox-53.0.2+build1/js/src/irregexp/RegExpInterpreter.cpp:142
#1  0x00007fffe93751f5 in js::RegExpShared::execute(JSContext*, 
JS::Handle<JSLinearString*>, unsigned long, js::MatchPairs*, unsigned long*) 
(this=this@entry=0x7fff74bc8900, cx=cx@entry=0x7fffe1b8d000, 
input=input@entry=..., start=start@entry=0, matches=matches@entry=0x0, 
endIndex=endIndex@entry=0x7fffffff4fc0) at 
/build/firefox-iUv61F/firefox-53.0.2+build1/js/src/vm/RegExpObject.cpp:1175
#2  0x00007fffe95b7a7c in ExecuteRegExpImpl (endIndex=0x7fffffff4fc0, 
matches=0x0, searchIndex=<optimized out>, input=..., re=..., 
res=0x7fffd142ab30, cx=0x7fffe1b8d000) at 
/build/firefox-iUv61F/firefox-53.0.2+build1/js/src/builtin/RegExp.cpp:127
#3  0x00007fffe95b7a7c in ExecuteRegExp (staticsUpdate=js::UpdateRegExpStatics, 
endIndex=0x7fffffff4fc0, matches=0x0, lastIndex=<optimized out>, string=..., 
regexp=..., cx=0x7fffe1b8d000) at 
/build/firefox-iUv61F/firefox-53.0.2+build1/js/src/builtin/RegExp.cpp:971
#4  0x00007fffe95b7a7c in js::RegExpTesterRaw(JSContext*, 
JS::Handle<JSObject*>, JS::Handle<JSString*>, int, int*) (cx=0x7fffe1b8d000, 
regexp=..., input=..., lastIndex=<optimized out>, endIndex=0x7fffffff5094)
    at 
/build/firefox-iUv61F/firefox-53.0.2+build1/js/src/builtin/RegExp.cpp:1197
#5  0x000032f931aa347a in  ()
#6  0x00007fffd9600560 in  ()
#7  0x00007fffffff5094 in  ()
#8  0x00007fffd1508680 in  ()
#9  0x00007fffead51ae0 in js::jit::RegExpTesterRawInfo () at 
/usr/lib/firefox/libxul.so
#10 0x00007fffd96718e0 in  ()
#11 0x000032f931da5ab0 in  ()
#12 0x0000000000003820 in  ()
#13 0x00007fffd1508680 in  ()
#14 0x00007fff6df9fc40 in  ()
#15 0x0000000000000000 in  ()

My guess is that firefox is stuck executing a pretty weird regular
expression:

(gdb) set print elements 0
(gdb) print chars
$5 = (const unsigned char *) 0x7fff7bd12000 
";##[{\"type\":\"http://schema|org/WebPage\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/NewsArticle\",\"properties\":{}},{\"type\":\"https://schema|org/Organization\",\"properties\":{}},{\"type\":\"http://schema|org/ImageObject\",\"properties\":{}},{\"type\":\"http://schema|org/ImageObject\",\"properties\":{}},{\"type\":\"http://schema|org/ImageObject\",\"properties\":{}},{\"type\":\"http://schema|org/ImageObject\",\"properties\":{}},{\"type\":\"http://schema|org/ImageObject\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\"
 
,\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\
 
"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"pr
 
operties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"prop
 
erties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://schema|org/Comment\",\"properties\":{}},{\"type\":\"http://schema|org/Person\",\"properties\":{}},{\"type\":\"http://data-vocabulary|org/Breadcrumb\",\"properties\":{}},{\"type\":\"http://data-vocabulary|org/Breadcrumb\",\"properties\":{}},{\"type\":\"http://data-vocabulary|org/Breadcrumb\",\"properties\":{}}]"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1692298

Title:
   firefox hangs using 100% cpu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1692298/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to