Hi All,

After the import of libz 1.1.4, rpm (from ports) dumps core when
trying to install linux_base.

# make install
===>  Installing for linux_base-6.1_1
Segmentation fault - core dumped
*** Error code 139

Stop in /usr/ports/emulators/linux_base.
*** Error code 1

When runing rpm inside gdb, SEGV seems to be happing inside libz.

Starting program: /usr/local/bin/rpm -U --ignoreos --root /compat/linux --dbpath 
/var/lib/rpm --nodeps --replacepkgs --noscripts 

Program received signal SIGSEGV, Segmentation fault.
0x80a42b3 in inflate_codes ()
(gdb) where
#0  0x80a42b3 in inflate_codes ()
#1  0x80a1d13 in inflate_blocks ()
#2  0x809f737 in inflate ()
#3  0x809ea94 in gzread ()
#4  0x808184f in gzdRead (cookie=0x813a900, 
    buf=0x81453f0 ' <repeats 200 times>..., count=14) at rpmio.c:2230

I then went into src/lib/libz and checked the difference between libz 1.1.4
and older 1.1.3. I found that if I backout the change for infcodes.c 1.3,
rpm does not dump core.

Could someone take a look into this?

           _ _    Munehiro (haro) Matsuda
 -|- /_\  |_|_|   Business Incubation Dept., Kubota Corp.
 /|\ |_|  |_|_|   1-3 Nihonbashi-Muromachi 3-Chome
                  Chuo-ku Tokyo 103-8310, Japan
                  Tel: +81-3-3245-3318  Fax: +81-3-3245-3315
                  Email: [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to