2016-05-10 23:55:14 |
errors.ubuntu.com bug bridge |
bug |
|
|
added bug |
2016-05-10 23:55:15 |
errors.ubuntu.com bug bridge |
bug |
|
|
added subscriber Brian Murray |
2017-02-19 16:26:57 |
Launchpad Janitor |
nmap (Ubuntu): status |
New |
Confirmed |
|
2017-02-19 16:54:01 |
Alberto Salvia Novella |
nmap (Ubuntu): importance |
Undecided |
High |
|
2019-08-14 14:07:42 |
Eric Desrochers |
tags |
wily xenial yakkety |
sts wily xenial yakkety |
|
2019-08-21 19:13:38 |
Dan Streetman |
nominated for series |
|
Ubuntu Xenial |
|
2019-08-21 19:13:38 |
Dan Streetman |
bug task added |
|
nmap (Ubuntu Xenial) |
|
2019-08-21 19:13:48 |
Dan Streetman |
nmap (Ubuntu Xenial): assignee |
|
Dan Streetman (ddstreet) |
|
2019-08-21 19:13:52 |
Dan Streetman |
nmap (Ubuntu Xenial): importance |
Undecided |
Low |
|
2019-08-21 19:13:55 |
Dan Streetman |
nmap (Ubuntu Xenial): status |
New |
In Progress |
|
2019-09-26 09:59:37 |
Victor Tapia |
nmap (Ubuntu Xenial): assignee |
Dan Streetman (ddstreet) |
Victor Tapia (vtapia) |
|
2019-09-26 10:06:59 |
Victor Tapia |
bug watch added |
|
https://github.com/nmap/nmap/issues/237 |
|
2019-09-26 10:53:35 |
Victor Tapia |
bug |
|
|
added subscriber Victor Tapia |
2019-09-27 15:43:18 |
Victor Tapia |
nominated for series |
|
Ubuntu Eoan |
|
2019-09-27 15:43:18 |
Victor Tapia |
bug task added |
|
nmap (Ubuntu Eoan) |
|
2019-09-27 15:43:26 |
Victor Tapia |
nmap (Ubuntu Eoan): assignee |
|
Victor Tapia (vtapia) |
|
2019-09-27 16:23:29 |
Victor Tapia |
bug task deleted |
nmap (Ubuntu Eoan) |
|
|
2019-09-30 12:54:38 |
Rafael David Tinoco |
bug |
|
|
added subscriber Canonical Server Team |
2019-09-30 13:05:13 |
Rafael David Tinoco |
bug |
|
|
added subscriber Ubuntu Server |
2019-10-09 08:25:17 |
Victor Tapia |
bug task added |
|
lua-lpeg (Ubuntu) |
|
2019-11-05 14:19:34 |
Victor Tapia |
description |
The Ubuntu Error Tracker has been receiving reports about a problem regarding nmap. This problem was most recently seen with version 7.01-2ubuntu2, the problem page at https://errors.ubuntu.com/problem/5e852236a443bab0279d47c8a9b7e55802bfb46f contains more details. |
[Impact]
Under certain conditions, lpeg will crash while walking the pattern tree looking for TCapture nodes.
[Test Case]
The reproducer, taken from an upstream discussion (link in "Other info"), is:
$ cat repro.lua
#!/usr/bin/env lua
lpeg = require "lpeg"
p = lpeg.C(-lpeg.P{lpeg.P'x' * lpeg.V(1) + lpeg.P'y'})
p:match("xx")
The program crashes due to a hascaptures() infinite recursion:
$ ./repro.lua
Segmentation fault (core dumped)
(gdb) bt -25
#523984 0x00007ffff7a3743c in hascaptures () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523985 0x00007ffff7a3743c in hascaptures () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523986 0x00007ffff7a3743c in hascaptures () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523987 0x00007ffff7a3743c in hascaptures () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523988 0x00007ffff7a3743c in hascaptures () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523989 0x00007ffff7a3743c in hascaptures () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523990 0x00007ffff7a3815c in ?? () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523991 0x00007ffff7a388e3 in compile () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523992 0x00007ffff7a36fab in ?? () from /usr/lib/x86_64-linux-gnu/lua/5.2/lpeg.so
#523993 0x000055555555fd1e in ?? ()
#523994 0x000055555556a5fc in ?? ()
#523995 0x00005555555600c8 in ?? ()
#523996 0x000055555555f63f in ?? ()
#523997 0x000055555556030f in ?? ()
#523998 0x000055555555dc91 in lua_pcallk ()
#523999 0x000055555555b896 in ?? ()
#524000 0x000055555555c54b in ?? ()
#524001 0x000055555555fd1e in ?? ()
#524002 0x0000555555560092 in ?? ()
#524003 0x000055555555f63f in ?? ()
#524004 0x000055555556030f in ?? ()
#524005 0x000055555555dc91 in lua_pcallk ()
#524006 0x000055555555b64b in ?? ()
#524007 0x00007ffff7c94bbb in __libc_start_main (main=0x55555555b5f0, argc=2, argv=0x7fffffffe6d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe6c8)
at ../csu/libc-start.c:308
#524008 0x000055555555b70a in ?? ()
The expected behavior is to have the program finish normally
[Regression potential]
Low, this is a backport from upstream and only limits the infinite recursion in a scenario where it shouldn't happen to begin with (TCapture node search).
[Other info]
This was fixed upstream in 1.0.1 by stopping the recursion in TCall nodes and controlling that TRule nodes do not follow siblings (sib2)
The upstream discussion can be found here: http://lua.2524044.n2.nabble.com/LPeg-intermittent-stack-exhaustion-td7674831.html
My analysis can be found here: http://pastebin.ubuntu.com/p/n4824ftZt9/plain/
[Original description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding nmap. This problem was most recently seen with version 7.01-2ubuntu2, the problem page at https://errors.ubuntu.com/problem/5e852236a443bab0279d47c8a9b7e55802bfb46f contains more details. |
|
2019-11-05 15:49:55 |
Victor Tapia |
bug task deleted |
nmap (Ubuntu) |
|
|
2019-11-05 15:50:06 |
Victor Tapia |
bug task deleted |
nmap (Ubuntu Xenial) |
|
|
2019-11-05 15:50:19 |
Victor Tapia |
nominated for series |
|
Ubuntu Eoan |
|
2019-11-05 15:50:19 |
Victor Tapia |
bug task added |
|
lua-lpeg (Ubuntu Eoan) |
|
2019-11-05 15:50:19 |
Victor Tapia |
nominated for series |
|
Ubuntu Bionic |
|
2019-11-05 15:50:19 |
Victor Tapia |
bug task added |
|
lua-lpeg (Ubuntu Bionic) |
|
2019-11-05 15:50:19 |
Victor Tapia |
nominated for series |
|
Ubuntu Focal |
|
2019-11-05 15:50:19 |
Victor Tapia |
bug task added |
|
lua-lpeg (Ubuntu Focal) |
|
2019-11-05 15:50:19 |
Victor Tapia |
nominated for series |
|
Ubuntu Disco |
|
2019-11-05 15:50:19 |
Victor Tapia |
bug task added |
|
lua-lpeg (Ubuntu Disco) |
|
2019-11-05 15:50:31 |
Victor Tapia |
bug task deleted |
lua-lpeg (Ubuntu Focal) |
|
|
2019-11-06 15:23:03 |
Victor Tapia |
attachment added |
|
focal.debdiff https://bugs.launchpad.net/ubuntu/+source/lua-lpeg/+bug/1580385/+attachment/5303261/+files/focal.debdiff |
|
2019-11-06 15:24:02 |
Victor Tapia |
bug |
|
|
added subscriber Ubuntu SRU developers |
2019-11-06 15:43:24 |
Victor Tapia |
bug watch added |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942031 |
|
2019-11-06 15:43:24 |
Victor Tapia |
bug task added |
|
lua-lpeg (Debian) |
|
2019-11-06 15:49:57 |
Eric Desrochers |
bug |
|
|
added subscriber STS Sponsors |
2019-11-06 15:50:05 |
Eric Desrochers |
lua-lpeg (Ubuntu): assignee |
|
Victor Tapia (vtapia) |
|
2019-11-06 15:50:09 |
Eric Desrochers |
lua-lpeg (Ubuntu): status |
New |
In Progress |
|
2019-11-06 16:32:20 |
Ubuntu Foundations Team Bug Bot |
tags |
sts wily xenial yakkety |
patch sts wily xenial yakkety |
|
2019-11-06 16:32:32 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2019-11-06 17:19:30 |
Bug Watch Updater |
lua-lpeg (Debian): status |
Unknown |
New |
|
2019-11-06 18:35:43 |
Dan Streetman |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2019-11-06 19:13:37 |
Eric Desrochers |
lua-lpeg (Ubuntu): importance |
Undecided |
Critical |
|
2019-11-06 19:13:39 |
Eric Desrochers |
lua-lpeg (Ubuntu): importance |
Critical |
Medium |
|
2019-11-06 19:40:29 |
Eric Desrochers |
lua-lpeg (Ubuntu): status |
In Progress |
Fix Committed |
|
2019-11-06 21:36:18 |
Launchpad Janitor |
lua-lpeg (Ubuntu): status |
Fix Committed |
Fix Released |
|
2019-11-07 14:29:26 |
Victor Tapia |
attachment added |
|
eoan.debdiff https://bugs.launchpad.net/ubuntu/+source/lua-lpeg/+bug/1580385/+attachment/5303496/+files/eoan.debdiff |
|
2019-11-07 14:29:58 |
Victor Tapia |
attachment added |
|
disco.debdiff https://bugs.launchpad.net/ubuntu/+source/lua-lpeg/+bug/1580385/+attachment/5303497/+files/disco.debdiff |
|
2019-11-07 14:33:30 |
Victor Tapia |
attachment added |
|
bionic.debdiff https://bugs.launchpad.net/ubuntu/+source/lua-lpeg/+bug/1580385/+attachment/5303499/+files/bionic.debdiff |
|
2019-11-07 14:34:01 |
Victor Tapia |
attachment added |
|
xenial.debdiff https://bugs.launchpad.net/ubuntu/+source/lua-lpeg/+bug/1580385/+attachment/5303500/+files/xenial.debdiff |
|
2019-11-07 14:48:08 |
Eric Desrochers |
lua-lpeg (Ubuntu Eoan): assignee |
|
Victor Tapia (vtapia) |
|
2019-11-07 14:48:13 |
Eric Desrochers |
lua-lpeg (Ubuntu Disco): assignee |
|
Victor Tapia (vtapia) |
|
2019-11-07 14:48:19 |
Eric Desrochers |
lua-lpeg (Ubuntu Bionic): assignee |
|
Victor Tapia (vtapia) |
|
2019-11-07 14:48:26 |
Eric Desrochers |
lua-lpeg (Ubuntu Xenial): assignee |
|
Victor Tapia (vtapia) |
|
2019-11-07 14:48:30 |
Eric Desrochers |
lua-lpeg (Ubuntu Xenial): status |
New |
In Progress |
|
2019-11-07 14:48:33 |
Eric Desrochers |
lua-lpeg (Ubuntu Disco): status |
New |
In Progress |
|
2019-11-07 14:48:34 |
Eric Desrochers |
lua-lpeg (Ubuntu Bionic): status |
New |
In Progress |
|
2019-11-07 14:48:37 |
Eric Desrochers |
lua-lpeg (Ubuntu Xenial): importance |
Undecided |
Medium |
|
2019-11-07 14:48:40 |
Eric Desrochers |
lua-lpeg (Ubuntu Disco): importance |
Undecided |
Medium |
|
2019-11-07 14:48:42 |
Eric Desrochers |
lua-lpeg (Ubuntu Bionic): importance |
Undecided |
Medium |
|
2019-11-07 14:48:45 |
Eric Desrochers |
lua-lpeg (Ubuntu Eoan): importance |
Undecided |
Medium |
|
2019-11-07 14:48:53 |
Eric Desrochers |
lua-lpeg (Ubuntu Eoan): status |
New |
In Progress |
|
2019-11-08 14:47:27 |
Eric Desrochers |
bug watch added |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944360 |
|
2019-11-08 16:06:15 |
Eric Desrochers |
removed subscriber STS Sponsors |
|
|
|
2019-11-08 16:06:18 |
Eric Desrochers |
removed subscriber Ubuntu SRU developers |
|
|
|
2019-11-08 16:06:21 |
Eric Desrochers |
removed subscriber Ubuntu Server |
|
|
|
2019-11-11 14:22:11 |
Łukasz Zemczak |
lua-lpeg (Ubuntu Eoan): status |
In Progress |
Fix Committed |
|
2019-11-11 14:22:14 |
Łukasz Zemczak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2019-11-11 14:22:15 |
Łukasz Zemczak |
bug |
|
|
added subscriber SRU Verification |
2019-11-11 14:22:19 |
Łukasz Zemczak |
tags |
patch sts wily xenial yakkety |
patch sts verification-needed verification-needed-eoan wily xenial yakkety |
|
2019-11-11 14:27:48 |
Łukasz Zemczak |
lua-lpeg (Ubuntu Disco): status |
In Progress |
Fix Committed |
|
2019-11-11 14:27:53 |
Łukasz Zemczak |
tags |
patch sts verification-needed verification-needed-eoan wily xenial yakkety |
patch sts verification-needed verification-needed-disco verification-needed-eoan wily xenial yakkety |
|
2019-11-11 14:29:33 |
Łukasz Zemczak |
lua-lpeg (Ubuntu Bionic): status |
In Progress |
Fix Committed |
|
2019-11-11 14:29:38 |
Łukasz Zemczak |
tags |
patch sts verification-needed verification-needed-disco verification-needed-eoan wily xenial yakkety |
patch sts verification-needed verification-needed-bionic verification-needed-disco verification-needed-eoan wily xenial yakkety |
|
2019-11-11 14:30:49 |
Łukasz Zemczak |
lua-lpeg (Ubuntu Xenial): status |
In Progress |
Fix Committed |
|
2019-11-11 14:30:56 |
Łukasz Zemczak |
tags |
patch sts verification-needed verification-needed-bionic verification-needed-disco verification-needed-eoan wily xenial yakkety |
patch sts verification-needed verification-needed-bionic verification-needed-disco verification-needed-eoan verification-needed-xenial wily xenial yakkety |
|
2019-11-12 17:01:20 |
Victor Tapia |
tags |
patch sts verification-needed verification-needed-bionic verification-needed-disco verification-needed-eoan verification-needed-xenial wily xenial yakkety |
patch sts verification-done verification-done-bionic verification-done-disco verification-done-eoan verification-done-xenial wily xenial yakkety |
|
2019-11-14 04:34:42 |
Mathew Hodson |
bug watch removed |
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944360 |
|
|
2019-11-14 04:35:17 |
Mathew Hodson |
bug watch removed |
https://github.com/nmap/nmap/issues/237 |
|
|
2019-11-21 08:03:53 |
Launchpad Janitor |
lua-lpeg (Ubuntu Eoan): status |
Fix Committed |
Fix Released |
|
2019-11-21 08:03:57 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2019-11-21 09:15:51 |
Launchpad Janitor |
lua-lpeg (Ubuntu Disco): status |
Fix Committed |
Fix Released |
|
2019-11-21 09:20:21 |
Launchpad Janitor |
lua-lpeg (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2019-11-21 09:21:37 |
Launchpad Janitor |
lua-lpeg (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2020-03-31 00:06:00 |
Bug Watch Updater |
lua-lpeg (Debian): status |
New |
Fix Released |
|