Latest Bugs & Tasks

Syndicate content Haiku
Trac Timeline
Updated: 1 hour 10 min ago

Ticket #12250 (Problems when relying on secondary DNS server) created

Tue, 2015-07-28 13:25

This is hrev49292.

I have manually set primary and secondary DNS servers on Windows. The primary one is not available depending on where I am, but falling back to the secondary one is usually no problem. VirtualBox correctly communicates those settings to Haiku, so my /boot/system/settings/network/resolv.conf looks something like this:


Now, attempting to build Haiku results in all targets of type DownloadLocatedFile1 failing, which means that it is not possible to build Haiku (I guess it can be bootstrapped, I have not tried that). The reason for this is simple: wget is called with the argument --timeout 10. That this is the problem is easily verified:

~> wget --timeout 10
--2015-07-28 13:09:21--
Resolving failed: Operation timed out.
wget: unable to resolve host address ‘’
~> wget --timeout 10.1
--2015-07-28 13:09:35--
Resolving 2a00:1450:4001:803::1007,,, ...
Connecting to|2a00:1450:4001:803::1007|:80... failed: Network is unreachable.
Connecting to||:80... connected.
HTTP request sent, awaiting response... 302 Found

Compare this to the values that can be found in /boot/system/develop/headers/posix/resolv.h:

130 #define MAXNS               3   /* max # name servers we'll track */
134 #define RES_TIMEOUT         5   /* min. seconds between retries */
139 #define RES_DFLRETRY        2   /* Default #/tries. */

It appears the requests at 0 and 5 seconds go to the first DNS server, and at 10 seconds, the second DNS server would be tried, but when building Haiku, the timeout is already reached and the target fails.
So, either the timeout when building Haiku needs to be increased or the order in which DNS servers are queried needs to be modified.

Regarding the latter idea:
I tested the same on Debian (with /etc/resolv.conf and /usr/include/resolv.h exactly matching) and wget succeeds with a timeout of 10, fails with a timeout of 5, but succeeds again with a timeout of 5.1. I assume that Debian recognizes that the request to the first DNS server was unsuccessful and tries the other DNS servers before retrying the first one. An advantage of that is that all other DNS requests (for instance when browsing the web) are delayed by "only" 5 seconds rather than the 10 seconds observed on Haiku when having to fall back to a secondary DNS server.

Categories: Development

Ticket #12249 (Document tests / unit tests in developer docs?) created

Tue, 2015-07-28 10:20

I tried searching for docs on how to work with our unit tests, but didn't find any good info.
What I'd hope to find is where they are (src/tests?), how to build them and how to run them.

To me it looks like you add the tests you want to the image and run them in the build. Any better way? Perhaps to run them on the host platform?

Categories: Development

Ticket #12248 ([patch] Add host as valid build target to configure's help) created

Mon, 2015-07-27 16:04

According to ​HelperRules, host is also a valid build target. It is needed to build bfs_fuse on Linux.

Attached patch will add this target to the help of configure and also fix a paste error introduced in hrev49029.

Categories: Development

Ticket #12247 (BNetworkAddress Equals false when SetTo IPv6 address) created

Sun, 2015-07-26 19:10
BNetworkAddress v4AddressA("");
BNetworkAddress v4AddressB("");
BNetworkAddress v6AddressA("feed::dead:beef");
BNetworkAddress v6AddressB("feed::dead:beef");
ASSERT_TRUE(v4AddressA.Equals(v4AddressB)); // PASS
ASSERT_TRUE(v6AddressA.Equals(v6AddressB)); // FAIL
Categories: Development

Ticket #12246 (BNetworkAddress IsLocal false when SetTo "::1" IPv6 address) created

Sun, 2015-07-26 19:08
BNetworkAddress v4Address("");
BNetworkAddress v6Address("::1");
ASSERT_TRUE(v4Address.IsLocal()); // PASS
ASSERT_TRUE(v6Address.IsLocal()); // FAIL
Categories: Development

Ticket #12245 (BNetworkAddress IsEmpty true when SetTo is run with IPv6 address) created

Sun, 2015-07-26 19:06
BNetworkAddress address;
ASSERT_FALSE(address.IsEmpty());  // Test unit fail
Categories: Development

Ticket #9783 (Implement handling of exec()) closed

Sun, 2015-07-26 18:38

Implemented in hrev49464.

Categories: Development

Ticket #12244 (net_server: warning on delete of address of a reference) created

Sun, 2015-07-26 14:46

Newer versions of GCC produces this warning at this ​line

error: the compiler can assume that the address of 'service' will never be NULL

This probably means that the compiler knows that delete checks for NULL pointers, whereas it also knows that the address of 'service' cannot be NULL. The delete check might then be pointless.

To fix this, I'd move 'service' to a pointer and adjust all callers.

Categories: Development

Ticket #11791 (Window preferences not saved) closed

Sun, 2015-07-26 14:42
no change required:

Probably settings file of fs corruption. Pleas reopen if you can still reproduce it.

Categories: Development

Ticket #12243 ([DataTranslations] stabilize window width) created

Sun, 2015-07-26 14:18

DataTranslations window width jumps when walking through the list of translators which is not that nice.
The same problem with Tracker's settings and Network preflet (in some locales)

Categories: Development

Ticket #12242 ([ScreenSaver] config options disappear on Test) created

Sun, 2015-07-26 14:08


After clicking Test button (and before screensaver is started) it can be seen that config view becomes empty and preview is changed to No preview available.

Categories: Development

Ticket #12241 ([ShowImage] add Get info shortcut (easy)) created

Sun, 2015-07-26 14:04

It would be nice to be able to press Alt+I to get Tracker's info window regarding currently displayed image.

Categories: Development

Ticket #12240 ([Media] media services restart fails if preflet is closed) created

Sun, 2015-07-26 13:55


Restarting media services fails if Media preflet is closed before this process is finished.

Categories: Development

Ticket #12239 ([Shortcuts] add horizontal resize support) created

Sun, 2015-07-26 13:37


Horizontal resize is currently not possible.

Categories: Development

Ticket #10928 ([Screenshot] Artwork folder is read-only (easy)) reopened

Sun, 2015-07-26 13:32

Still unable to save there, probably because Screenshot doesn't create B_USER_NONPACKAGED_DATA_DIRECTORY folder on save.

Categories: Development

Ticket #11644 ([Screenshot] aspect ratio is not always correct) reopened

Sun, 2015-07-26 11:24

The fix was not 100% correct, the apect ratio was maintained, but when previewing a very large window and then switching back to previewing the whole screen, the preview was unnecessarily small. I attached another patch to fix the fix, so to speak.

Categories: Development