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

pkg crashes when performing a version. #35

Closed
Amzo opened this issue Oct 18, 2018 · 1 comment
Closed

pkg crashes when performing a version. #35

Amzo opened this issue Oct 18, 2018 · 1 comment

Comments

Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@Amzo
Copy link

@Amzo Amzo commented Oct 18, 2018

When running 'pkg version ' the application segfaults.

[amzo@Bahamut ~]$ pkg version hexchat
CoinMP-1.8.3_1 =
Child process pid=60674 terminated abnormally: Segmentation fault
[amzo@Bahamut ~]$

Backtrace of this:

``
(gdb) run version hexchat
Starting program: /usr/sbin/pkg version hexchat
[Detaching after vfork from child process 69342]
[Detaching after vfork from child process 88353]
CoinMP-1.8.3_1 =
[Detaching after vfork from child process 93541]

Program received signal SIGSEGV, Segmentation fault.
kh_get_ports (h=0x800d086d0, key=0x1 <error: Cannot access memory at address 0x1>) at /usr/src_tmp/contrib/pkg/src/version.c:64
64 /usr/src_tmp/contrib/pkg/src/version.c: No such file or directory.
(gdb) backtrace
#0 kh_get_ports (h=0x800d086d0, key=0x1 <error: Cannot access memory at address 0x1>) at /usr/src_tmp/contrib/pkg/src/version.c:64
#1 validate_origin (portsdir=, origin=0x80026d258 "base") at /usr/src_tmp/contrib/pkg/src/version.c:689
#2 port_version (cmd=, origin=0x80026d258 "base", pkgname=, portsdir=) at /usr/src_tmp/contrib/pkg/src/version.c:706
#3 do_source_ports (opt=1024, limchar=45 '-', pattern=, match=, matchorigin=, matchname=, portsdir=0x800272170 "/usr/ports")
at /usr/src_tmp/contrib/pkg/src/version.c:783
#4 0x0000000000228c92 in exec_version (argc=, argv=) at /usr/src_tmp/contrib/pkg/src/version.c:1009
#5 0x000000000021f224 in main (argc=, argv=0x7fffffffe970) at /usr/src_tmp/contrib/pkg/src/main.c:887
(gdb) frame 0
#0 kh_get_ports (h=0x800d086d0, key=0x1 <error: Cannot access memory at address 0x1>) at /usr/src_tmp/contrib/pkg/src/version.c:64
64 in /usr/src_tmp/contrib/pkg/src/version.c
(gdb) ``

@beanpole135
Copy link
Member

@beanpole135 beanpole135 commented Jan 2, 2019

This needs to be reported to the developers/maintainers of the "pkg" utility itself.
https://bugs.freebsd.org/

@beanpole135 beanpole135 closed this Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment