Void Linux discussion
 help / color / mirror / Atom feed
* cannot access to pkgdb: Bad file descriptor
@ 2015-03-15  8:42 Christer Sjöholm
  2015-03-15  8:47 ` Juan RP
  0 siblings, 1 reply; 2+ messages in thread
From: Christer Sjöholm @ 2015-03-15  8:42 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 2064 bytes --]

Hi, got a problem I can't get my head around.

After a update and reboot a while ago (March 7), all xbps commands that try 
to read the pkgdb exits with:

ERROR: cannot access to pkgdb: Bad file descriptor

I have both swiched filesystem, var was on a f2fs partition, and moved the 
pkgdb to another void machine but the error persists. So it looks like it 
is corrupted some way that causes the problem.
Looking inside it at least the begining and end looks like correct XML.

Has anyone else has this problem, or know what it can be?
If not, any ideas about how to go about recreating the pkgdb?


My pkgdb can be seen here:     
https://gist.githubusercontent.com/christer/25f40aa5c546c7742a68/raw/pkgdb-0.38.plist


And here is the end of an strace of xbps-query -l

access("/etc/xbps.d/xbps.conf", R_OK)   = -1 ENOENT (No such file or 
directory)
open("/usr/share/xbps.d/xbps.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3194, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f8b54bc0000
read(3, "# Configuration file for XBPS.\n#"..., 4096) = 3194
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f8b54bc0000, 4096)            = 0
chdir("/home/hcs/temp/strace-4.9_1.x86_64/usr/bin") = 0
open("/var/db/xbps/pkgdb-0.38.plist", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1613824, ...}) = 0
mmap(NULL, 1617920, PROT_READ, MAP_SHARED, 3, 0) = 0x7f8b54a20000
close(3)                                = 0
madvise(0x7f8b54a20000, 1613824, MADV_SEQUENTIAL) = 0
mmap(0x7f8b54baa000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED, -1, 0) = -1 
EBADF (Bad file descriptor)
munmap(0x7f8b54a20000, 1613824)         = 0
write(2, "ERROR: ", 7ERROR: )                  = 7
write(2, "cannot access to pkgdb: Bad file"..., 44cannot access to pkgdb: 
Bad file descriptor
) = 44
ioctl(1, TIOCGWINSZ, {ws_row=69, ws_col=255, ws_xpixel=0, ws_ypixel=0}) = 0
exit_group(9)                           = ?
+++ exited with 9 +++


[-- Attachment #1.2: Type: text/html, Size: 2911 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cannot access to pkgdb: Bad file descriptor
  2015-03-15  8:42 cannot access to pkgdb: Bad file descriptor Christer Sjöholm
@ 2015-03-15  8:47 ` Juan RP
  0 siblings, 0 replies; 2+ messages in thread
From: Juan RP @ 2015-03-15  8:47 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 112 bytes --]

This issue has been fixed in xbps-0.44_3, please update xbps and try again:

 # xbps-install -Suv xbps

>
>

[-- Attachment #1.2: Type: text/html, Size: 292 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-15  8:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-15  8:42 cannot access to pkgdb: Bad file descriptor Christer Sjöholm
2015-03-15  8:47 ` Juan RP

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).