Skip to content

X32 build support - #1

Closed
bnoordhuis wants to merge 3 commits into
libuv:masterfrom
bnoordhuis:x32-build-support
Closed

bnoordhuis wants to merge 3 commits into
libuv:masterfrom
bnoordhuis:x32-build-support

Conversation

@bnoordhuis

Copy link
Copy Markdown
Member

@saghul

saghul commented Oct 14, 2014

Copy link
Copy Markdown
Member

Hey! I have no objections to this. Now, the patch will be a lot simpler once 1.x has been merged into master, which I plan to do once rc2 is out (soon). Then you can rebase and land it on master :-)

@saghul

saghul commented Oct 21, 2014

Copy link
Copy Markdown
Member

I merged 1.x into master yesterday in joyent/libuv can you update master here and rebase your patch against it?

This commit adds x32 support to the autotools build.  Configure with:

    $ ./configure --host=x86_64-x32-linux --disable-dtrace

The `--disable-dtrace` switch is optional; you can omit it if your
system has x32 SystemTap headers installed.
Remnant from the bad old times when libuv still used libev.
This commit adds x32 support to the gyp build.  Configure with:

    $ ./gyp_uv.py -Dtarget_arch=x32
@bnoordhuis

Copy link
Copy Markdown
Member Author

Done.

@saghul

saghul commented Oct 21, 2014

Copy link
Copy Markdown
Member

LGTM, land at your own will :-)

@bnoordhuis

Copy link
Copy Markdown
Member Author

Landed in v1.x in e1114b5.

@bnoordhuis bnoordhuis closed this Oct 28, 2014
@bnoordhuis
bnoordhuis deleted the x32-build-support branch October 28, 2014 21:19
@ff2000 ff2000 mentioned this pull request Dec 5, 2014
@bosstjann bosstjann mentioned this pull request Apr 3, 2015
bnoordhuis added a commit to bnoordhuis/libuv that referenced this pull request Oct 8, 2015
Valgrind complains that the msg_control pointer points to uninitialized
memory.  While the memory is only used for writing data to, not for
reading data from, and the warning is therefore bogus, it's still
annoying enough that I decided to squelch it by zeroing the memory.

The performance implications should be minimal because this code path
is only used when sending over a handle to another process.

The warning:

    ==14859== Syscall param sendmsg(msg.msg_control) points to
    uninitialised byte(s)
      ==14859==    at 0x5AF1A80: __sendmsg_nocancel (in
          /usr/lib64/libpthread-2.21.so)
      ==14859==    by 0x46350E: uv__write (stream.c:810)
      ==14859==    by 0x464B24: uv_write2 (stream.c:1398)
      ==14859==    by 0x421ACE: run_test (test-ipc-send-recv.c:104)
      ==14859==    by 0x421DD1: run_test_ipc_send_recv_tcp
      (test-ipc-send-recv.c:156)
      ==14859==    by 0x406D2F: run_test_part (runner.c:404)
      ==14859==    by 0x4058CD: main (run-tests.c:58)
      ==14859==  Address 0xffefff934 is on thread 1's stack
      ==14859==  in frame libuv#1, created by uv__write (stream.c:742)
bnoordhuis added a commit to bnoordhuis/libuv that referenced this pull request Oct 8, 2015
Valgrind complains that the msg_control pointer points to uninitialized
memory.  While the memory is only used for writing data to, not for
reading data from, and the warning is therefore bogus, it's still
annoying enough that I decided to squelch it by zeroing the memory.

The performance implications should be minimal because this code path
is only used when sending over a handle to another process.

The warning:

    ==14859== Syscall param sendmsg(msg.msg_control) points to
    uninitialised byte(s)
      ==14859==    at 0x5AF1A80: __sendmsg_nocancel (in
          /usr/lib64/libpthread-2.21.so)
      ==14859==    by 0x46350E: uv__write (stream.c:810)
      ==14859==    by 0x464B24: uv_write2 (stream.c:1398)
      ==14859==    by 0x421ACE: run_test (test-ipc-send-recv.c:104)
      ==14859==    by 0x421DD1: run_test_ipc_send_recv_tcp
      (test-ipc-send-recv.c:156)
      ==14859==    by 0x406D2F: run_test_part (runner.c:404)
      ==14859==    by 0x4058CD: main (run-tests.c:58)
      ==14859==  Address 0xffefff934 is on thread 1's stack
      ==14859==  in frame libuv#1, created by uv__write (stream.c:742)

PR-URL: libuv#565
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
evanlucas pushed a commit to evanlucas/libuv that referenced this pull request Dec 5, 2015
Valgrind complains that the msg_control pointer points to uninitialized
memory.  While the memory is only used for writing data to, not for
reading data from, and the warning is therefore bogus, it's still
annoying enough that I decided to squelch it by zeroing the memory.

The performance implications should be minimal because this code path
is only used when sending over a handle to another process.

The warning:

    ==14859== Syscall param sendmsg(msg.msg_control) points to
    uninitialised byte(s)
      ==14859==    at 0x5AF1A80: __sendmsg_nocancel (in
          /usr/lib64/libpthread-2.21.so)
      ==14859==    by 0x46350E: uv__write (stream.c:810)
      ==14859==    by 0x464B24: uv_write2 (stream.c:1398)
      ==14859==    by 0x421ACE: run_test (test-ipc-send-recv.c:104)
      ==14859==    by 0x421DD1: run_test_ipc_send_recv_tcp
      (test-ipc-send-recv.c:156)
      ==14859==    by 0x406D2F: run_test_part (runner.c:404)
      ==14859==    by 0x4058CD: main (run-tests.c:58)
      ==14859==  Address 0xffefff934 is on thread 1's stack
      ==14859==  in frame libuv#1, created by uv__write (stream.c:742)

PR-URL: libuv#565
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
@zhjzjnb zhjzjnb mentioned this pull request Aug 10, 2016
@ugiwgh ugiwgh mentioned this pull request Oct 25, 2016
5455945 added a commit to 5455945/libuv that referenced this pull request Dec 31, 2016
02 在common.gypi中添加了对xp版本的支持
03 在winbuild目录中加入对各个vs版本的工程文件
Thinstation pushed a commit to Thinstation/thinstation that referenced this pull request Nov 22, 2020
	modified:   ts/ports/components/autofs/.md5sum
	modified:   ts/ports/components/autofs/Pkgfile
	deleted:    ts/ports/components/autofs/autofs#5.1.4-3.pkg.tar.xz
	new file:   ts/ports/components/autofs/autofs#5.1.6-3.pkg.tar.xz
	new file:   ts/ports/components/guile/.footprint
	new file:   ts/ports/components/guile/.md5sum
	new file:   ts/ports/components/guile/Pkgfile
	new file:   ts/ports/components/guile/guile#2.2.6-1.pkg.tar.xz
	modified:   ts/ports/components/libheimdal/libheimdal#7.7.0-1.pkg.tar.xz
	modified:   ts/ports/components/libnsl/.footprint
	modified:   ts/ports/components/libnsl/.md5sum
	modified:   ts/ports/components/libnsl/Pkgfile
	deleted:    ts/ports/components/libnsl/libnsl#1.2.0-1.pkg.tar.xz
	new file:   ts/ports/components/libnsl/libnsl#1.3.0-1.pkg.tar.xz
	modified:   ts/ports/components/libssh2/libssh2#1.9.0-2.pkg.tar.xz
	modified:   ts/ports/components/libuv/.md5sum
	modified:   ts/ports/components/libuv/Pkgfile
	deleted:    ts/ports/components/libuv/libuv#1.32.0-1.pkg.tar.xz
	new file:   ts/ports/components/libuv/libuv#1.40.0-1.pkg.tar.xz
	modified:   ts/ports/components/open-vm-tools/.footprint
	modified:   ts/ports/components/open-vm-tools/.md5sum
	modified:   ts/ports/components/open-vm-tools/Pkgfile
	deleted:    ts/ports/components/open-vm-tools/open-vm-tools#11.0.0-1.pkg.tar.xz
	new file:   ts/ports/components/open-vm-tools/open-vm-tools#11.2.0-1.pkg.tar.xz
	modified:   ts/ports/components/pidgin-sipe/.footprint
	modified:   ts/ports/components/pidgin-sipe/.md5sum
	modified:   ts/ports/components/pidgin-sipe/Pkgfile
	deleted:    ts/ports/components/pidgin-sipe/pidgin-sipe#1.23.2-1.pkg.tar.xz
	new file:   ts/ports/components/pidgin-sipe/pidgin-sipe#1.25.0-1.pkg.tar.xz
	deleted:    ts/ports/components/webkitgtk1/PKGBUILD
	modified:   ts/ports/contrib/openvpn/.footprint
	modified:   ts/ports/contrib/openvpn/.md5sum
	modified:   ts/ports/contrib/openvpn/Pkgfile
	deleted:    ts/ports/contrib/OpenVPN/openvpn#2.4.7-1.pkg.tar.xz
	new file:   ts/ports/contrib/OpenVPN/openvpn#2.5.0-1.pkg.tar.xz
	modified:   ts/ports/contrib/pidgin/Pkgfile
	modified:   ts/ports/contrib/pidgin/pidgin#2.14.1-1.pkg.tar.xz
	modified:   ts/ports/contrib/xerces-c/.md5sum
	modified:   ts/ports/contrib/xerces-c/Pkgfile
	deleted:    ts/ports/contrib/xerces-c/xerces-c#3.2.2-1.pkg.tar.xz
	new file:   ts/ports/contrib/xerces-c/xerces-c#3.2.3-1.pkg.tar.xz
	modified:   ts/ports/core/openssh/.md5sum
	modified:   ts/ports/core/openssh/Pkgfile
	modified:   ts/ports/core/openssh/openssh#8.4p1-1.pkg.tar.xz
	new file:   ts/ports/core/openssh/openssh-8.0p1-crypto-policies.patch
	modified:   ts/ports/gnome/gnome-control-center/Pkgfile
	modified:   ts/ports/gnome/gnome-control-center/gnome-control-center#3.36.4-1.pkg.tar.xz
	modified:   ts/ports/gnome/gnome-mplayer/gnome-mplayer#1.0.9-1.pkg.tar.xz
	modified:   ts/ports/gnome/gnome-online-accounts/gnome-online-accounts#3.36.0-2.pkg.tar.xz
	modified:   ts/ports/gnome/metacity/Pkgfile
	modified:   ts/ports/gnome/metacity/metacity#3.36.1-1.pkg.tar.xz
	modified:   ts/ports/gnome/NetworkManager/NetworkManager#1.26.2-1.pkg.tar.xz
	modified:   ts/ports/opt/bash-completion/bash-completion#2.9-2.pkg.tar.xz
	new file:   ts/ports/opt/c-ares/.footprint
	new file:   ts/ports/opt/c-ares/.md5sum
	new file:   ts/ports/opt/c-ares/Pkgfile
	new file:   ts/ports/opt/c-ares/c-ares#1.17.1-1.pkg.tar.xz
	modified:   ts/ports/opt/cifs-utils/.footprint
	modified:   ts/ports/opt/cifs-utils/.md5sum
	modified:   ts/ports/opt/cifs-utils/Pkgfile
	new file:   ts/ports/opt/cifs-utils/cifs-utils#6.11-1.pkg.tar.xz
	deleted:    ts/ports/opt/cifs-utils/cifs-utils#6.8-1.pkg.tar.xz
	modified:   ts/ports/opt/cyrus-sasl/.md5sum
	modified:   ts/ports/opt/cyrus-sasl/Pkgfile
	modified:   ts/ports/opt/cyrus-sasl/cyrus-sasl#2.1.27-1.pkg.tar.xz
	modified:   ts/ports/opt/gnutls/.footprint
	modified:   ts/ports/opt/gnutls/Pkgfile
	modified:   ts/ports/opt/gnutls/gnutls#3.6.13-1.pkg.tar.xz
	modified:   ts/ports/opt/krb5/.footprint
	modified:   ts/ports/opt/krb5/krb5#git-1.pkg.tar.xz
	modified:   ts/ports/opt/libtirpc/.md5sum
	modified:   ts/ports/opt/libtirpc/Pkgfile
	deleted:    ts/ports/opt/libtirpc/libtirpc#1.1.4-2.pkg.tar.xz
	new file:   ts/ports/opt/libtirpc/libtirpc#1.2.6-2.pkg.tar.xz
	modified:   ts/ports/opt/neon/.footprint
	modified:   ts/ports/opt/neon/.md5sum
	modified:   ts/ports/opt/neon/Pkgfile
	deleted:    ts/ports/opt/neon/neon#0.30.2-1.pkg.tar.xz
	new file:   ts/ports/opt/neon/neon#0.31.2-1.pkg.tar.xz
	modified:   ts/ports/opt/nfs-utils/.footprint
	modified:   ts/ports/opt/nfs-utils/.md5sum
	modified:   ts/ports/opt/nfs-utils/Pkgfile
	deleted:    ts/ports/opt/nfs-utils/nfs-utils#2.4.1-1.pkg.tar.xz
	new file:   ts/ports/opt/nfs-utils/nfs-utils#2.5.2-1.pkg.tar.xz
	modified:   ts/ports/opt/openldap/.footprint
	modified:   ts/ports/opt/openldap/.md5sum
	modified:   ts/ports/opt/openldap/Pkgfile
	deleted:    ts/ports/opt/openldap/openldap#2.4.48-2.pkg.tar.xz
	new file:   ts/ports/opt/openldap/openldap#2.4.56-2.pkg.tar.xz
	modified:   ts/ports/opt/wireshark/.footprint
	modified:   ts/ports/opt/wireshark/.md5sum
	modified:   ts/ports/opt/wireshark/Pkgfile
	renamed:    ts/ports/opt/wireshark/wireshark#3.2.7-1.pkg.tar.xz -> ts/ports/opt/wireshark/wireshark#3.4.0-1.pkg.tar.xz
	modified:   ts/ports/xfce/terminal/.footprint
	modified:   ts/ports/xfce/terminal/.md5sum
	modified:   ts/ports/xfce/terminal/Pkgfile
	deleted:    ts/ports/xfce/terminal/terminal#0.8.1-1.pkg.tar.xz
	new file:   ts/ports/xfce/terminal/terminal#0.8.9-1.pkg.tar.xz
	modified:   ts/ports/xfce/tumbler/.md5sum
	modified:   ts/ports/xfce/tumbler/Pkgfile
	deleted:    ts/ports/xfce/tumbler/tumbler#0.2.7-1.pkg.tar.xz
	new file:   ts/ports/xfce/tumbler/tumbler#0.2.9-1.pkg.tar.xz
santigimeno pushed a commit that referenced this pull request Apr 4, 2021
ERROR: LeakSanitizer: detected memory leaks

```
Direct leak of 432 byte(s) in 9 object(s) allocated from:
    #0 0x1062eedc2 in __sanitizer_mz_calloc+0x92 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x46dc2)
    #1 0x7fff20171eb6 in _malloc_zone_calloc+0x3a (libsystem_malloc.dylib:x86_64+0x1beb6)
    #2 0x7fff203ac180 in _CFRuntimeCreateInstance+0x124 (CoreFoundation:x86_64h+0x4180)
    #3 0x7fff203ab906 in __CFStringCreateImmutableFunnel3+0x84d (CoreFoundation:x86_64h+0x3906)
    #4 0x7fff203ab0a1 in CFStringCreateWithCString+0x48 (CoreFoundation:x86_64h+0x30a1)
    #5 0x1056f63e1 in uv__get_cpu_speed darwin.c:267
    #6 0x1056f491e in uv_cpu_info darwin.c:338
```

PR-URL: #3098
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
@santigimeno santigimeno mentioned this pull request Jul 23, 2021
@angusoutlook angusoutlook mentioned this pull request Mar 29, 2022
JeffroMF referenced this pull request in JeffroMF/libuv May 16, 2022
ERROR: LeakSanitizer: detected memory leaks

```
Direct leak of 432 byte(s) in 9 object(s) allocated from:
    #0 0x1062eedc2 in __sanitizer_mz_calloc+0x92 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x46dc2)
    #1 0x7fff20171eb6 in _malloc_zone_calloc+0x3a (libsystem_malloc.dylib:x86_64+0x1beb6)
    #2 0x7fff203ac180 in _CFRuntimeCreateInstance+0x124 (CoreFoundation:x86_64h+0x4180)
    #3 0x7fff203ab906 in __CFStringCreateImmutableFunnel3+0x84d (CoreFoundation:x86_64h+0x3906)
    libuv#4 0x7fff203ab0a1 in CFStringCreateWithCString+0x48 (CoreFoundation:x86_64h+0x30a1)
    libuv#5 0x1056f63e1 in uv__get_cpu_speed darwin.c:267
    libuv#6 0x1056f491e in uv_cpu_info darwin.c:338
```

PR-URL: libuv#3098
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
@pmarreck pmarreck mentioned this pull request Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants