Skip to contentSkip to conversation

Segmentation fault

DISCUSSION Li Guangdong 1 participant 1 message Aug 10, 2000

lore
Share & tools
lore
#0 lore raw

Hi All,

When we run a GUI program on Hard Hat Linux(CDK1.0) on RPX-lite, it always crashes with the message "Segmentation fault" or "Aborted" on the console after manipulating the GUI windows for some time. It seems that something wrong with the malloc() and free() functions.

And we found that, if malloc() (or __libc_malloc) is called continuously, it seems OK. But if malloc() is called after freeing some previously allocated blocks using free() (or __libc_free), we always get the message "Segmentation fault".

By the way, this GUI program is built with g++ and "-static" option.

Could you please give your advice on this problem?

Thanks,
Kant

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/