Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Tomasz Zielonka <zielony@cs.net.pl>
To: Gerd Stolpmann <info@gerd-stolpmann.de>
Cc: CAML list <caml-list@inria.fr>
Subject: Re: [Caml-list] Problem with using oo in dynamically loaded bytecode ocaml runtime
Date: Sun, 27 Jan 2002 13:48:37 +0100	[thread overview]
Message-ID: <20020127124837.GB22183@cs.net.pl> (raw)
In-Reply-To: <20020127133648.A1247@ice.gerd-stolpmann.de>

On Sun, Jan 27, 2002 at 01:36:48PM +0100, Gerd Stolpmann wrote:
> On 2002.01.27 02:35 Tomasz Zielonka wrote:
> 
> I did this kind of linking, too, but I did not have any problems. (I am
> not loading into Postgresql, but into a Perl interpreter, but I think
> this does not make any difference.) I have used -output-obj for a long
> time, but recently (with the availability of O'Caml 3.04) I switched
> to loading the bytecode directly. The debug sections are not lost, 
> and the Dynlink library works.

[...]

Thank you very much. I will try this method.

> > When I make native/opt library _and_ define a method, I get corrupted
> > memory in the postgresql backend.
> 
> The generated code is not PIC, so it won't work.

Yes. At some point it came to me and I was puzzled: why the hell it
works (except for classes) when it shouldn't?

> > So:
> > 1) There is a bug, but where? In my program, in OCaml?
> 
> It is more likely that the bug is in your program.

Probably.

But it happens inside caml_startup(), during initialization.

> > 2) How to get stack backtrace in this situation?
> 
> See my method. Stack backtraces work, even the debugger works if
> you name the socket explicitly.

Wow, that's cool. Will try.

thank you,
tom

-- 
   .-.   Tomasz Zielonka                           CYBER SERVICE
   oo|   programista                        http://www.cs.net.pl
  /`'\   zielony@cs.net.pl
 (\_;/)  tel: [48] (22) 723-06-79 | tel/fax: [48] (22) 723-01-75
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  reply	other threads:[~2002-01-27 12:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-27  1:35 Tomasz Zielonka
2002-01-27  1:47 ` Tomasz Zielonka
2002-01-27 12:36 ` Gerd Stolpmann
2002-01-27 12:48   ` Tomasz Zielonka [this message]
2002-01-27 12:37 ` Tomasz Zielonka

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

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

  git send-email \
    --in-reply-to=20020127124837.GB22183@cs.net.pl \
    --to=zielony@cs.net.pl \
    --cc=caml-list@inria.fr \
    --cc=info@gerd-stolpmann.de \
    /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