RejectedSoftware Forums

Sign up

Registering DUB package: "Interleaved request detected!"

I was trying to register https://github.com/repeatedly/mustache-d
with the DUB repo on behalf of mustache-d's owner (See
https://github.com/repeatedly/mustache-d/pull/4), but upon submitting
the form, I got the following error from the URL
http://registry.vibed.org/my_packages/add:

500 - Internal Server Error

Internal Server Error

Internal error information:
core.exception.AssertError@../../../opt/vibe/source/vibe/http/client.d(175):
Interleaved request detected! ----------------
./dub-registry(dassertmsg+0x45) [0x76052d]
./dub-registry(bool vibe.http.client.HttpClient.doRequest(scope void
delegate(vibe.http.client.HttpClientRequest))+0x74)
[0x71562c] ./dub-registry(void
vibe.http.client.HttpClient.request(scope void delegate(scope
vibe.http.client.HttpClientRequest), scope void delegate(scope
vibe.http.client.HttpClientResponse))+0x8c)
[0x71547c] ./dub-registry(void
vibe.http.client.requestHttp(vibe.inet.url.Url, scope void
delegate(scope vibe.http.client.HttpClientRequest), scope void
delegate(scope vibe.http.client.HttpClientResponse))+0x24a)
[0x714d56] ./dub-registry(void
dubregistry.cache.UrlCache.get(vibe.inet.url.Url, scope void
delegate(scope vibe.core.stream.InputStream))+0x1ac)
[0x5e955c] ./dub-registry(void
dubregistry.cache.downloadCached(vibe.inet.url.Url, scope void
delegate(scope vibe.core.stream.InputStream))+0x8e)
[0x5e99ee] ./dub-registry(void
dubregistry.cache.downloadCached(immutable(char)[], scope void
delegate(scope vibe.core.stream.InputStream))+0x57)
[0x5e9a4f] ./dub-registry(dubregistry.repositories.repository.PackageVersionInfo
dubregistry.repositories.github.GithubRepository.getVersionInfo(immutable(char)[])+0x3bd)
[0x5e7b71] ./dub-registry(void
dubregistry.registry.DubRegistry.addPackage(vibe.data.json.Json,
vibe.data.bson.BsonObjectID)+0xce) [0x5d4cee] ./dub-registry(void
dubregistry.web.DubRegistryWebFrontend.addPackage(vibe.http.server.HttpServerRequest,
vibe.http.server.HttpServerResponse, userman.controller.User)+0x222)
[0x5e604a] ./dub-registry(void
delegate(vibe.http.server.HttpServerRequest,
vibe.http.server.HttpServerResponse)
userman.web.UserManWebInterface.auth(void
delegate(vibe.http.server.HttpServerRequest,
vibe.http.server.HttpServerResponse, userman.controller.User)).void
requestHandler(vibe.http.server.HttpServerRequest,
vibe.http.server.HttpServerResponse)+0xfa)
[0x754632] ./dub-registry(void
vibe.http.router.UrlRouter.handleRequest(vibe.http.server.HttpServerRequest,
vibe.http.server.HttpServerResponse)+0x179)
[0x71d215] ./dub-registry(bool
vibe.http.server.handleRequest(vibe.core.stream.Stream,
immutable(char)[], vibe.http.server.HTTPServerListener, ref
vibe.http.server.HttpServerSettings, ref bool)+0x173c)
[0x72acc4] ./dub-registry(void
vibe.http.server.handleHttpConnection(vibe.core.net.TcpConnection,
vibe.http.server.HTTPServerListener)+0x1f9)
[0x72948d] ./dub-registry(void
vibe.http.server.listenHttpPlain(vibe.http.server.HttpServerSettings,
void delegate(vibe.http.server.HttpServerRequest,
vibe.http.server.HttpServerResponse)).void
doListen(vibe.http.server.HttpServerSettings,
vibe.http.server.HTTPServerListener, immutable(char)[]).void
lambda112(vibe.core.net.TcpConnection)+0x36)
[0x72600a] ./dub-registry(extern (C) nothrow void
vibe.core.drivers.libevent2
tcp.onConnect(int, short, void*).void
ClientTask.execute()+0x2b3) [0x6a77fb] ./dub-registry(void
vibe.core.core.CoreTask.run()+0xee) [0x6b49ea] ./dub-registry(void
core.thread.Fiber.run()+0x2a)
[0x78efce] ./dub-registry(fiber_entryPoint+0x61) [0x78eee1] [(nil)]

Could this be because I'm not the repo owner?

Re: Registering DUB package: "Interleaved request detected!"

Am 19.03.2013 22:05, schrieb Nick Sabalausky:

I was trying to register https://github.com/repeatedly/mustache-d
with the DUB repo on behalf of mustache-d's owner (See
https://github.com/repeatedly/mustache-d/pull/4), but upon submitting
the form, I got the following error from the URL
http://registry.vibed.org/my_packages/add:

(...)

Could this be because I'm not the repo owner?

That supposedly was a bug introduced by an optimization in the HTTP
client that was already fixed (at least there was an issue that could
have triggered this assertion). I've compiled the registry against the
latest fixes and now it works in my tests.

The repository owner currently plays no role for the registry. The only
additional right that the user who registered a package has is to remove
it from the registry again; so usually it doesn't really matter who
registers a certain package.

Assertion failed : Errors with dmd using DUB.

Hello,
I am having this error very often lately when i compile my vibe.d app
with DUB using dmd(default). My project is quite large and it will
become much larger.

Assertion failed: (0), function rehash_x, file ztc/aa.c, line 423.
Error: DMD compile run failed with exit code -6

Full exception: object.Exception@source/dub/compilers/dmd.d(169): DMD 
compile run failed with exit code -6
----------------
5   dub                                 0x0000000103a12437 pure @safe 
bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[], 
immutable(char)[], ulong) + 107
6   dub                                 0x00000001039c407f void 
dub.compilers.dmd.DmdCompiler.invoke(const(dub.compilers.compiler.BuildSettings), 
const(dub.compilers.compiler.BuildPlatform)) + 883
7   dub                                 0x00000001039cd1a9 void 
dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings) 
+ 3013
8   dub                                 0x000000010399ea6c void 
dub.dub.Dub.generateProject(immutable(char)[], 
dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000103992f55 _Dmain + 6773
10  dub                                 0x0000000103a771b1 void 
rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).runAll().void __lambda1() + 33
11  dub                                 0x0000000103a770fd void 
rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) + 45
12  dub                                 0x0000000103a7715d void 
rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).runAll() + 45
13  dub                                 0x0000000103a770fd void 
rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) + 45
14  dub                                 0x0000000103a77079 _d_run_main + 449
15  dub                                 0x0000000103993162 main + 34
16  libdyld.dylib                       0x00007fff8f0287e1 start + 0
17  ???                                 0x0000000000000002 0x0 + 2

I found this:
http://d.puremagic.com/issues/show_bug.cgi?id=8596

Build with --build=release is giving no errors.

With rdmd i get: Undefined symbols for architecture x86_64: Linker error.
(Now that i am writing this rdmd compiled with no errors, without me
changing anything in the project)

I would be thankful for some advice, i am new into programming and i
don't have very deep knowledge about how exactly compilers work etc.

Re: Assertion failed : Errors with dmd using DUB.

Am 20.11.2013 12:56, schrieb YiannisOSC:

Hello,
I am having this error very often lately when i compile my vibe.d app
with DUB using dmd(default). My project is quite large and it will
become much larger.

Assertion failed: (0), function rehash_x, file ztc/aa.c, line 423.
Error: DMD compile run failed with exit code -6

Full exception: object.Exception@source/dub/compilers/dmd.d(169): DMD
compile run failed with exit code -6
----------------
5   dub                                 0x0000000103a12437 pure @safe
bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[],
immutable(char)[], ulong) + 107
6   dub                                 0x00000001039c407f void
dub.compilers.dmd.DmdCompiler.invoke(const(dub.compilers.compiler.BuildSettings),
const(dub.compilers.compiler.BuildPlatform)) + 883
7   dub                                 0x00000001039cd1a9 void
dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings)
+ 3013
8   dub                                 0x000000010399ea6c void
dub.dub.Dub.generateProject(immutable(char)[],
dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000103992f55 _Dmain + 6773
10  dub                                 0x0000000103a771b1 void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll().void __lambda1() + 33
11  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
12  dub                                 0x0000000103a7715d void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() + 45
13  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
14  dub                                 0x0000000103a77079 _d_run_main +
449
15  dub                                 0x0000000103993162 main + 34
16  libdyld.dylib                       0x00007fff8f0287e1 start + 0
17  ???                                 0x0000000000000002 0x0 + 2

I found this:
http://d.puremagic.com/issues/show_bug.cgi?id=8596

Build with --build=release is giving no errors.

With rdmd i get: Undefined symbols for architecture x86_64: Linker
error.
(Now that i am writing this rdmd compiled with no errors, without me
changing anything in the project)

I would be thankful for some advice, i am new into programming and i
don't have very deep knowledge about how exactly compilers work etc.

If it is OK for you to provide your code (publicly or only to Walter),
you should definitely do so in that bug report, so that Walter has a
test case to work on. A vote for the bug to keep it visible also can't hurt.

There are, unfortunately, a few errors that show only in larger projects
(I regularly had to switch back and forth between all-at-once,
separate-compile-and-link and single-file-compilation modes in VisualD
to get my projects to compile, but it got much better over time). Most
of these errors cannot be fixed because there is no proper test case
available and thus some of them already exist for many years.

Regarding DUB/RDMD, you could also try to use "dub build --rdmd"
(assuming that you have invoked rdmd manually so far) to work around it
for the time being.

Re: Assertion failed : Errors with dmd using DUB.

On 11/20/13 14:38 , Sönke Ludwig wrote:

Am 20.11.2013 12:56, schrieb YiannisOSC:

Hello,
I am having this error very often lately when i compile my vibe.d app
with DUB using dmd(default). My project is quite large and it will
become much larger.

Assertion failed: (0), function rehash_x, file ztc/aa.c, line 423.
Error: DMD compile run failed with exit code -6

Full exception: object.Exception@source/dub/compilers/dmd.d(169): DMD
compile run failed with exit code -6
----------------
5   dub                                 0x0000000103a12437 pure @safe
bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[],
immutable(char)[], ulong) + 107
6   dub                                 0x00000001039c407f void
dub.compilers.dmd.DmdCompiler.invoke(const(dub.compilers.compiler.BuildSettings),
const(dub.compilers.compiler.BuildPlatform)) + 883
7   dub                                 0x00000001039cd1a9 void
dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings)
+ 3013
8   dub                                 0x000000010399ea6c void
dub.dub.Dub.generateProject(immutable(char)[],
dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000103992f55 _Dmain + 6773
10  dub                                 0x0000000103a771b1 void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll().void __lambda1() + 33
11  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
12  dub                                 0x0000000103a7715d void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() + 45
13  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
14  dub                                 0x0000000103a77079 _d_run_main +
449
15  dub                                 0x0000000103993162 main + 34
16  libdyld.dylib                       0x00007fff8f0287e1 start + 0
17  ???                                 0x0000000000000002 0x0 + 2

I found this:
http://d.puremagic.com/issues/show_bug.cgi?id=8596

Build with --build=release is giving no errors.

With rdmd i get: Undefined symbols for architecture x86_64: Linker
error.
(Now that i am writing this rdmd compiled with no errors, without me
changing anything in the project)

I would be thankful for some advice, i am new into programming and i
don't have very deep knowledge about how exactly compilers work etc.

If it is OK for you to provide your code (publicly or only to Walter),
you should definitely do so in that bug report, so that Walter has a
test case to work on. A vote for the bug to keep it visible also can't hurt.

There are, unfortunately, a few errors that show only in larger projects
(I regularly had to switch back and forth between all-at-once,
separate-compile-and-link and single-file-compilation modes in VisualD
to get my projects to compile, but it got much better over time). Most
of these errors cannot be fixed because there is no proper test case
available and thus some of them already exist for many years.

Regarding DUB/RDMD, you could also try to use "dub build --rdmd"
(assuming that you have invoked rdmd manually so far) to work around it
for the time being.

Thank you i already voted for the bug and commented at the D issue tracking.
I was not clear, but i was getting the rdmd errors using "dub build
--rdmd". If i will get them again i will post the error.

Re: Assertion failed : Errors with dmd using DUB.

On 11/20/13 14:38 , Sönke Ludwig wrote:

Am 20.11.2013 12:56, schrieb YiannisOSC:

Hello,
I am having this error very often lately when i compile my vibe.d app
with DUB using dmd(default). My project is quite large and it will
become much larger.

Assertion failed: (0), function rehash_x, file ztc/aa.c, line 423.
Error: DMD compile run failed with exit code -6

Full exception: object.Exception@source/dub/compilers/dmd.d(169): DMD
compile run failed with exit code -6
----------------
5   dub                                 0x0000000103a12437 pure @safe
bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[],
immutable(char)[], ulong) + 107
6   dub                                 0x00000001039c407f void
dub.compilers.dmd.DmdCompiler.invoke(const(dub.compilers.compiler.BuildSettings),
const(dub.compilers.compiler.BuildPlatform)) + 883
7   dub                                 0x00000001039cd1a9 void
dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings)
+ 3013
8   dub                                 0x000000010399ea6c void
dub.dub.Dub.generateProject(immutable(char)[],
dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000103992f55 _Dmain + 6773
10  dub                                 0x0000000103a771b1 void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll().void __lambda1() + 33
11  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
12  dub                                 0x0000000103a7715d void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() + 45
13  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
14  dub                                 0x0000000103a77079 _d_run_main +
449
15  dub                                 0x0000000103993162 main + 34
16  libdyld.dylib                       0x00007fff8f0287e1 start + 0
17  ???                                 0x0000000000000002 0x0 + 2

I found this:
http://d.puremagic.com/issues/show_bug.cgi?id=8596

Build with --build=release is giving no errors.

With rdmd i get: Undefined symbols for architecture x86_64: Linker
error.
(Now that i am writing this rdmd compiled with no errors, without me
changing anything in the project)

I would be thankful for some advice, i am new into programming and i
don't have very deep knowledge about how exactly compilers work etc.

If it is OK for you to provide your code (publicly or only to Walter),
you should definitely do so in that bug report, so that Walter has a
test case to work on. A vote for the bug to keep it visible also can't hurt.

There are, unfortunately, a few errors that show only in larger projects
(I regularly had to switch back and forth between all-at-once,
separate-compile-and-link and single-file-compilation modes in VisualD
to get my projects to compile, but it got much better over time). Most
of these errors cannot be fixed because there is no proper test case
available and thus some of them already exist for many years.

Regarding DUB/RDMD, you could also try to use "dub build --rdmd"
(assuming that you have invoked rdmd manually so far) to work around it
for the time being.

Thank you i already voted for the bug and commented at the D issue tracking.
I was not clear, but i was getting the rdmd errors using "dub build
--rdmd". If i will get them again i will post the error.

Re: Assertion failed : Errors with dmd using DUB.

On 11/20/13 14:38 , Sönke Ludwig wrote:

Am 20.11.2013 12:56, schrieb YiannisOSC:

Hello,
I am having this error very often lately when i compile my vibe.d app
with DUB using dmd(default). My project is quite large and it will
become much larger.

Assertion failed: (0), function rehash_x, file ztc/aa.c, line 423.
Error: DMD compile run failed with exit code -6

Full exception: object.Exception@source/dub/compilers/dmd.d(169): DMD
compile run failed with exit code -6
----------------
5   dub                                 0x0000000103a12437 pure @safe
bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[],
immutable(char)[], ulong) + 107
6   dub                                 0x00000001039c407f void
dub.compilers.dmd.DmdCompiler.invoke(const(dub.compilers.compiler.BuildSettings),
const(dub.compilers.compiler.BuildPlatform)) + 883
7   dub                                 0x00000001039cd1a9 void
dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings)
+ 3013
8   dub                                 0x000000010399ea6c void
dub.dub.Dub.generateProject(immutable(char)[],
dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000103992f55 _Dmain + 6773
10  dub                                 0x0000000103a771b1 void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll().void __lambda1() + 33
11  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
12  dub                                 0x0000000103a7715d void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() + 45
13  dub                                 0x0000000103a770fd void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 45
14  dub                                 0x0000000103a77079 _d_run_main +
449
15  dub                                 0x0000000103993162 main + 34
16  libdyld.dylib                       0x00007fff8f0287e1 start + 0
17  ???                                 0x0000000000000002 0x0 + 2

I found this:
http://d.puremagic.com/issues/show_bug.cgi?id=8596

Build with --build=release is giving no errors.

With rdmd i get: Undefined symbols for architecture x86_64: Linker
error.
(Now that i am writing this rdmd compiled with no errors, without me
changing anything in the project)

I would be thankful for some advice, i am new into programming and i
don't have very deep knowledge about how exactly compilers work etc.

If it is OK for you to provide your code (publicly or only to Walter),
you should definitely do so in that bug report, so that Walter has a
test case to work on. A vote for the bug to keep it visible also can't hurt.

There are, unfortunately, a few errors that show only in larger projects
(I regularly had to switch back and forth between all-at-once,
separate-compile-and-link and single-file-compilation modes in VisualD
to get my projects to compile, but it got much better over time). Most
of these errors cannot be fixed because there is no proper test case
available and thus some of them already exist for many years.

Regarding DUB/RDMD, you could also try to use "dub build --rdmd"
(assuming that you have invoked rdmd manually so far) to work around it
for the time being.

Thank you i already voted for the bug and commented at the D issue tracking.
I was not clear, but i was getting the rdmd errors using "dub build
--rdmd". If i will get them again i will post the error.