40ants / 40ants/cl-flamegraph

error 'Value of 'NIL in ... ' in make-graph

Ouverte
#7 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Common Lisp
Étoiles
81
Forks
9
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

When I run just the simple example on the readme page, I get an error and backtrace like this:
```
Value of 'NIL in
(THE (OR STRING SB-DI::COMPILED-DEBUG-FUN) (PROGN 'NIL))
is
NIL,
not a
(OR (VECTOR CHARACTER) BASE-STRING SB-DI::COMPILED-DEBUG-FUN).
[Condition of type SIMPLE-TYPE-ERROR]
...
0: (SB-C::%COMPILE-TIME-TYPE-ERROR (NIL) (OR (VECTOR CHARACTER) BASE-STRING SB-DI::COMPILED-DEBUG-FUN) # ((QUOTE NIL)) "(THE (OR STRING SB-DI::COMPILED-DEBUG-FUN) (PROGN 'NIL))" NIL)
1: ((FLET SB-PCL::INITIALIZE-IT) # #)
2: ((LAMBDA ()))
3: (FLAMEGRAPH::MAKE-GRAPH)
...
```
Environment: SBCL 2.0.11 on MacOS

To reproduce:
```
(ql:quickload :flamegraph)
(defun foo () (sleep 0.01))
(defun bar () (sleep 0.05))
(defun blah () (loop repeat 1000 do (foo) (bar)))
(flamegraph:save-flame-graph ("/tmp/foo.stack") (blah))
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.