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

Infinite loop in TDirectoryFile::ls #13182

Closed
1 task done
SilentAssassinMa opened this issue Jul 5, 2023 · 10 comments
Closed
1 task done

Infinite loop in TDirectoryFile::ls #13182

SilentAssassinMa opened this issue Jul 5, 2023 · 10 comments

Comments

@SilentAssassinMa
Copy link

SilentAssassinMa commented Jul 5, 2023

Check duplicate issues.

  • Checked for duplicates

Description

In this source file, line 1212, should be a

lnk = lnk->Next()

called before continue, otherwise calling ls with a regex input would cause a dead loop.

Reproducer

non

ROOT version

6.28.04

Installation method

non

Operating system

centos7

Additional context

No response

@SilentAssassinMa SilentAssassinMa changed the title Dead loop in TDirectoryFile::ls Infinite loop in TDirectoryFile::ls Jul 5, 2023
@jalopezg-git
Copy link
Collaborator

Many thanks for reporting the issue, @SilentAssassinMa! I took a quick look and it seems that you are absolutely right.

@ferdymercury
Copy link
Collaborator

Could this maybe be a dupe of #8650 ?

@ferdymercury
Copy link
Collaborator

Bug probably introduced here: 72a3242

ferdymercury added a commit to ferdymercury/root that referenced this issue Jul 9, 2023
Fixes root-project#8650
Fixes root-project#13182

This bug was introduced in commit
72a3242
Solution found by SilentAssassinMa
ferdymercury added a commit to ferdymercury/root that referenced this issue Jul 9, 2023
Fixes root-project#8650
Fixes root-project#13182

This bug was introduced in commit
72a3242
Solution found by SilentAssassinMa
@pcanal pcanal closed this as completed in 18c8472 Jul 18, 2023
@github-actions
Copy link

Hi @pcanal,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely,
🤖

@ferdymercury ferdymercury added this to Issues in Fixed in 6.30/00 via automation Jul 19, 2023
@pcanal pcanal modified the milestones: 6.28/06, 6.30/00 Jul 19, 2023
@pcanal pcanal added this to Issues in Fixed in 6.28/06 via automation Jul 19, 2023
@jalopezg-git
Copy link
Collaborator

jalopezg-git commented Jul 19, 2023

I guess #13217 should be backported to 6.28/06, no? @pcanal, will you take care of that or should I?

@pcanal
Copy link
Member

pcanal commented Jul 19, 2023

@jalopezg-git Yes, can you open a PR?

@jalopezg-git
Copy link
Collaborator

@jalopezg-git Yes, can you open a PR?

@ferdymercury as you are the original author of #13217, do you want to take care of the backport?

@ferdymercury
Copy link
Collaborator

@jalopezg-git Yes, can you open a PR?

@ferdymercury as you are the original author of #13217, do you want to take care of the backport?

I could do it, but I have never done it before, so I need some guidelines. Should I use rebase on some XY branch and then cherry-picking only my commit or sth like that?

@jalopezg-git
Copy link
Collaborator

jalopezg-git commented Jul 20, 2023

@jalopezg-git Yes, can you open a PR?

@ferdymercury as you are the original author of #13217, do you want to take care of the backport?

I could do it, but I have never done it before, so I need some guidelines. Should I use rebase on some XY branch and then cherry-picking only my commit or sth like that?

Assuming that the remote origin refers to upstream and ferdymercury to https://github.com/ferdymercury/root/, the simplest way is to

$ git fetch origin v6-28-00-patches:v6-28-00-patches
$ git checkout -b TDirectoryFile-ls-v6.28 v6-28-00-patches
$ git cherry-pick ... # your commit(s) here - I think it was 2 commits; mention them in order here
$ git push ferdymercury TDirectoryFile-ls-v6.28

, and then open a PR to be merged against the v6-28-00-patches branch. I'll let you try; if you don't manage, I'll do it instead 🙂.

ferdymercury added a commit to ferdymercury/root that referenced this issue Jul 20, 2023
Fixes root-project#8650
Fixes root-project#13182

This bug was introduced in commit
72a3242
Solution found by SilentAssassinMa
@ferdymercury
Copy link
Collaborator

I did: (note to self)
Thanks for the help!

git clone git@github.com:root-project/root
cd root
git remote add ferdymercury git@github.com:/ferdymercury/root
git remote -v
ferdymercury	git@github.com:ferdymercury/root.git (fetch)
ferdymercury	git@github.com:ferdymercury/root.git (push)
origin	git@github.com:root-project/root (fetch)
origin	git@github.com:root-project/root (push)
git fetch origin v6-28-00-patches:v6-28-00-patches
git checkout -b TDirectoryFile-ls-v6.28 v6-28-00-patches
git config user.name "ferdymercury"
git config user.email "ferdymercury@users.noreply.github.com"
git cherry-pick 18c847267b8651b7b392116767c5671f14c1c46e cb08bb7445a0b8db0a64a505399844c85ed048a4
git push ferdymercury TDirectoryFile-ls-v6.28

pcanal pushed a commit that referenced this issue Sep 7, 2023
Fixes #8650
Fixes #13182

This bug was introduced in commit
72a3242
Solution found by SilentAssassinMa
maksgraczyk pushed a commit to maksgraczyk/root that referenced this issue Jan 12, 2024
Fixes root-project#8650
Fixes root-project#13182

This bug was introduced in commit
72a3242
Solution found by SilentAssassinMa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants