Community
Participate
Working Groups
Build Identifier: M20110210-1200 After running for a while and opening many experiments and traces, the trace reading library crashes with the following error: ERROR:tracefile.c:1429:map_block: assertion failed: (block_num < tf->num_blocks) Reproducible: Always Steps to Reproduce: 1. I used the following code to load a trace: testSomething() { ITmfTrace[] traces = new ITmfTrace[1]; traces[0] = new LTTngTrace(traceFile.getPath()); fExperiment = new TmfExperiment<LttngEvent>(LttngEvent.class, "Headless", traces); /* do stuff */ fExperiment.dispose(); } 2. Call testSomething() many times. 3. Eclipse crashes after hitting the file descriptor limit (1024 by default), as the descriptor are never released.
Created attachment 191708 [details] Proposed fix Here is a small change that fixes the above problem.
Patch committed. Thanks Alexandre.
Delivered with 0.8