Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

strange yaourt behavior #154

Closed
leongm opened this issue Oct 3, 2015 · 18 comments
Closed

strange yaourt behavior #154

leongm opened this issue Oct 3, 2015 · 18 comments

Comments

@leongm
Copy link

leongm commented Oct 3, 2015

Hi there,

$ yaourt -Ss perl cups
/usr/lib/yaourt/util.sh : ligne 166 : 7394 Erreur de segmentation (core dumped)package-query "${PKGQUERY_C_ARG[@]}" "$@"

while

$ yaourt -Ss cups perl
1 aur/perl-net-cups 0.61-1 (3)
Common Unix Printing System Interface

@The-Compiler
Copy link

See #133, #146, #152 and archlinuxfr/package-query#13 😉

It was fixed in archlinuxfr/package-query#14

@Skunnyk Skunnyk closed this as completed Oct 6, 2015
@kgleason
Copy link

kgleason commented Mar 2, 2016

Is it possible that this (or one of the other referenced issues) has regressed?

When I run yaourt -Syyua --noconfirm I get a core dump. I also get it when I run without --noconfirm

/usr/lib/yaourt/util.sh: line 166: 2635 Illegal instruction (core dumped) package-query "${PKGQUERY_C_ARG[@]}" "$@"

Been happening for 2 days now. I can run sudo pacman -Syyu with no issue.

I'd love to help troubleshoot, but I'm not familiar enough with the inner workings of yaourt and package-query to know where to start.

UPDATE:
It seems that I don't get the error message when I run without --noconfirm. However in both cases, yaourt exits with a 0.

@f2404
Copy link
Collaborator

f2404 commented Mar 2, 2016

What versions of yaourt and package-query are you using?

UP: Seems to be working fine for me on the -git versions of both.

@kgleason
Copy link

kgleason commented Mar 2, 2016

Well the output of the first command here seems odd

kirk@kirkdt:$ yaourt -V
yaourt
homepage: http://archlinux.fr/yaourt-en
kirk@kirkdt:
$ package-query -v
package-query 1.8
kirk@kirkdt:~$ sudo pacman -Q yaourt
yaourt 1.7-2

@f2404
Copy link
Collaborator

f2404 commented Mar 2, 2016

Does the crash happen on running yaourt -Ss perl cups as mentioned above?

@f2404
Copy link
Collaborator

f2404 commented Mar 2, 2016

@kgleason I cannot reproduce your issue even after having installed yaourt-1.7 and package-query-1.8 - release versions.

UP Is the issue reproducible when using the default yaourtrc config?

@kgleason
Copy link

kgleason commented Mar 2, 2016

yes it does happen ...

$ yaourt -Ss perl cups
/usr/lib/yaourt/util.sh: line 166: 20484 Illegal instruction (core dumped) package-query "${PKGQUERY_C_ARG[@]}" "$@"

However, unlike the original reporter, I do get the exception when I run it the other way:

$ yaourt -Ss cups perl
/usr/lib/yaourt/util.sh: line 166: 21656 Illegal instruction (core dumped) package-query "${PKGQUERY_C_ARG[@]}" "$@"

If I should open a new issue for this, please let me know. I'll be happy to.

@larchunix
Copy link
Collaborator

The error message looks weird to me. IIUC, Illegal instruction means SIGILL.

Did you compile package-query on another machine or with special compilation flags ?

@kgleason
Copy link

kgleason commented Mar 2, 2016

@larchunix I didn't even know that package-query was installed, so it was most likely installed by yaourt or pacman as a dependency.

@f2404 I haven't modified the yaourtrc file, so as far as I know it is stock.

@kgleason
Copy link

kgleason commented Mar 2, 2016

@larchunix There are other issues that have the same error, but they all seem to be somewhat aged.

@larchunix
Copy link
Collaborator

@kgleason Could you run bash -x yaourt -Ss perl cups and copy/paste the exact command line used to invoke package-query which raises this error ?

@kgleason
Copy link

kgleason commented Mar 2, 2016

I see in the topic of #archlinux on FreeNode that "yaourt is broken. You'll need package-query-git". Trying that now

@kgleason
Copy link

kgleason commented Mar 2, 2016

Here you go.

  • pkgquery -s -S -s -A -- perl cups
  • package-query --aur-url https://aur.archlinux.org -s -S -s -A -- perl cups
    /usr/lib/yaourt/util.sh: line 166: 22604 Illegal instruction (core dumped) package-query "${PKGQUERY_C_ARG[@]}" "$@"
  • ret=132

@kgleason
Copy link

kgleason commented Mar 2, 2016

package-query-git seems to have resolved it for now.

@f2404
Copy link
Collaborator

f2404 commented Mar 3, 2016

package-query-git seems to have resolved it for now.

That's indeed strange as the git version currently has almost no changes comparing to the 1.8 release version which you seem to have been using...

@kgleason
Copy link

kgleason commented Mar 3, 2016

I was going to try to test on my laptop, which is more or less the same config as this machine, but it seems to be having some hardware issues right now.

@f2404
Copy link
Collaborator

f2404 commented Mar 3, 2016

Ok, please keep us posted.

@f2404
Copy link
Collaborator

f2404 commented Mar 11, 2016

@kgleason Were you able to test it?

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

7 participants
@The-Compiler @kgleason @Skunnyk @larchunix @leongm @f2404 and others