Kiwi / clyde

Next-generation libalpm/makepkg wrapper.
https://kiwi.github.io/clyde
Other
63 stars 8 forks source link

Clyde segfaults on all commands #118

Closed duckinator closed 13 years ago

duckinator commented 13 years ago

With: ef671e555b47f2d80075629a005c54f52775e738 I get a segfault, even with just clyde.

clyde output: [~/clyde]$ clyde zsh: segmentation fault clyde

examples/test output: https://gist.github.com/888569

examples/query output: https://gist.github.com/888570

examples/aursearch output: https://gist.github.com/888571

If you need any other info, let me know.

juster commented 13 years ago

oh those examples should be deleted... I can't seem to reproduce this bug...

juster commented 13 years ago

do you have any fancy CFLAGS or LDFLAGS exported or special CFLAGS/LDFLAGS in /etc/makepkg.conf?

duckinator commented 13 years ago

Nothing special exported, haven't touched /etc/makepkg.conf (didn't even know it existed until you mentioned that)

vendion commented 13 years ago

I am also having this issue, I don't have any special flags exported but I did attempt to install clyde via a hand edited PKGBUILD script because I already have Pacman 3.5.1.

This is the PKGBUILD script i used https://gist.github.com/888866 the changes I made was putting the currently date in the pkgver and also removing the dependency on pacman <3.5

duckinator commented 13 years ago

I didn't edit anything and it compiled fine. Used PKGBUILD from aur, which seems rather strange. It clones it twice iirc.

Ep0chalypse commented 13 years ago

Same thing with me...everything in regards to clyde is default....i didnt change anything. Just did a git pull and recompiled...still no luck.

xavierd commented 13 years ago

In fact, on i686 clyde is working as expected, but on x86_64 clyde always segfault!

vendion commented 13 years ago

If it helps here is a strace from clyde https://gist.github.com/889129

juster commented 13 years ago

Thanks Rip-Rip and vendion that actually helps explain everything!

juster commented 13 years ago

I am guessing that the clyde_umask function in utilcore.c was segfaulting for x86_64 though I'm not sure why. Please try the latest commit 86f9669e474979b4b5335e646ef59bd29c17fda9... aka reinstall clyde-git.

juster commented 13 years ago

No it still doesn't work... I have got an emulator to test x86_64 though.

juster commented 13 years ago

Ah I didn't use size_t properly. The latest commit works in my emulator for x86_64.

vendion commented 13 years ago

Confirmed your latest commit does work on x86_64 machines, thank you

juster commented 13 years ago

Cool! closing