Skip to contentSkip to conversation

get_maintainer:

Question Manuel Ebner 1 participant 2 messages Jun 8

lore
Share & tools
lore
#0 lore raw

I'm preparing a patch for get_maintainer. While testing I found out that the order of the output can change for the same input - see below. That's without any change to get_maintainer.pl. (state of 09d8b39563e84fc245 ). It seems that the alternating execution of get_maintainer and get_maintainer_patched triggers the glitch. Even if both files are the same. I can't figure out what's the root cause. I think I change the state of the script or it's surroundings somehow, but I can't figure out where.

Any Ideas?

Thanks
Manuel

$ ./scripts/get_maintainer.pl scripts/get_maintainer/patch-w-signed-off.patch
Andrew Morton <[email protected]> (maintainer:LIBRARY CODE)
Kees Cook <[email protected]> (maintainer:GENERIC STRING LIBRARY)
Andy Shevchenko <[email protected]> (reviewer:GENERIC STRING LIBRARY)
Willy Tarreau <[email protected]> (maintainer:NOLIBC HEADER FILE)
"Thomas Weißschuh" <[email protected]> (maintainer:NOLIBC HEADER FILE)
[email protected] (open list:LIBRARY CODE)
[email protected] (open list:GENERIC STRING LIBRARY)
LIBRARY CODE status: Supported
GENERIC STRING LIBRARY status: Supported
$ ./scripts/get_maintainer_patched.pl scripts/get_maintainer/patch-w-signed-off.patch
[...]
$ ./scripts/get_maintainer.pl scripts/get_maintainer/patch-w-signed-off.patch
Kees Cook <[email protected]> (maintainer:GENERIC STRING LIBRARY)
Andy Shevchenko <[email protected]> (reviewer:GENERIC STRING LIBRARY)
Andrew Morton <[email protected]> (maintainer:LIBRARY CODE)
Willy Tarreau <[email protected]> (maintainer:NOLIBC HEADER FILE)
"Thomas Weißschuh" <[email protected]> (maintainer:NOLIBC HEADER FILE)
[email protected] (open list:GENERIC STRING LIBRARY)
[email protected] (open list:LIBRARY CODE)
GENERIC STRING LIBRARY status: Supported
LIBRARY CODE status: Supported
#1 lore raw
Quoted 9 lines · Manuel Ebner

I'm preparing a patch for get_maintainer. While testing I found out that the order of the output can change for the same input - see below. That's without any change to get_maintainer.pl. (state of 09d8b39563e84fc245 ). It seems that the alternating execution of get_maintainer and get_maintainer_patched triggers the glitch. Even if both files are the same. I can't figure out what's the root cause. I think I change the state of the script or it's surroundings somehow, but I can't figure out where.

Any Ideas?

I figured it out myself. It's explained here:
https://lkml.org/lkml/2017/7/13/789

Sorry for the noise.
Manuel