Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Crashing eclipse with file scrolling operation...

It seems it is not a problem of Eclipse CDT. It may be a problem of Eclipse Platform or Java runtime of your version, however I think it is a problem with your environment. I think your libpangocairo library was not built completely (not all functions were added to it). If you use a distro that builds its packages from sources (like gentoo) you should rebuild this library (maybe with another set of options). If it is something like Ubuntu... it looks very strange, it should just work :) In any case you should look in that direction or ask in another mailing list.

P.S. I tried to open a file with ^G symbol and it was opened (and scrolled to the line with "^G") properly (Ubuntu 10.04, Eclipse 3.7.1, CDT 8).

Anton.

-------- Original message --------
I have a code that seem to be crashing my eclipse all together! As soon as I scroll to the line 1031 (from my original file), moving to the next line crashes the Eclipse. Now there is a strange character that VI displays as "^G", while gedit displays some weird looking symbol instead but it is on the line 1033 (again from the original code). Here is part of that file:
#if (BLD_WIN_LIKE && !WINCE) || VXWORKS
static char *getpass(char *prompt)
{
    static char password[MPR_MAX_STRING];
    int     c, i;

    fputs(prompt, stderr);
    for (i = 0; i < (int) sizeof(password) - 1; i++) {
#if VXWORKS
        c = getchar();
#else
        c = _getch();
#endif
        if (c == '\r' || c == EOF) {
            break;
        }
        if ((c == '\b' || c == 127) && i > 0) {
            password[--i] = '\0';
            fputs("\b \b", stderr);
            i--;
        } else if (c == 26) {           /* Control Z */
            c = EOF;
            break;
        } else if (c == 3) {            /* Control C */
            fputs("^C\n", stderr);
            exit(255);
        } else if (!iscntrl(c) && (i < (int) sizeof(password) - 1)) {
            password[i] = c;
            fputc('*', stderr);
        } else {                         << line 1032 where Eclipse crashes when gets this far
            fputc('^G', stderr);      << line 1033 with that weird character between the single quotes
            i--;
        }
    }
    if (c == EOF) {
        return "";
    }
    fputc('\n', stderr);
    password[i] = '\0';
    return password;
}

#endif /* WIN */

I could send you the whole file if someone wants to try it as well. The only error I get on the console is this:
/home/fjeleskovic/eclipse/eclipse: symbol lookup error: /usr/lib/libpangocairo-1.0.so.0: undefined symbol: cairo_scaled_font_get_font_options

Any help here?

Thanks!

Fedja
ps:
Eclipse SDK
Version: 3.8.0
Build id: I20110803-1800

Eclipse C/C++ Development Tools
Version: 8.0.0.201106081058
Build id: 201106081058

_______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top