[GHC] #9280: GHCi crash:

#9280: GHCi crash:
------------------------------------------+--------------------------------
Reporter: mietek | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.8.2
Keywords: crash, dynamic linking | Operating System:
Architecture: x86_64 (amd64) | Unknown/Multiple
Difficulty: Unknown | Type of failure: GHCi crash
Blocked By: | Test Case:
Related Tickets: | Blocking:
------------------------------------------+--------------------------------
Given a statically-linked Haskell object file, interactive GHCi 7.8.2
crashes.
{{{
$ cat >Foo.hs <

#9280: GHCi crash: illegal text-relocation --------------------------------+------------------------------------------ Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: crash, dynamic linking Operating System: | Architecture: x86_64 (amd64) Unknown/Multiple | Difficulty: Unknown Type of failure: GHCi crash | Blocked By: Test Case: | Related Tickets: Blocking: | --------------------------------+------------------------------------------ -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9280#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9280: GHCi crash: illegal text-relocation; relocation R_X86_64_PC32 against undefined symbol _ can not be used when making a shared object --------------------------------+------------------------------------------ Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: crash, dynamic linking Operating System: | Architecture: x86_64 (amd64) Unknown/Multiple | Difficulty: Unknown Type of failure: GHCi crash | Blocked By: Test Case: | Related Tickets: Blocking: | --------------------------------+------------------------------------------ -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9280#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9280: GHCi crash: illegal text-relocation; relocation R_X86_64_PC32 against undefined symbol _ can not be used when making a shared object --------------------------------+------------------------------------------ Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: crash, dynamic linking Operating System: | Architecture: x86_64 (amd64) Unknown/Multiple | Difficulty: Unknown Type of failure: GHCi crash | Blocked By: Test Case: | Related Tickets: Blocking: | --------------------------------+------------------------------------------ Comment (by mietek): As discussed on IRC with '''rwbarton''', it's questionable whether this is an issue besides "you're not supposed to do this". On one hand, GHCi claims it can load object files, and GHCi 7.6.3 does not crash when fed with an `.o` file produced by itself. On the other hand, feeding an `.o` file to GHCi 7.6.3 is not useful, as there is apparently no way to bring the functions declared in the corresponding `.hi` file into scope. I see two solutions — either adjust user expectations, or allow feeding GHCi explicitly with `.o`/`.hi` pairs, in the absence of an `.hs` file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9280#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9280: GHCi crash: illegal text-relocation to _ in _ from _ in _ for architecture x86_64; relocation R_X86_64_PC32 against undefined symbol _ can not be used when making a shared object --------------------------------+------------------------------------------ Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: crash, dynamic linking Operating System: | Architecture: x86_64 (amd64) Unknown/Multiple | Difficulty: Unknown Type of failure: GHCi crash | Blocked By: Test Case: | Related Tickets: Blocking: | --------------------------------+------------------------------------------ -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9280#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9280: GHCi crash: illegal text-relocation to _ in _ from _ in _ for architecture x86_64; relocation R_X86_64_PC32 against undefined symbol _ can not be used when making a shared object -------------------------------------+------------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: crash, | dynamic linking Operating System: Unknown/Multiple | Architecture: x86_64 | (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by ezyang): I don't know; the symbol could be referred to by another C file which we actually know symbols of. It seems that though you shouldnt do this... It also shouldn't fail. So there may very well be a legitimate bug here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9280#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC