Skip to main content

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

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


Back to the top