[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ncurses function in class causes malloc() syscall to loop infinitly
From: |
Tam |
Subject: |
ncurses function in class causes malloc() syscall to loop infinitly |
Date: |
Sun, 30 Mar 2003 13:59:07 +0200 |
Hi there
The Syscall malloc() loops infinitly when it should allocate lets say.. more
than 512b of memory (on my system) but allocating only a few bytes works well.
It also ran on a similar system to mine using the libncurses.so.4 - so it's
either an error in gcc or in libcurses - I don't know for sure...
For further Infos and strange things have a look at the comments in the short
c++ source code.
My System is:
Debian sarge on i686 AMD Athlon(tm) XP 2000+
used libs:
libform.so.5 => /usr/lib/libform.so.5 (0x4001c000)
libncurses.so.5 => /lib/libncurses.so.5 (0x40028000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40067000)
libm.so.6 => /lib/libm.so.6 (0x400b0000)
libc.so.6 => /lib/libc.so.6 (0x400d1000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Steps to reproduce:
g++ -lform -lcurses -o ncursesInClass ncursesInClass.cpp
and run the program
please have a look at it. =)
Tam
ncursesInClass.cpp
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ncurses function in class causes malloc() syscall to loop infinitly,
Tam <=