Closed Bug 141187 Opened 23 years ago Closed 23 years ago

call to Date.getTime() causes hang on Linux

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 139965

People

(Reporter: pbyrne, Assigned: rogerl)

References

()

Details

(Keywords: hang)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417 BuildID: 2002041711 When I visit the site http://www.borland.com, the browser hangs after a few seconds. Running 'strace' shows the following repeating syscall: gettimeofday({1020174920, 870828}, NULL) = 0 gettimeofday({1020174920, 874214}, NULL) = 0 gettimeofday({1020174920, 874580}, NULL) = 0 ... I think the following code is to blame: function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=372');"); } Reproducible: Always Steps to Reproduce: 1. Open www.borland.com 2. 3.
Seeing this too on linux 2002042910 When I turn of 'open unrequested windows' in prefs / advanced / script & windows the page loads fine. So the call to getTime doesn't seem te be the problem, but the opening of the window.
Turning off 'open unrequested windows' isn't working for me. Only turning off Javascript helps. Are you seeing lots of calls to gettimeofday() like I am when you run mozilla with strace?
I am unable to reproduce this with my own Linux Mozilla trunk build dated 2002042807. Reassigning to Browser-General and cc'ing self until we can get further information. I doubt that Date.getTime() is the cause of this. To see this, just try this javascript: URL in Mozilla: javascript: day=new Date();id=day.getTime();alert('day=' + day +'\nid = ' + id); If this hangs the browser, then it's an engine bug; please reassign to JavaScript Engine in that case. In the meantime: 1. Pascal, Michiel: what window manager are you using on Linux? 2. What version of Linux do you have? 3. If you know how to use Tools > Web Development > JavaScript Debugger, what happens if you step through the Borland site? Do you see anything getting called recursively?
Assignee: rogerl → Matti
Component: JavaScript Engine → Browser-General
QA Contact: pschwartau → imajes-qa
hang at borland.com also reported in bug 139965
Hmm, I can not anymore reproduce this.... Tried everything. But when I turn on 'js strict warnings' I see bug 139965. Ans I saw that running strace on a fine runnig mozilla also shows calls to gettimeofday. So that seems not te be the problem.
If it helps here are my system specs: Linux: SuSE Linux 7.3 Kernel: 2.4.10-4GB libc: GLIBC 2.2.4 KDE: 2.2.1 Pentium III 1000MHz 512 Mb RAM
testing with a linux CVS build, 2d old: no hang, no crash - nothing unusual. WFM
-> JS Engine WFM, Linux trunk 2002060811 Reporter, does the hang still happen in the latest Mozilla trunk build?
The Borland web site has been changed and Mozilla no longer hangs. Since I didn't make a backup of the page, I can't verify any fix. Did anyone else backup this web page?
really reassigning
Assignee: Matti → rogerl
Component: Browser-General → JavaScript Engine
QA Contact: imajes-qa → pschwartau
This is a duplicate of bug 139965, which seems to contain an archived URL to the Borland site. This bug is mis-titled as "call to Date.getTime() causes hang on Linux". As far as I know, this isn't the problem; see Comment #3 above. Pascal: if you paste this in the URL bar and hit "Enter", you never hang, do you? javascript: day=new Date();id=day.getTime();alert('day=' + day +'\nid = ' + id); I will mark this as a duplicate of bug 139965; Pascal as the reporter of this bug will be cc'ed on bug 139965 to follow its progress. Of course, if that javascript:URL DOES cause a hang on Linux, please reopen this bug; thanks - *** This bug has been marked as a duplicate of 139965 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Marking Verified Duplicate -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.