Giter Club home page Giter Club logo

Comments (3)

kinke avatar kinke commented on August 26, 2024

Have you tested this with DMD? Seems very unlikely that this has anything to do with LDC itself.

from ldc.

abraunegg avatar abraunegg commented on August 26, 2024

Have you tested this with DMD? Seems very unlikely that this has anything to do with LDC itself.

I normally develop | test against DMD exclusively. I have been trying to track down a segfault on ArchLinux using the distribution version of LDC and I have been seeing all sorts of weird behavior - like this issue.

I have just checked with DMD 2.108.1:

[alex@archlinux ~]$ source ~/dlang/dmd-2.108.1/activate
(dmd-2.108.1)[alex@archlinux ~]$ cd onedrive-pr2709
(dmd-2.108.1)[alex@archlinux onedrive-pr2709]$ ./configure; make clean; make;
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dmd... dmd
checking version of D compiler... 2.108.1
checking for curl... yes
checking for sqlite... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating contrib/pacman/PKGBUILD
config.status: creating contrib/spec/onedrive.spec
config.status: creating onedrive.1
config.status: creating contrib/systemd/onedrive.service
config.status: creating contrib/systemd/[email protected]
rm -f onedrive onedrive.o version
rm -rf autom4te.cache
rm -f config.log config.status
if [ -f .git/HEAD ] ; then \
        git describe --tags > version ; \
else \
        echo v2.5.0-rc2 > version ; \
fi
dmd -w -J. -O -L-lcurl -L-lsqlite3  -L-ldl src/main.d src/config.d src/log.d src/util.d src/qxor.d src/curlEngine.d src/onedrive.d src/webhook.d src/sync.d src/itemdb.d src/sqlite.d src/clientSideFiltering.d src/monitor.d src/arsd/cgi.d -ofonedrive
(dmd-2.108.1)[alex@archlinux onedrive-pr2709]$ 

HTTP Response Headers are intact and readable:

DEBUG: Existing Microsoft OneDrive Access Token Expires: 2024-May-11 08:08:03.4346172
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000", "x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"Australia Southeast\",\"Slice\":\"E\",\"
Ring\":\"3\",\"ScaleUnit\":\"001\",\"RoleInstance\":\"ML1PEPF00006B90\"}}", "date":"Fri, 10 May 2024 20:53:42 GMT", "client-request-id":"346db42f-55f8-4bba-ac72-3277ffae50e7", 
"request-id":"346db42f-55f8-4bba-ac72-3277ffae50e7", "cache-control":"no-store, no-cache", "content-type":"application/json; odata.metadata=minimal; odata.streaming=true; IEEE7
54Compatible=false; charset=utf-8"]
DEBUG: HTTP Status Line: 200  (2.0)

If I drop down to use 2.108.0:

DEBUG: Existing Microsoft OneDrive Access Token Expires: 2024-May-11 08:14:22.7129116
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000", "x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"Australia Southeast\",\"Slice\":\"E\",\"
Ring\":\"3\",\"ScaleUnit\":\"000\",\"RoleInstance\":\"ML1PEPF00004F6B\"}}", "date":"Fri, 10 May 2024 20:57:16 GMT", "client-request-id":"6c851ae2-f666-4b9b-97a4-5a6308c3819a", 
"request-id":"6c851ae2-f666-4b9b-97a4-5a6308c3819a", "cache-control":"no-store, no-cache", "content-type":"application/json; odata.metadata=minimal; odata.streaming=true; IEEE7
54Compatible=false; charset=utf-8"]
DEBUG: HTTP Status Line: 200  (2.0)

Headers intact as well ..

Checking with DMD 2.107.1 (which is what LDC 1.37.0 is based on):

Run `source ~/dlang/dmd-2.107.1/activate` in your shell to use dmd-2.107.1.
This will setup PATH, LIBRARY_PATH, LD_LIBRARY_PATH, DMD, DC, and PS1.
Run `deactivate` later on to restore your environment.
[alex@archlinux ~]$ source ~/dlang/dmd-2.107.1/activate
(dmd-2.107.1)[alex@archlinux ~]$ cd onedrive-pr2709
(dmd-2.107.1)[alex@archlinux onedrive-pr2709]$ ./configure; make clean; make;
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dmd... dmd
checking version of D compiler... 2.107.1
checking for curl... yes
checking for sqlite... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating contrib/pacman/PKGBUILD
config.status: creating contrib/spec/onedrive.spec
config.status: creating onedrive.1
config.status: creating contrib/systemd/onedrive.service
config.status: creating contrib/systemd/[email protected]
rm -f onedrive onedrive.o version
rm -rf autom4te.cache
rm -f config.log config.status
if [ -f .git/HEAD ] ; then \
        git describe --tags > version ; \
else \
        echo v2.5.0-rc2 > version ; \
fi
dmd -w -J. -O -L-lcurl -L-lsqlite3  -L-ldl src/main.d src/config.d src/log.d src/util.d src/qxor.d src/curlEngine.d src/onedrive.d src/webhook.d src/sync.d src/itemdb.d src/sqlite.d src/clientSideFiltering.d src/monitor.d src/arsd/cgi.d -ofonedrive

Headers broken:

DEBUG: HTTP Response Headers: [[cast(char) 0x70, cast(char) 0xAC, cast(char) 0x6E, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0, cast(char)
 0xE0, cast(char) 0x6, cast(char) 0x65, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0, cast(char) 0xA0, cast(char) 0x99, cast(char) 0x6E, ca
st(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0, cast(char) 0x9D]:"max-age=31536000; includeSubDomains", [cast(char) 0x70, cast(char) 0xAC, cast
(char) 0x6E, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0, cast(char) 0xE0, cast(char) 0x6, cast(char) 0x65, cast(char) 0x4E, cast(char) 0x
19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0]:"2.1.18037.7 - AUELR2 ProdSlices", [cast(char) 0x70, cast(char) 0xAC, cast(char) 0x6E, cast(char) 0x4E, cast(char) 0x19, ca
st(char) 0x62, cast(char) 0x0, cast(char) 0x0, cast(char) 0xE0, cast(char) 0x6, cast(char) 0x65, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0
x0]:"0", [cast(char) 0x70, cast(char) 0xAC, cast(char) 0x6E]:"CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", [cast(char) 0x70, cast(char) 0xAC, cast(char) 0x6E, cast(char) 0x4E, cast(c
har) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0, cast(char) 0xE0, cast(char) 0x6, cast(char) 0x65, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0]
:"d491e20b-3938-430a-b8f7-08af8f667200", [cast(char) 0x70, cast(char) 0xAC, cast(char) 0x6E, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0]:
"1.P", [cast(char) 0x20, cast(char) 0xFC, cast(char) 0xE6, cast(char) 0xFB]:"Fri, 10 May 2024 21:01:41 GMT", [cast(char) 0x70, cast(char) 0xAC, cast(char) 0x6E, cast(char) 0x4E
, cast(char) 0x19, cast(char) 0x62, cast(char) 0x0, cast(char) 0x0, cast(char) 0xE0, cast(char) 0x6, cast(char) 0x65, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62, cast(ch
ar) 0x0, cast(char) 0x0, cast(char) 0xA0, cast(char) 0x99, cast(char) 0x6E, cast(char) 0x4E, cast(char) 0x19, cast(char) 0x62]:"nosniff", [cast(char) 0x20, cast(char) 0xFC, cas
t(char) 0xE6, cast(char) 0xFB, cast(char) 0x44, cast(char) 0x7C, cast(char) 0x0, cast(char) 0x0, cast(char) 0x20, cast(char) 0xFC, cast(char) 0xE6, cast(char) 0xFB, cast(char) 
0x44, cast(char) 0x7C]:"3511", [cast(char) 0x20, cast(char) 0xFC, cast(char) 0xE6, cast(char) 0xFB, cast(char) 0x44, cast(char) 0x7C, cast(char) 0x0, cast(char) 0x0, cast(char)
 0x20, cast(char) 0xFC]:"stsservicecookie=estsfd; path=/; secure; samesite=none; httponly", " \adN\x19b\0\0\0\x04eN\x19":"no-store, no-cache", " \adN\x19b\0":"-1", " \adN\x19b"
:"no-cache", " \adN\x19b\0\0\0\x04eN":"application/json; charset=utf-8"]

So it appears to be a DMD 2.107.1 issue ... same issue exists with 2.107.0

Headers are intact again with 2.106.1 , 2.105.3 ....

Sorry for the noise.

from ldc.

kinke avatar kinke commented on August 26, 2024

No worries; v1.38.0 will be released this weekend, so you won't have to wait long (or could use beta1 in the meantime).

from ldc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.