# Was there a bug embedding srcloc's in compiled code in BC 8.5 (that was resolved in roughly 8.9)?

**URL:** <https://racket.discourse.group/t/was-there-a-bug-embedding-srclocs-in-compiled-code-in-bc-8-5-that-was-resolved-in-roughly-8-9/2647>\
**Category:** Questions & Answers\
**Tags:** macro, documentation\
**Created:** [January 5, 2024, 6:53pm UTC](https://racket.discourse.group/t/was-there-a-bug-embedding-srclocs-in-compiled-code-in-bc-8-5-that-was-resolved-in-roughly-8-9/2647 "2024-01-05T18:53:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benknoble](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/benknoble/32/16_2.png) [@benknoble](https://racket.discourse.group/u/benknoble)\
**Post date:** [January 5, 2024, 6:53pm UTC](https://racket.discourse.group/t/was-there-a-bug-embedding-srclocs-in-compiled-code-in-bc-8-5-that-was-resolved-in-roughly-8-9/2647/1 "2024-01-05T18:53:42Z")

</div>

Working on some Qi things, we noticed the following error in BC 8.5: [Fix marshalling issue · drym-org/qi@c09b926 · GitHub](https://github.com/drym-org/qi/actions/runs/7425499950/job/20207264862)

```scheme
raco setup: error: during making for <pkgs>/qi-test/tests
raco setup: write: cannot marshal value that is embedded in compiled code
raco setup: value: (srcloc #<path:/home/runner/work/qi/qi/qi-lib/flow/extended/forms.rkt> 61 2 1500 20)
raco setup: compiling: <pkgs>/qi-test/tests/compiler/rules.rkt
raco setup: error: during making for <pkgs>/qi-test/tests/compiler/rules
raco setup: write: cannot marshal value that is embedded in compiled code
raco setup: value: (srcloc #<path:/home/runner/work/qi/qi/qi-lib/flow/core/normalize.rkt> 74 7 2297 22)

```

The docs mention that 7.0 allowed this embedding ([1.4&nbsp;The Printer](https://docs.racket-lang.org/reference/printing.html#%28part._print-compiled%29)); indeed, I found the commit to be [b13f723ac6 (serialize `srcloc`s in bytecode; change expander to keep `srcloc`s, 2018-06-26)](https://github.com/racket/racket/commit/b13f723ac6c2a7b7e9bdbab433d0ff6f6083cf95).

I haven't searched for a relevant bug or fix in the commit logs or issues, though.

* * *

I ask because, if there is such a bug, it might be worth updating the documentation note to mention that BC versions 8.5–8.8 don't accept this.
