Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] compilation hangs on Ubuntu

From: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
Date: Sun, 13 May 2018 22:29:41 +0200
Hello,

W dniu 2018-05-13 17:15, Eugène Adell napisał(a):
I'm facing a problem on my development server (Ubuntu 16.04 hosted on
VMWARE) when trying to compile Wireshark. It was working with older
versions (2.0 for example), but now it's like the compilation will never
end.
I installed/updated all the required packages, since version 2.6 seems
quite different.

I'm doing an strace -f -o to find out what could be wrong, but no clue. The
strace log being too big, here is how it looks like :

1900  execve("/usr/bin/cmake", ["cmake", "-LH", "../wireshark"], [/*
22 vars */]) = 0
[cut]

thousands of lines such as :

1901 open("/proc/537/status", O_RDONLY) = -1 ENOENT (No such file or directory) 1901 open("/proc/538/status", O_RDONLY) = -1 ENOENT (No such file or directory) 1901 open("/proc/539/status", O_RDONLY) = -1 ENOENT (No such file or directory) 1901 open("/proc/540/status", O_RDONLY) = -1 ENOENT (No such file or directory) 1901 open("/proc/541/status", O_RDONLY) = -1 ENOENT (No such file or directory) 1901 open("/proc/542/status", O_RDONLY) = -1 ENOENT (No such file or directory) 1901 open("/proc/543/status", O_RDONLY) = -1 ENOENT (No such file or directory) 1901 open("/proc/544/status", O_RDONLY) = -1 ENOENT (No such file or directory)


then thousands and thousands of lines such as the following, and it seems
it will never end :

1901  open("/proc/882/status", O_RDONLY) = 3
1901  fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
1901  read(3, "Name:\tvmhgfs-fuse\nUmask:\t0000\nSt"..., 1024) = 1024
1901  read(3, "0000,00000000,00000000,00000000,"..., 1024) = 263
1901  read(3, "", 1024)                 = 0
1901  close(3)                          = 0
1901  open("/proc/965/status", O_RDONLY) = 3
1901  fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
1901  read(3, "Name:\tsystemd-logind\nUmask:\t0022"..., 1024) = 1024
1901  read(3, "0000000,00000000,00000000,000000"..., 1024) = 269
1901  read(3, "", 1024)                 = 0
1901  close(3)                          = 0
1901  open("/proc/968/status", O_RDONLY) = 3
1901  fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
1901  read(3, "Name:\tdbus-daemon\nUmask:\t0022\nSt"..., 1024) = 1024
1901  read(3, "00,00000000,00000000,00000000,00"..., 1024) = 283
1901  read(3, "", 1024)                 = 0
1901  close(3)                          = 0


How can I resolve this ?

Not sure, but it seems that first subprocess (1901 == 1900 + 1) makes some strange things.

Looking on my strace output of cmake -LH ../wireshark:

6410 execve("/usr/bin/cmake", ["cmake", "-LH", "../wireshark/"], 0x7ffe72092520 /* 32 vars */) = 0
(..)
6410 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f7cde41ba50) = 6411 6411 execve("/usr/bin/python", ["/usr/bin/python", "-c", "import sys; sys.stdout.write(';'.join([str(x) for x in sys.version_info[:3]]))"], 0x7ffc7adb4958 /* 32 vars */) = 0

first execve() is /usr/bin/python -c "import sys; sys.stdout.write(';'.join([str(x) for x in sys.version_info[:3]]))"

Is it same for you? If you run from same shell:
/usr/bin/python -c "import sys; sys.stdout.write(';'.join([str(x) for x in sys.version_info[:3]]))"

does it hang?

Could you please attach gzip compressed strace log?


Kind Regards,
Jakub.