<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">

<p class="details" style="font-style: italic; color: #626168;">
<a href="https://gitlab.com/cbaines">Christopher Baines</a> created an issue: <a href="https://gitlab.com/gnutls/guile/-/issues/29">#29</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">I'm seeing Guile segfault, I think while trying to print an exception that originates from Guile GnuTLS.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>read_from_session_record_port</code> is calling <code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>scm_to_bool</code> with an invalid value. Maybe <code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>scm_is_true</code> should be used instead of <code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>scm_to_bool</code>? I presume there's some underlying problem that would still exist though.</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #3a383f; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; border-radius: .25rem; background-color: inherit; white-space: pre; margin-top: 0; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">#0  iprin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x0, port=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, </span>
<span id="LC2" class="line" lang="plaintext">    pstate=0x7fcf32ba2e08) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:628</span>
<span id="LC3" class="line" lang="plaintext">#1  0x00007fcf3ecc907a in scm_iprin1 (exp=<optimized out>, port=<optimized out>, pstate=<optimized out>)</span>
<span id="LC4" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:561</span>
<span id="LC5" class="line" lang="plaintext">#2  0x00007fcf3ecc94ff in scm_iprlist (hdr=hdr@entry=0x7fcf3ed19af0 "(", </span>
<span id="LC6" class="line" lang="plaintext">    exp=exp@entry=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777d0, tlr=tlr@entry=41, </span>
<span id="LC7" class="line" lang="plaintext">    port=port@entry=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, pstate=pstate@entry=0x7fcf32ba2e08)</span>
<span id="LC8" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:1019</span>
<span id="LC9" class="line" lang="plaintext">#3  0x00007fcf3ecc7f72 in iprin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777d0, </span>
<span id="LC10" class="line" lang="plaintext">    port=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, pstate=0x7fcf32ba2e08)</span>
<span id="LC11" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:653</span>
<span id="LC12" class="line" lang="plaintext">#4  0x00007fcf3ecc907a in scm_iprin1 (exp=<optimized out>, port=<optimized out>, pstate=<optimized out>)</span>
<span id="LC13" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:561</span>
<span id="LC14" class="line" lang="plaintext">#5  0x00007fcf3ecc928c in scm_prin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777d0, port=<optimized out>, </span>
<span id="LC15" class="line" lang="plaintext">    writingp=<optimized out>) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:840</span>
<span id="LC16" class="line" lang="plaintext">#6  0x00007fcf3ecc93a2 in scm_write (obj=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777d0, </span>
<span id="LC17" class="line" lang="plaintext">    port=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcd84fcc3e0)</span>
<span id="LC18" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:1099</span>
<span id="LC19" class="line" lang="plaintext">#7  0x00007fcf3ecf473f in vm_regular_engine (thread=0x7fcf32d4a6c0) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/vm-engine.c:972</span>
<span id="LC20" class="line" lang="plaintext">#8  0x00007fcf3ed02445 in scm_call_n (proc=<optimized out>, argv=<optimized out>, nargs=2)</span>
<span id="LC21" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/vm.c:1616</span>
<span id="LC22" class="line" lang="plaintext">#9  0x00007fcf3ec6b71a in scm_call_2 (proc=<optimized out>, arg1=<optimized out>, arg2=<optimized out>)</span>
<span id="LC23" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/eval.c:503</span>
<span id="LC24" class="line" lang="plaintext">#10 0x00007fcf3ecc8f29 in iprin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcedc18db40, </span>
<span id="LC25" class="line" lang="plaintext">    port=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, pstate=0x7fcf32ba2e08)</span>
<span id="LC26" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:645</span>
<span id="LC27" class="line" lang="plaintext">#11 0x00007fcf3ecc907a in scm_iprin1 (exp=<optimized out>, port=<optimized out>, pstate=<optimized out>)</span>
<span id="LC28" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:561</span>
<span id="LC29" class="line" lang="plaintext">#12 0x00007fcf3ecc94ff in scm_iprlist (hdr=hdr@entry=0x7fcf3ed19af0 "(", </span>
<span id="LC30" class="line" lang="plaintext">    exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc377420, </span>
<span id="LC31" class="line" lang="plaintext">    exp@entry=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc377480, tlr=tlr@entry=41, </span>
<span id="LC32" class="line" lang="plaintext">    port=port@entry=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, pstate=pstate@entry=0x7fcf32ba2e08)</span>
<span id="LC33" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:1019</span>
<span id="LC34" class="line" lang="plaintext">#13 0x00007fcf3ecc7f72 in iprin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc377480, </span>
<span id="LC35" class="line" lang="plaintext">    port=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, pstate=0x7fcf32ba2e08)</span>
<span id="LC36" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:653</span>
<span id="LC37" class="line" lang="plaintext">#14 0x00007fcf3ecc907a in scm_iprin1 (exp=<optimized out>, port=<optimized out>, pstate=<optimized out>)</span>
<span id="LC38" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:561</span>
<span id="LC39" class="line" lang="plaintext">#15 0x00007fcf3ecc928c in scm_prin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc377480, port=<optimized out>, </span>
<span id="LC40" class="line" lang="plaintext">    writingp=<optimized out>) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:840</span>
<span id="LC41" class="line" lang="plaintext">#16 0x00007fcf3ecc93a2 in scm_write (obj=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc377480, </span>
<span id="LC42" class="line" lang="plaintext">    port=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcd84fcc500)</span>
<span id="LC43" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:1099</span>
<span id="LC44" class="line" lang="plaintext">#17 0x00007fcf3ecf473f in vm_regular_engine (thread=0x7fcf32d4a6c0) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/vm-engine.c:972</span>
<span id="LC45" class="line" lang="plaintext">#18 0x00007fcf3ed02445 in scm_call_n (proc=<optimized out>, argv=<optimized out>, nargs=2)</span>
<span id="LC46" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/vm.c:1616</span>
<span id="LC47" class="line" lang="plaintext">--Type <RET> for more, q to quit, c to continue without paging--</span>
<span id="LC48" class="line" lang="plaintext">#19 0x00007fcf3ec6b71a in scm_call_2 (proc=<optimized out>, arg1=<optimized out>, arg2=<optimized out>)</span>
<span id="LC49" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/eval.c:503</span>
<span id="LC50" class="line" lang="plaintext">#20 0x00007fcf3ecc8f29 in iprin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcedc190ea0, </span>
<span id="LC51" class="line" lang="plaintext">    port=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, pstate=0x7fcf32ba2e08)</span>
<span id="LC52" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:645</span>
<span id="LC53" class="line" lang="plaintext">#21 0x00007fcf3ecc907a in scm_iprin1 (exp=<optimized out>, port=<optimized out>, pstate=<optimized out>)</span>
<span id="LC54" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:561</span>
<span id="LC55" class="line" lang="plaintext">#22 0x00007fcf3ecc924d in scm_prin1 (exp=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcedc190ea0, </span>
<span id="LC56" class="line" lang="plaintext">    port=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>, writingp=1)</span>
<span id="LC57" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:840</span>
<span id="LC58" class="line" lang="plaintext">#23 0x00007fcf3ecc93a2 in scm_write (obj=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcedc190ea0, </span>
<span id="LC59" class="line" lang="plaintext">    port=#<port #<port-type custom-port 7fcf3e1b7900> 7fcd84fcc580>) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/print.c:1099</span>
<span id="LC60" class="line" lang="plaintext">#24 0x00007fcf3ecf473f in vm_regular_engine (thread=0x7fcf32d4a6c0) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/vm-engine.c:972</span>
<span id="LC61" class="line" lang="plaintext">#25 0x00007fcf3ed02445 in scm_call_n (proc=<optimized out>, argv=<optimized out>, nargs=5)</span>
<span id="LC62" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/vm.c:1616</span>
<span id="LC63" class="line" lang="plaintext">#26 0x00007fcf3ec6fff9 in scm_apply_0 (proc=#<program 7fcf3e217240>, args=()) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/eval.c:603</span>
<span id="LC64" class="line" lang="plaintext">#27 0x00007fcf3ecf232d in scm_throw (key=wrong-type-arg, args=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3776b0)</span>
<span id="LC65" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/throw.c:262</span>
<span id="LC66" class="line" lang="plaintext">#28 0x00007fcf3ecf2349 in scm_ithrow (key=<optimized out>, args=<optimized out>, no_return=<optimized out>)</span>
<span id="LC67" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/throw.c:457</span>
<span id="LC68" class="line" lang="plaintext">#29 0x00007fcf3ec6cee5 in scm_error_scm (key=key@entry=wrong-type-arg, subr=<optimized out>, message=message@entry="Wrong type: ~S", </span>
<span id="LC69" class="line" lang="plaintext">    args=args@entry=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777d0, </span>
<span id="LC70" class="line" lang="plaintext">    data=data@entry=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777e0)</span>
<span id="LC71" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/error.c:90</span>
<span id="LC72" class="line" lang="plaintext">#30 0x00007fcf3ec6cf40 in scm_error (key=wrong-type-arg, subr=subr@entry=0x0, message=<optimized out>, </span>
<span id="LC73" class="line" lang="plaintext">    args=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777d0, </span>
<span id="LC74" class="line" lang="plaintext">    rest=rest@entry=<error reading variable: ERROR: Cannot access memory at address 0x0>0x7fcefc3777e0)</span>
<span id="LC75" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/error.c:62</span>
<span id="LC76" class="line" lang="plaintext">#31 0x00007fcf3ec6e0ca in scm_wrong_type_arg (subr=0x0, pos=0, bad_value=<error reading variable: ERROR: Cannot access memory at address 0x0>0x0)</span>
<span id="LC77" class="line" lang="plaintext">    at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/error.c:247</span>
<span id="LC78" class="line" lang="plaintext">#32 0x00007fcf3ec64620 in scm_to_bool (x=<optimized out>) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/boolean.c:100</span>
<span id="LC79" class="line" lang="plaintext">#33 scm_to_bool (x=<optimized out>) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/boolean.c:93</span>
<span id="LC80" class="line" lang="plaintext">#34 0x00007fcf3011ab8a in read_from_session_record_port (port=<optimized out>, dst=<optimized out>, start=<optimized out>, count=1024) at core.c:1124</span>
<span id="LC81" class="line" lang="plaintext">#35 0x00007fcf3ecbfe0c in trampoline_to_c_read (port=#<port #<port-type gnutls-session-port 7fcf3e1b7b40> 7fcefc4e1e00>, dst="#<vu8vector>" = {...}, start=0, </span>
<span id="LC82" class="line" lang="plaintext">    count=1024) at /tmp/guix-build-guile-next-3.0.10-0.5d3f561.drv-0/source/libguile/ports.c:266</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
</div>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/guile/-/issues/29">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/791b80af76475c08ad62471950a25108/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/guile/-/issues/29"}}</script>


</p>
</div>
</body>
</html>