Re: Basic question about malloc

2015-04-22 Thread Ludovic Brenta
mudongliang wrote: But the result has no feature about a ,b ,c! Can someone tell me what's wrong with me? My GCC version is gcc (Debian 4.9.2-10) 4.9.2 mudongliang malloc is not part of gcc, it is part of glibc. I think that recent versions of glibc deliberately return random addresses, so the

Basic question about malloc

2015-04-22 Thread mudongliang
Hi, I'm looking for that whether the object allocated by malloc is the multiple of certain bytes! Or how does the malloc allocate dynamic memory ?? I does an experiment in my computer! #include #include #define NUM 33 int main(int argc,const char *argv[]) { char *a, *b, *c; a = mal

Bug#783127: [g++-5] Qt apps compile with g++-5 crashes

2015-04-22 Thread BogDan Vatra
Package: g++-5 Version: 5.1~rc1-1 Severity: important --- Please enter the report below this line. --- Large Qt apps (e.g. QtCreator) that are compiled with g++-5 crashes if Qt was compiled with g++-4.9. --- System information. --- Architecture: amd64 Kernel: Linux 3.16.0-4-amd64 Debian R