Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Crash while serializing request URI (ubuntu only) #118

Closed
hhanesand opened this issue Mar 30, 2017 · 4 comments
Closed

Crash while serializing request URI (ubuntu only) #118

hhanesand opened this issue Mar 30, 2017 · 4 comments

Comments

@hhanesand
Copy link

hhanesand commented Mar 30, 2017

Bugs

If you find a bug, please submit a pull request with a failing test case displaying the bug or just create an issue with as much information as possible.


*** Error in `.build/debug/App': corrupted double-linked list: 0x00007f3864027f60 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f387c7827e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x7e6f8)[0x7f387c7896f8]
/lib/x86_64-linux-gnu/libc.so.6(+0x813be)[0x7f387c78c3be]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7f387c78e5d4]
/home/xxx/.swiftenv/versions/3.1/usr/lib/swift/linux/libFoundation.so(+0x32a9d4)[0x7f387e2d39d4]
/home/xxx/.swiftenv/versions/3.1/usr/lib/swift/linux/libFoundation.so(CFCharacterSetAddCharactersInString+0x144)[0x7f387e2cdb64]
/home/xxx/.swiftenv/versions/3.1/usr/lib/swift/linux/libFoundation.so(CFCharacterSetCreateWithCharactersInString+0x159)[0x7f387e2cdfc9]
/home/xxx/.swiftenv/versions/3.1/usr/lib/swift/linux/libFoundation.so(+0x36d330)[0x7f387e316330]
/home/xxx/.swiftenv/versions/3.1/usr/lib/swift/linux/libdispatch.so(dispatch_once_f+0x3b)[0x7f387f48c00b]
/home/xxx/.swiftenv/versions/3.1/usr/lib/swift/linux/libFoundation.so(_CFURLComponentsGetURLQueryAllowedCharacterSet+0x2a)[0x7f387e3140fa]
/home/xxx/.swiftenv/versions/3.1/usr/lib/swift/linux/libFoundation.so(_TZFC10Foundation14NSCharacterSetg15urlQueryAllowedVS_12CharacterSet+0xc)[0x7f387e5f329c]

call is coming from Request at let encoded = q.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)

Not really sure what to do about this, since it's probably a swift bug. Does anyone have a reference to a reported bug or a workaround?

The query string that is crashing :

▿ 5 elements
  ▿ 0 : 2 elements
    - key : "legal_entity[type]"
    - value : "company"
  ▿ 1 : 2 elements
    - key : "managed"
    - value : true
  ▿ 2 : 2 elements
    - key : "metadata[id]"
    - value : "28"
  ▿ 3 : 2 elements
    - key : "email"
    - value : "xxx@xxxx.xxx"
  ▿ 4 : 2 elements
    - key : "country"
    - value : "US"
@hhanesand hhanesand changed the title Crash while serializing request URI Crash while serializing request URI (ubuntu only Mar 30, 2017
@hhanesand hhanesand changed the title Crash while serializing request URI (ubuntu only Crash while serializing request URI (ubuntu only) Mar 30, 2017
@tanner0101
Copy link
Member

which version of the engine package are you using?

@hhanesand
Copy link
Author

1.3.12

@tanner0101
Copy link
Member

Hmm. Definitely seems like a Swift bug. Try upgrading to Swift 3.1 if you can. If it continues to be an issue we can look into workarounds / using vapor/core methods instead.

@BrettRToomey
Copy link
Contributor

Closing due to inactivity. Feel free to reopen if you have any updates. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants