[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Konqueror JavaScript Debug Console avaible?
From:       Sebastian Stein <stein () openwebschool ! de>
Date:       2001-09-04 19:55:34
[Download RAW message or body]

Am Dienstag, 4. September 2001 17:39 schrieb Peter Kelly:
> > I'm not a konqueror developer nor am I a javascript expert, but what
> > puzzles me, is why are you using GetInt(9);? I have no idea what makes
> > other browsers work, but when I removed those GetInt()'s (i.e. assigned
> > the 9's only) it worked perfectly.

Well, it is easier to change the unit. The thing is, we want that the user is 
able to change the lessons very easy by himself. So he could create a new 
lesson for his specific task without changing the whole code.

> The problem is at least partially to do with the ++ prefix operator
> (++nGood, ++nBad etc). Turns out that there's a bug in our javascript
> parser which gives an error when encountering this construct and does
> not execute the script at all.
>
> This is now fixed in CVS, however to make work with 2.2 a workaround
> would be to use nGood++ and nBad++ instead.

Yes, this works fine now.

But I've a strange bug while using the script. I can only reproduce it on my 
local system (Slackware, 2.4.6, Apache, KDE 2.2, glibc 2.2).

Konqueror crashes when I solve about 1 or 2 tasks correctly. After each 
fitting solution a small alert window is shown to the user using some 
JavaScript code. If I press return to close this window, the window appears 
again. Then Konqueror crashes with the following problems listed below. I 
think the bug might be reproduceable on a maschine with a very fast internet 
connection (this means: reloading the page needs no time...).

Konqueror crashes with SIGSEGV (signal 11) and the following debug message:

[New Thread 1024 (LWP 191)]
0x40d66689 in __wait4 () from /lib/libc.so.6
#0  0x40d66689 in __wait4 () from /lib/libc.so.6
#1  0x40dcfa58 in __DTOR_END__ () from /lib/libc.so.6
#2  0x405ac045 in KCrash::defaultCrashHandler () at eval.c:88
#3  0x40f02eb4 in pthread_sighandler (signo=11, ctx={gs = 0, __gsh = 0, 
      fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0,
      edi = 137968688, esi = 3221219924, ebp = 3221219804, esp = 3221219672, 
      ebx = 1095501884, edx = 137838472, ecx = 0, eax = 0, trapno = 14,
      err = 4, eip = 1094004871, cs = 35, __csh = 0, eflags = 66179, 
      esp_at_signal = 3221219672, ss = 43, __ssh = 0, fpstate = 0xbfffe6d8, 
      oldmask = 2147483648, cr2 = 168}) at signals.c:97
#4  <signal handler called>
#5  0x41353087 in KHTMLView::addFormCompletionItem ()
   from /opt/kde/lib/libkhtml.so.3
#6  0x413be5e3 in DOM::HTMLFormElementImpl::submit ()
   from /opt/kde/lib/libkhtml.so.3
#7  0x413be4d8 in DOM::HTMLFormElementImpl::prepareSubmit ()
   from /opt/kde/lib/libkhtml.so.3
#8  0x413f0319 in khtml::RenderLineEdit::slotReturnPressed ()
   from /opt/kde/lib/libkhtml.so.3
#9  0x408088ba in QObject::activate_signal () from /usr/lib/libqt.so.2
#10 0x4091e009 in QLineEdit::returnPressed () from /usr/lib/libqt.so.2
#11 0x40883aca in QLineEdit::keyPressEvent () from /usr/lib/libqt.so.2
#12 0x40337fc5 in KLineEdit::keyPressEvent () at eval.c:88
#13 0x4084d74f in QWidget::event () from /usr/lib/libqt.so.2
#14 0x4088536e in QLineEdit::event () from /usr/lib/libqt.so.2
#15 0x413f0103 in khtml::LineEditWidget::event ()
   from /opt/kde/lib/libkhtml.so.3
#16 0x407b88a6 in QApplication::notify () from /usr/lib/libqt.so.2
#17 0x405137b4 in KApplication::notify () at eval.c:88
#18 0x4078b69a in QETWidget::translateKeyEvent () from /usr/lib/libqt.so.2
#19 0x40787761 in QApplication::x11ProcessEvent () from /usr/lib/libqt.so.2
#20 0x4078694a in QApplication::processNextEvent () from /usr/lib/libqt.so.2
#21 0x407ba5f4 in QApplication::enter_loop () from /usr/lib/libqt.so.2
#22 0x407868c7 in QApplication::exec () from /usr/lib/libqt.so.2
#23 0x41053226 in main () from /opt/kde/lib/konqueror.so
#24 0x804ccd6 in launch () at eval.c:88
#25 0x804d992 in handle_launcher_request () at eval.c:88
#26 0x804decb in handle_requests () at eval.c:88
#27 0x804ef5d in main () at eval.c:88
#28 0x40ce12eb in __libc_start_main (main=0x804e958 <main>, argc=2,
    ubp_av=0xbffff9a4, init=0x804a670 <_init>, fini=0x804f6d8 <_fini>,
    rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xbffff99c)
    at ../sysdeps/generic/libc-start.c:129

By,

Sebastian Stein
-- 
http://www.openwebschool.de/
Kostenlose Unterrichtseinheiten aus dem Internet (braucht JavaScript)
Faecher: Deutsch (De), Erdkunde (Ek), Englisch (En), Franzoesich (Fr),
Latein (La), Mathematik (Ma), Sachkunde (Sa), Schwimmen (Sw), Sport (Sp)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic