Bug report: poldek segfaults while reading sources
Petter Urkedal
petter.urkedal at nordita.dk
Wed Dec 10 15:56:50 CET 2003
A get a consistent segmentation fault when poldek 0.18.1 is reading
from one of my repositories. My system is
Linux ns2.nordita.dk 2.4.20-24.9smp #1 SMP Mon Dec 1 11:25:17 EST 2003 i686 i686 i386 GNU/Linux
The contents of poldek.conf is
source = updates /data/common/redhat/9/RPMS.updates-i386
source = updates /data/common/redhat/9/RPMS.updates-i586
source = updates /data/common/redhat/9/RPMS.updates-i686
source = updates /data/common/redhat/9/RPMS.updates-athlon
source = updates /data/common/redhat/9/RPMS.updates-noarch
source = local /data/common/redhat/9/RPMS.local
source = shipped /data/common/redhat/9/RPMS.cd1
source = shipped /data/common/redhat/9/RPMS.cd2
source = shipped /data/common/redhat/9/RPMS.cd3
Some of the sources are symbolic links, but the ones that fail (-n shipped)
are not. NFS/local also does not matter. The sources were created with
poldek -s /data/common/redhat/9/PRMS.cd1 --mkidxz
etc. using the same version of poldek. Here is a GDB backtrace:
------------------------
(gdb) r -nshipped -i poldek
Starting program: /usr/local/src/poldek-0.18.1/poldek -nshipped -i poldek
[New Thread 1078090240 (LWP 17294)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078090240 (LWP 17294)]
0x080526ab in prepare_dirname (dirname=0x0, dirnamelen=0xbfffe2e4)
at pkgfl.c:315
315 if (dirname[*dirnamelen - 1] == '/' && *dirnamelen > 1) {
(gdb) bt
#0 0x080526ab in prepare_dirname (dirname=0x0, dirnamelen=0xbfffe2e4)
at pkgfl.c:315
#1 0x08052706 in pkgfl_ent_new (dirname=0x0, dirname_len=111, nfiles=111)
at pkgfl.c:335
#2 0x08052e0e in pkgfl_restore (nbufi=0xbfffe3c8, dirs=0x0, include=0)
at pkgfl.c:491
#3 0x08052ea9 in pkgfl_restore_f (stream=0x80a0e48, dirs=0x0, include=0)
at pkgfl.c:548
#4 0x08057cfb in pkgdir_load (pkgdir=0x80a8238, depdirs=0x40691008, ldflags=0)
at pkgdir.c:1165
#5 0x0805b66c in pkgset_load (ps=0x4001f010, ldflags=0, sources=0xb)
at pkgset-load.c:114
#6 0x0804cf82 in load_pkgset (ldflags=0) at main.c:1442
#7 0x0804dc50 in main (argc=4, argv=0xbfffe644) at main.c:1883
#8 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
------------------------
Another thing. I checked out the latest sources from CVS, but when
running ./autogen.sh, aclocal is run with '-I m4', but there is no
subdirectory called m4. Is there another checkout I have to do,
which is not mentioned on you web page?
Sincerely,
Petter Urkedal
More information about the poldek
mailing list