M
Michael McGarry
Hi,
I have some code that never returns from a call to malloc(), does
anyone have any ideas? There is plenty of free memory on the system.
This is running in Linux kernel 2.4.20. The code has been run on
several different Linux machines. This same code runs without any
problems on Mac OS X.
Here is the GDB log:
(gdb) step
1160 hungarian_schedule =
malloc(SCHEDULER_NUM_SLOT*simParams.NUM_LAMBDAS*sizeof(int));
(gdb) print 180*simParams.NUM_LAMBDAS*sizeof(int)
$7 = 1440
(gdb) step
Program received signal SIGINT, Interrupt.
0x42074d44 in malloc_consolidate () from /lib/tls/libc.so.6
(gdb)
I hit CTRL-C to stop the code and that is when it displays that
interrupted in malloc_consolidate().
Any help would be greatly appreciated.
Thanks,
Michael
I have some code that never returns from a call to malloc(), does
anyone have any ideas? There is plenty of free memory on the system.
This is running in Linux kernel 2.4.20. The code has been run on
several different Linux machines. This same code runs without any
problems on Mac OS X.
Here is the GDB log:
(gdb) step
1160 hungarian_schedule =
malloc(SCHEDULER_NUM_SLOT*simParams.NUM_LAMBDAS*sizeof(int));
(gdb) print 180*simParams.NUM_LAMBDAS*sizeof(int)
$7 = 1440
(gdb) step
Program received signal SIGINT, Interrupt.
0x42074d44 in malloc_consolidate () from /lib/tls/libc.so.6
(gdb)
I hit CTRL-C to stop the code and that is when it displays that
interrupted in malloc_consolidate().
Any help would be greatly appreciated.
Thanks,
Michael