samth/test-bugs — Issue #113: profiler error
Author: racket-bug-submit
Created: 2012-03-08 03:36:04+00:00
State: open
Labels: anon-submit, gnats-migrated

###### Originally submitted by Dave Herman on: Thu Apr 03 16:50:00 -0500 2003

(I can't seem to get the form from the Help Desk to go through, so I'm sending this via bugs.plt-scheme.)

When running programs with the profiler, particularly with SchemeUnit, the profiler seems to be finding points of the program that have not been set up in the profiler table, and it's raising an error: "hash-table-get: no value found for key: profile-pointXXX" (where XXX is some number).

I first ran across this bug running a long program at work with the profiler on, *not* using SchemeUnit. It crashed partway through the program with a similar error. But since I can't send you proprietary code from work (sorry about that), I can at least reproduce the problem (if it is the same problem) using SchemeUnit.

##### Steps to Reproduce:

Install SchemeUnit (http://schematics.sourceforge.net). Make a file with the following contents:

```
;; ------------------------------------------
(require (lib "test.ss" "schemeunit")
(lib "text-ui.ss" "schemeunit"))

(define my-tests
(make-test-suite
"Tests for something.scm"

(make-test-case
"Test that succeeds"
(assert = 2 2))

(make-test-case
"I fail.. heh-heh"
(assert = 2 3))

)
)

(test/text-ui my-tests)
;; ------------------------------------------

```
Turn on profiling in the current language. Then click the "Execute" button. I get an error saying "hash-table-get: no value found for key: profile-point501".

Details: I'm using v203 in Windows 2000 Professional. My language level is "Textual (MzScheme, includes R5RS" with the profiling turned on.

Let me know if this doesn't give you enough info and I'll see if I can help figure out how to reproduce it.

##### Release:

203

##### Environment:

windows-2000

###### This bug was converted from Gnats bug [6191](http://bugs.racket-lang.org/old/6191).

[anon-submit dherman AT ccs.neu.edu]