Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVS-version: linking problem with threads #2794

Closed
vicuna opened this issue Jun 18, 2001 · 2 comments
Closed

CVS-version: linking problem with threads #2794

vicuna opened this issue Jun 18, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 18, 2001

Original bug ID: 391
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,

I have checked out the current CVS-version (3.01+3 (2001-06-08)) and
ran into the following linking problem on Linux:

markus@chopin:~/foo$ ocamlopt -thread unix.cmxa threads.cmxa -o foo foo.cmx
/raid/user/markus/local/linux-gnu/lib/ocaml/libthreadsnat.a(posix_n.o): In function caml_thread_uncaught_exception': posix_n.o(.text+0x620): undefined reference to backtrace_active'
posix_n.o(.text+0x628): undefined reference to `print_exception_backtrace'
collect2: ld returned 1 exit status
Error during linking

Here is the file foo.ml:


open Thread
let calc () = ()
let _ = Thread.create calc ()

Regards,
Markus Mottl

--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl

@vicuna
Copy link
Author

vicuna commented Jun 19, 2001

Comment author: administrator

I have checked out the current CVS-version (3.01+3 (2001-06-08)) and
ran into the following linking problem on Linux:
posix_n.o(.text+0x620): undefined reference to backtrace_active' posix_n.o(.text+0x628): undefined reference to print_exception_backtrace'

Right, I added support for stack backtrace on uncaught exceptions in
threads, and forgot that backtrace is available only under bytecode.
This is now fixed in the CVS repository.

Thanks for the bug report,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jun 21, 2001

Comment author: administrator

Fixed 2001-06-19 by XL

@vicuna vicuna closed this as completed Jun 21, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant