[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Realloc is blocking execution



On Wed, 14 Oct 2009, Mats Erik Andersson wrote:

I inserted two printouts, immediately surrounding realloc():

       fprintf(stderr, "Will enter realloc().\n");

	ptr = realloc(ptrold, 1024)

	fprintf(stderr, "Has exited realloc().\n");

Only the first statement gets printed.

Please try to attach to the hung gcc process with gdb and get a backtrace.

top should show you the kernel function, in which the process is sleeping (WCHAN field).

The "Alt-SysRq-l" Magic SysRq combination should dump a kernel backtrace of all currently executing tasks into the syslog (see [0] and [1]).

These could help at least in filing a bug report.

Cheers,
lacos

[0] http://lxr.linux.no/#linux+v2.6.31/Documentation/sysrq.txt
[1] http://en.wikipedia.org/wiki/Magic_SysRq_key#Magic_commands


Reply to: