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

[SR-5920] error: ld-linux-x86-64.so.2 0x0005d151: adding range [0x158ea-0x15969) which has a base that is less than the function's low PC 0x160e0 #4386

Closed
octoploid mannequin opened this issue Sep 18, 2017 · 7 comments
Labels
bug Something isn't working Linux LLDB for Swift

Comments

@octoploid
Copy link
Mannequin

octoploid mannequin commented Sep 18, 2017

Previous ID SR-5920
Radar None
Original Reporter @octoploid
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug, Linux
Assignee None
Priority Medium

md5: ba322180a7d9d7d0badaf77c7c1de745

Issue Description:

 ~ % swift 
Welcome to Swift version 4.1-dev (LLVM 0ccf92e239, Clang f2b194a275, Swift 110c8437f9). Type :help for assistance. 
 1> print("Hello, world!")  
error: ld-linux-x86-64.so.2 0x0005d151: adding range [0x158ea-0x15969) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message 
error: ld-linux-x86-64.so.2 0x0005d151: adding range [0x15980-0x15986) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message 
error: ld-linux-x86-64.so.2 0x0005d1b7: adding range [0x158ea-0x15969) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message 
error: ld-linux-x86-64.so.2 0x0005d1b7: adding range [0x15980-0x15986) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message 
Hello, world! 
 2> print("Hello, world!")  
Hello, world!
@belkadan
Copy link

@jckarter, is this our negative offset thing?

@jckarter
Copy link
Member

No idea, sorry. @lhames is this coming from MCJIT?

@lhames
Copy link

lhames commented Sep 18, 2017

Is this the LLDB-based REPL or the one in libImmediate? Both are using MCJIT, but this error looks like it's coming from https://github.com/apple/swift-lldb/blob/stable/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp , so I suspect this is an LLDB/REPL issue rather than an MCJIT specific one.

@belkadan
Copy link

Yes, it's LLDB. The integrated REPL has a different banner that says it's the integrated REPL.

@octoploid
Copy link
Mannequin Author

octoploid mannequin commented Sep 19, 2017

Yes, it's LLDB. The issue only happens for print(), other output is fine.

Welcome to Swift version 4.1-dev (LLVM 0ccf92e239, Clang f2b194a275, Swift 110c8437f9). Type :help for assistance.                                                                  
 1> (1...100).reduce(0, +)                  
$R0: Int = 5050                              
 2> print(3)                                
error: ld-linux-x86-64.so.2 0x0005d151: adding range [0x158ea-0x15969) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message               
error: ld-linux-x86-64.so.2 0x0005d151: adding range [0x15980-0x15986) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message               
error: ld-linux-x86-64.so.2 0x0005d1b7: adding range [0x158ea-0x15969) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message               
error: ld-linux-x86-64.so.2 0x0005d1b7: adding range [0x15980-0x15986) which has a base that is less than the function's low PC 0x160e0. Please file a bug and attach the file at t
he start of this error message               
3 

The internal REPL is fine:

***  You are running Swift's integrated REPL,  *** 
***  intended for compiler and stdlib          *** 
***  development and testing purposes only.    *** 
***  The full REPL is built as part of LLDB.   *** 
***  Type ':help' for assistance.              *** 
(swift) print(3) 
3

@swift-ci
Copy link

swift-ci commented Feb 5, 2019

Comment by Michael Kofler (JIRA)

still unresolved, swift 5 current beta (Feb. 5th 2019) + ubuntu 18.04

swift -version
Swift version 5.0-dev (LLVM 3207a50965, Clang a113643bc4, Swift 3155805b40)
Target: x86_64-unknown-linux-gnu

swift

error: ld-2.27.so 0xffffffff0005c564: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message

error: ld-2.27.so 0xffffffff0005c564: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message

error: ld-2.27.so 0xffffffff0005c5c5: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message

error: ld-2.27.so 0xffffffff0005c5c5: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message

Welcome to Swift version 5.0-dev (LLVM 3207a50965, Clang a113643bc4, Swift 3155805b40).

Type :help for assistance.

1> for i in 1...3 {

  1. printℹ
    
  2. }

1

2

3

@dcci
Copy link
Mannequin

dcci mannequin commented May 8, 2019

Duplicate of https://bugs.swift.org/browse/SR-8690
Let's continue the discussion there.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux LLDB for Swift
Projects
None yet
Development

No branches or pull requests

4 participants