RPM Community Forums

Mailing List Message of <rpm-devel>

Re: internal dependency generator segfaults on any file

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 13 Oct 2007 - 16:59:38 CEST
Message-Id: <9C2A6654-0A00-4936-AEC4-3119C08AE5A4@mac.com>

On Oct 13, 2007, at 9:40 AM, Bernhard Rosenkraenzer wrote:

> Setting %_use_internal_dependency_generator to anything but 0 causes a
> segfault (with a totally unreadable gdb backtrace :/ ) here.
>
> strace -f rpm -ba any.spec ends in
>
> open("/usr/lib/rpm/magic.mgc", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1041280, ...}) = 0
> mmap2(NULL, 1041280, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) =  
> 0xb7afb000
> close(3)                                = 0
> munmap(0xb7afb000, 1041280)             = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> Process 22787 detached
>
>
> Before I spend lots of time tracing this, is anyone else running  
> into this,
> and maybe even fixed it?
>

Send me a reproducer, I will send you a fix.

Are you using internal or external file magic?

73 de Jeff
Received on Sat Oct 13 17:00:25 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.