[Ac] poldek - abort

tomasz.wittner w gmail.com tomasz.wittner w gmail.com
Nie, 4 Mar 2007, 22:50:41 CET


On Sat 3. of March 2007, Tomasz Wittner wrote:
> Cześć
>
> Chciałem zgłosić coś takiego:
>
> $ poldek
> Something wrong, something not quite right.
> Assertion 'n_stream_tell(st) == TNDBSIGN_OFFSET' failed, tndb.c:248
> Please report this bug to <mis at pld.org.pl>.
>
> zsh: abort      poldek
>
> $ q poldek
> poldek-0:0.20-11 athlon athlon.ac.pld-linux.org

Program received signal SIGABRT, Aborted.
0xffffe410 in __kernel_vsyscall ()
(tgdb) backtrace
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb754ff51 in raise () from /lib/tls/libc.so.6
#2  0xb755175c in abort () from /lib/tls/libc.so.6
#3  0xb7e5e042 in n_assert_hook (expr=0xb7e26260 "n_stream_tell(st) == 
TNDBSIGN_OFFSET", file=0xb7e261e0 "tndb.c", line=248) at lib_init.c:904
#4  0xb7e02692 in n_assert_fail (expr=0xb7e26260 "n_stream_tell(st) == 
TNDBSIGN_OFFSET", file=0xb7e261e0 "tndb.c", line=248) at nassert.c:51
#5  0xb7e25376 in tndb_sign_restore (st=0x80cca88, sign=0xbf7feacc, flags=80) 
at tndb.c:248
#6  0xb7e25877 in tndb_hdr_restore (hdr=0xbf7feac0, st=0x80cca88) at 
tndb.c:377
#7  0xb7e23cfd in do_tndb_open (fd=29, 
path=0x80cca50 "/home/users/inter/my/devel/RPMS/packages.ndir.gz") at 
read.c:323
#8  0xb7e23e28 in tndb_dopen (fd=29, 
path=0x80cca50 "/home/users/inter/my/devel/RPMS/packages.ndir.gz") at 
read.c:367
#9  0xb7e74c64 in do_dbopen 
(path=0x80cc8a8 "/home/users/inter/my/devel/RPMS/packages.ndir.gz", 
vfmode=561, vf=0xbf7fed20, srcnam=0x80cf458 "devel") at pnd
ir.c:186
#10 0xb7e75104 in pndir_open (idx=0xbf7fed20, 
path=0x80cc8a8 "/home/users/inter/my/devel/RPMS/packages.ndir.gz", 
vfmode=561, flags=0, srcnam=0x80cf458 "dev
el") at pndir.c:280
#11 0xb7e75197 in pndir_open_verify (idx=0xbf7fed20, 
path=0x80cc8a8 "/home/users/inter/my/devel/RPMS/packages.ndir.gz", 
vfmode=561, flags=0, srcnam=0x80cf4
58 "devel") at pndir.c:300
#12 0xb7e75416 in do_open (pkgdir=0x80cf540, flags=0) at pndir.c:385
#13 0xb7e665c5 in pkgdir_open_ext 
(path=0x805b180 "/home/users/inter/my/devel/RPMS/", pkg_prefix=0x0, 
type=0x805b730 "pndir", name=0x805b670 "devel", compr
ess=0x0, flags=0, lc_lang=0x805b798 "pl_PL.UTF-8:C") at pkgdir.c:461
#14 0xb7e66270 in pkgdir_srcopen (src=0x805b680, flags=0) at pkgdir.c:376
#15 0xb7e421eb in pkgset_load (ps=0x807b4a0, ldflags=16, sources=0x80506c0) at 
pkgset-load.c:50
#16 0xb7e5f32b in poldek_load_sources__internal (ctx=0x8050688) at 
lib_pkgset.c:70
#17 0xb7e5ef10 in poldek_load_sources (ctx=0x8050688) at lib_init.c:1362
#18 0xb7ea3d1d in poclidek_load_packages (cctx=0x80572c0, flags=3) at 
cli.c:525
#19 0x0804b79b in load_packages (cctx=0x80572c0, cnflags=0) at main.c:626
#20 0x0804b7ce in run_poldek (cctx=0x80572c0) at main.c:635
#21 0x0804ba2d in main (argc=1, argv=0xbf800fd4) at main.c:715

$ l /home/users/inter/my/devel/RPMS/packages.ndir.gz
-rw-------  1 inter users 0 2007-03-03 
00:14 /home/users/inter/my/devel/RPMS/packages.ndir.gz

Właśnie sobie przypominiałem, że wyskoczyły jakieś błędy przy 
poldek -ndevel --mkidx .
Od tej pory mam komunikat jak w pierwszym poście. Wiem, że mogę skasować
"uszkodzone" packages.ndir.gz, ale program imo nie powinien a). się wywalac na
błednych danych, b). takich błednych danych produkować.
-- 
Tomasz Wittner


Więcej informacji o liście dyskusyjnej pld-devel-pl