Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLib error #23

Open
someone30 opened this issue Oct 15, 2023 · 5 comments
Open

GLib error #23

someone30 opened this issue Oct 15, 2023 · 5 comments

Comments

@someone30
Copy link

adsorber update puts out this at the moment (last update was done two months ago - no errors then):

Reading configuration ...
Updating /etc/hosts ...
  Getting: https://adaway.org/hosts.txt

(process:7250): GLib-CRITICAL **: 20:10:25.410: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7250): GLib-CRITICAL **: 20:10:25.411: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7250): GLib-CRITICAL **: 20:10:25.411: g_str_has_prefix: assertion 'str != NULL' failed

(process:7250): GLib-CRITICAL **: 20:10:25.411: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7250): GLib-CRITICAL **: 20:10:25.411: g_str_has_prefix: assertion 'str != NULL' failed

(process:7250): GLib-CRITICAL **: 20:10:25.411: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7250): GLib-CRITICAL **: 20:10:25.411: g_str_has_prefix: assertion 'str != NULL' failed

(process:7250): GLib-CRITICAL **: 20:10:25.411: g_uri_to_string: assertion 'uri != NULL' failed
2023-10-13 20:10:25 URL:https://adaway.org/hosts.txt [243454/243454] -> "-" [1]
  Getting: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_str_has_prefix: assertion 'str != NULL' failed

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_str_has_prefix: assertion 'str != NULL' failed

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_str_has_prefix: assertion 'str != NULL' failed

(process:7254): GLib-CRITICAL **: 20:10:25.615: g_uri_to_string: assertion 'uri != NULL' failed
2023-10-13 20:10:25 URL:https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext [99637] -> "-" [1]
  Successfully fetched 2 out of 2 hosts sources.
  Whitelist is empty, ignoring ...
  Blacklist is empty, ignoring ...
  Creating backup of current ad-domains
  Applying new hosts file ...
  Successfully applied new hosts file with 10009 blocked domains.
  Cleaning up ...
Finished successfully.

bash 5.2.15
glibc 2.38 (with CVE-2023-4911 fixed)
wget 1.21.4

Of these only glibc has been updated (several times) during the last two months.

Any idea?

@stablestud
Copy link
Owner

Looks like the issue did not come from adsorber itself, but from some underlying tools it uses.

One guess would be adsorber makes use of deprecated tool args or their interface has changed or we just use it wrong.

I'll take a look in the next few days.
Thanks for reporting 😎💪

@stablestud
Copy link
Owner

Unfortunately I cannot reproduce this on Ubuntu 23.10 with:

  • bash 5.2.15
  • glibc 2.38
  • wget 1.21.3

Did you compile glibc yourself?
If there's a new update available for glibc could you please try again?

@someone30
Copy link
Author

I'm using the default glibc package of openSUSE Tumbleweed:

https://build.opensuse.org/package/revisions/openSUSE:Factory/glibc

I'll try again after the next update. Thanks for testing.

@stablestud
Copy link
Owner

Hello @someone30,

do you have any update on this? Does the issue still exists?

@someone30
Copy link
Author

someone30 commented Dec 13, 2023

do you have any update on this? Does the issue still exists?

Just tried it again: same error, even after two glibc updates during the last weeks.

So I edited the update.sh and added -d (debug) to the wget command in line 191. New adsorber update output:

Reading configuration ...
Updating /etc/hosts ...
  Getting: https://adaway.org/hosts.txt
  Setting --output-document (outputdocument) to -
DEBUG output created by Wget 1.21.4 on linux-gnu.

Reading HSTS entries from /root/.wget-hsts
URI encoding = »UTF-8«
asking libproxy about url 'https://adaway.org/hosts.txt'

(process:4535): GLib-CRITICAL **: 20:03:58.291: g_uri_get_scheme: assertion 'uri != NULL' failed
(...)

So I guess it's a wget <-> libproxy issue on (at least) openSUSE Tumbleweed. "Proof": GLib errors during adsorber update are gone after adding --no-proxy as a wget parameter.

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

No branches or pull requests

2 participants