unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Nala Ginrut <nalaginrut@gmail.com>
To: Guile User <guile-user@gnu.org>
Cc: Linas Vepstas <linasvepstas@gmail.com>
Subject: [guile-dbi] Check finalized-smob properly
Date: Wed, 29 Jun 2022 03:36:32 +0800	[thread overview]
Message-ID: <CAPjoZofY2E3yFjRa-euC=h3CiKR16tPkL=i-3=8TCGbJhmx0Lg@mail.gmail.com> (raw)

Hi folks!

*The guile-dbi community intended to discuss issues in guile-user mailing
list, so I just put it here.*

I encountered an error:
----------------------------cut------------------------------
In procedure dbi-close: Wrong type argument in position 1: #<finalized smob
7f54416b8d30>
-----------------------------end----------------------------

My opinion is that the dbi-close doesn't check finalized-smob properly, it
didn't consider it at all.

------------------------code-----------------------------
#define DBI_SMOB_P(obj) ((SCM_NIMP(obj)) &&
(SCM_TYP16(obj)==g_db_handle_tag))
-------------------------end------------------------------

On the other hand, I'm not sure why the SMOB was finalized before dbi-close.

Anyway, my idea to patch dbi-close is to check if it's already finalized,
if yes then just return. However, I didn't find the predicate to check
finalized-smob.

Comments?

Best regards.


                 reply	other threads:[~2022-06-28 19:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPjoZofY2E3yFjRa-euC=h3CiKR16tPkL=i-3=8TCGbJhmx0Lg@mail.gmail.com' \
    --to=nalaginrut@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=linasvepstas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).