On Wed, Oct 29, 2014 at 08:34:38AM +0100, Jörg Sommer wrote:

> debtags (1.12.3) wird eingerichtet ...
> No such file or directory. Context:
>     writing item

Thank you for reporting the bug. That looks strange: the only exceptions
raised with a "writing item" context are after an fprintf, which I can't
see failing with "No such file or directory". Also, in your stack trace
there are no write() calls failing.

The existence of /root/.debtags should be unrelated to that: I tried in
my system and it works fine without it:

  # debtags update --local
  # echo $?
  0
  # debtags --version
  debtags version 1.12.3
  # ls /root/.debtags
  ls: cannot access /root/.debtags: No such file or directory


> Looking with strace what's happening I see this:

I also don't see anything wrong in that strace: the only syscall that
doesn't seem to succeed is the stat() call, and the same stat() call
also fails in my system.

The difference seems to be here:

> 14217 23:46:55.005311 open("/var/lib/debtags/package-tags.b8J8Hh", 
> O_RDWR|O_CREAT|O_EXCL, 0600) = 4 <0.000069>
> 14217 23:46:55.005432 fcntl(4, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 
> <0.000083>
> 14217 23:46:55.005630 fstat(4, {st_dev=makedev(8, 2), st_ino=8524699, 
> st_mode=S_IFREG|0600, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, 
> st_blocks=0, st_size=0, st_atime=2014/10/14-23:46:54, 
> st_mtime=2014/10/14-23:46:54, st_ctime=2014/10/14-23:46:54}) = 0 <0.000030>
> 14217 23:46:55.005826 mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac496751000 <0.000042>
> 14217 23:46:55.005933 lseek(4, 0, SEEK_CUR) = 0 <0.000023>
> 14217 23:46:55.006304 futex(0x2ac497d6f850, FUTEX_WAKE_PRIVATE, 2147483647) = 
> 0 <0.000029>
> 14217 23:46:55.006616 unlink("/var/lib/debtags/package-tags.b8J8Hh") = 0 
> <0.000102>

Where in my system it starts writing tag data after the lseek:

  open("/var/lib/debtags/package-tags.VTKxIt", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
  fcntl(4, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
  fstat(4, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
  mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7ff669665000
  lseek(4, 0, SEEK_CUR)                   = 0
  write(4, "0ad: uitoolkit::sdl, uitoolkit::"..., 4096) = 4096
  write(4, "e::editing, use::text-formatting"..., 4096) = 4096

Let's try and get a stack trace. Can you please try with gdb, like this:

  export LANG=C
  gdb --args debtags update --local
  then in gdb:
     break __cxa_throw
     run
  and when it stops, hopefully while trying to raise an exception:
     where
     quit

and send me the output of it?

Also, can you please send me the output of:

  ls -la /var/lib/debtags
  df /var/lib/debtags

Thanks!
  
Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enr...@enricozini.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to