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

pahole.py doesn't seem to work #5

Open
1120161891 opened this issue Mar 27, 2022 · 3 comments
Open

pahole.py doesn't seem to work #5

1120161891 opened this issue Mar 27, 2022 · 3 comments

Comments

@1120161891
Copy link

No description provided.

@Niebelungen-D
Copy link

Hello I have the same problem. An error always occurs in the file. Do you have any solution please?

Traceback (most recent call last):
  File "main.py", line 31, in <module>
    Commands[args.cmd].run(args)
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 646, in run
    pahole.analyzeType()
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 414, in analyzeType
    struct = Struct(content, self)
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 326, in __init__
    self._fields.append(Field(line, self._pahole))
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 152, in __init__
    define = m.group(1).strip()
AttributeError: 'NoneType' object has no attribute 'group'

I have tried to modify the file, but it does not work. Other error will occur.

+                if re.search('(.+)/\*\s(.+)\s+\*/', line.strip()) != None:
                    self._fields.append(Field(line, self._pahole))

@Albocoder
Copy link

#4 fixed it for pahole 1.21 just pull that

@heChosen
Copy link

heChosen commented Mar 5, 2024

Can anyone fully reproduce this study? I encountered some difficulties during the construction process.It will get stuck in touch /home/hara/KOOBE/s2e/images/.stamps/linux-4.9.3-x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants