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

xbps-dgraph fails with assertion when not provided with package #614

Open
0xfadead opened this issue Dec 24, 2024 · 4 comments · May be fixed by #616
Open

xbps-dgraph fails with assertion when not provided with package #614

0xfadead opened this issue Dec 24, 2024 · 4 comments · May be fixed by #616

Comments

@0xfadead
Copy link

When using $ xbps-dgraph -f and $ xbps-install -m on my new void installation it crashes with the following error:

$ xbps-dgraph -f
xbps-dgraph: util.c:315: xbps_pkgpattern_version: Assertion `pkg != NULL' failed.
zsh: IOT instruction  xbps-dgraph -f

I am on XBPS: 0.59.1 API: 20200221 GIT: UNSET (from xbps-install --version), the newest available to me.
Just in case, this is uname -a: Linux <host> 6.6.65_1 #1 SMP PREEMPT_DYNAMIC Fri Dec 13 <time> UTC 2024 x86_64 GNU/Linux

P.S.: I just wanted to try it out, so this issue is not urgent for me.

@classabbyamp
Copy link
Member

not an optimal error message, but you do need to provide a package name, like xbps-dgraph -f foo

@0xfadead
Copy link
Author

0xfadead commented Dec 24, 2024

not an optimal error message, but you do need to provide a package name, like xbps-dgraph -f foo

Oh my god, I'm sorry I didn't catch that 😅
I thought something in my package database was corrupted and it was therefore triggering assertions.

I'm not at my computer currently, so I'll be checking tomorrow if providing a package name fixes the issue (it most likely will).

Anyways, good night (it's 12 pm for me) and thanks for the fast response & help!

@0xfadead
Copy link
Author

It works with the package, so I'll be closing this issue.

@classabbyamp
Copy link
Member

i think it's worth keeping open because there should be a real error message there instead of an assert

@0xfadead 0xfadead reopened this Dec 26, 2024
@0xfadead 0xfadead changed the title xbps-dgraph crashes with failed assertion xbps-dgraph fails with assertion when not provided with package Dec 26, 2024
classabbyamp added a commit to classabbyamp/xbps that referenced this issue Dec 29, 2024
classabbyamp added a commit to classabbyamp/xbps that referenced this issue Jan 2, 2025
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

Successfully merging a pull request may close this issue.

2 participants