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

[Bug] cant open under ubuntu 16.0.4 python 3.6 #1060

Closed
1 of 9 tasks
dhe090 opened this issue Jan 27, 2024 · 2 comments
Closed
1 of 9 tasks

[Bug] cant open under ubuntu 16.0.4 python 3.6 #1060

dhe090 opened this issue Jan 27, 2024 · 2 comments

Comments

@dhe090
Copy link

dhe090 commented Jan 27, 2024

GEF+GDB version

gdb -nx -ex 'pi print(sys.version)' -ex quit
GNU gdb (GDB) 8.2
3.6.10 (default, Dec 19 2019, 23:04:32) 
[GCC 5.4.0 20160609]

Operating System

x86 ubuntu 16.0.4

Describe the issue you encountered

gdb -q
Traceback (most recent call last):
  File "~/.gef-.py", line 86, in <module>
ImportError: cannot import name 'Literal'
<pi import urllib.request as u, tempfile as t; g=t.NamedTemporaryFile(suffix='-gef.py'); open(g.name, 'wb+').write(u.urlopen('https://tinyurl.com/gef-main').read()); gdb.execute('source %s' % g.name)

415592
  File "<fstring>", line 1
    (arena_addr=)
               ^
SyntaxError: invalid syntax

I was able to install inside gdb last week, but now neither inside gdb nor outside gdb installations are working. What could be the reason?

Do you read the docs and look at previously closed issues/PRs for similar cases?

No

Architecture impacted

  • X86
  • X64
  • ARM
  • ARM64
  • MIPS
  • MIPS64
  • PPC
  • PPC64
  • RISCV

Minimalist test case

Use this field for a minimal code to compile and spot the issue:

// compile with gcc -fPIE -pic -o my_issue.out my_issue.c
int main(){ return 0; }

You can also provide a Dockerfile if you prefer

Additional context?

image
image

@dhe090 dhe090 changed the title [Bug] cant open under ubuntu 16.0.4 python verion [Bug] cant open under ubuntu 16.0.4 python verion 3.6 Jan 27, 2024
@Grazfather
Copy link
Collaborator

You'll need to either update gdb or downgrade gef. The compatibility matrix needs to be updated. You should be able to go to a release from mid-2022 at least.

@Grazfather Grazfather changed the title [Bug] cant open under ubuntu 16.0.4 python verion 3.6 [Bug] cant open under ubuntu 16.0.4 python 3.6 Jan 28, 2024
@hugsy
Copy link
Owner

hugsy commented Jan 31, 2024

Should be fixed by #1061 (at least on 18.04)

@hugsy hugsy closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants