procdump 2.2-1 FTBFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
procdump (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
procdump 2.2-1 fails to build from source on Ubuntu. I can reproduce it locally.
```
cc -c -g -o obj/Monitor.o src/Monitor.c -g -O2 -fno-omit-
src/Monitor.c: In function 'WaitForProfile
src/Monitor.
1602 | pthread_
| ^~~~~~~
'WaitForProfi
|
| 1545 | if((s = socket(AF_UNIX, SOCK_STREAM, 0))==-1)
| | ~ ^~~~~~~
| | | |
| | | (1) stream socket created here
| | | (2) when 'socket' succeeds
| | (3) following 'false' branch...
|
'WaitForProfi
|
| 1553 | local.sun_family = AF_UNIX;
| | ^
| | |
| | (4) ...to here
|......
| 1557 | if(bind(s, (struct sockaddr *)&local, len)==-1)
| | ~~~~~~~
| | ||
| | |(5) stream socket bound here
| | |(6) when 'bind' succeeds
| | (7) following 'false' branch...
|......
| 1569 | chmod(tmpFolder, 0777);
| | ~~~~~~~
| | |
| | (8) ...to here
|......
| 1577 | if ((pthread_
| | ~
| | |
| | (9) following 'false' branch...
|......
| 1590 | if(listen(s, MAX_PROFILER_
| | ~~~~~~~
| | ||
| | |(10) ...to here
| | |(11) stream socket marked as passive here via 'listen'
| | |(12) when 'listen' succeeds
| | (13) following 'false' branch...
|......
| 1602 | pthread_
| | ~~~~~~~
| | |
| | (14) ...to here
|......
| 1612 | if((s2 = accept(s, (struct sockaddr *)&remote, &t))==-1)
| | ~ ~~~~~~~
| | | |
| | | (15) when 'accept' fails
| | (16) following 'true' branch...
|
'WaitForProfi
|
|./
| 51 | DiagTrace(format " %s", ##__VA_ARGS__, LOCATION);
| | ^~~~~~~
| | |
| | (17) ...to here
src/Monitor.
| 1615 | Trace("
| | ^~~~~
|
'WaitForProfi
|
| 1602 | pthread_
| | ^~~~~~~
| | |
| | (18) 'socket(1, 1, 0)' leaks here
|
cc1: all warnings being treated as errors
```
description: | updated |
tags: | removed: update-excuse |
Changed in procdump (Ubuntu): | |
status: | Triaged → Fix Released |
I can reproduce it on an upstream git checkout of 2.2 tag:
``` protector- strong -fstack- clash-protectio n -Wformat -Werror= format- security -fcf-protection"
make CFLAGS="-flto=auto -ffat-lto-objects -fstack-
```
Bisect the fix in https:/ /github. com/Sysinternal s/ProcDump- for-Linux/ commit/ ed78e3e8ef57a52 a8c69f459243632 1ef6e9b960