[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

What did I miss?



I thought I finally had all my problems licked, but I just ran into another one, which I hope is the last. I am receiving the following SIGSEGV:

Program received signal SIGSEGV, Segmentation fault.
0x4014d01c in Fileno () from /usr/lib/librpmio-4.1.so
(gdb) bt
#0 0x4014d01c in Fileno () from /usr/lib/librpmio-4.1.so
#1 0x4003829f in rpmReadPackageFile () from /usr/lib/librpm-4.1.so
#2 0x4005b206 in rpmtsRun () from /usr/lib/librpm-4.1.so
#3 0x0804967a in process_requests () at program.c:275
#4 0x080497e4 in main (argc=1, argv=0xbffffb84) at program.c:346
#5 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6

Here is the code leading up to and including the rpmtsRun() call:

void callback(long data)
{

}

void process_requests(void)
{
Header h;

rpmtsSetRootDir(ts, root_path);

rpmReadConfigFiles(NULL, NULL);

/* Okay, here goes nothing */
while (GetAnotherRPMName())
{
if ((pfd = Fopen(package, "r")) == NULL)
{
syslog(LOG_ERR, "Can't open %s: %s", package,
rpmErrorString());
continue;
}

rpmReadPackageFile(ts, pfd, package, &h);
rpmtsAddInstallElement(ts, h, (fnpyKey)strdup(package), 1,
NULL);
}

/* Install RPMs */

rpmtsSetNotifyCallback(ts, callback,
(void *) ((long) INSTALL_LABEL));

if ((rpmtsRun(ts, NULL, RPMPROB_FILTER_NONE)) == -1)
{
syslog(LOG_ERR, "Could not install RPMs: %s", rpmErrorString());
continue;
}
}


What am I doing wrong?

ahp

Attachment: PGP.sig
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []