Openmoko Bug #1657: libopkg extract file may crashes

Openmoko Public Trac bugs at
Wed Jul 23 06:13:27 CEST 2008

#1657: libopkg extract file may crashes
 Reporter:  tick     |       Owner:  tick            
     Type:  defect   |      Status:  new             
 Priority:  highest  |   Milestone:  ASU             
Component:  opkg     |     Version:  current svn head
 Severity:  normal   |    Keywords:  opkg crash      
 Blocking:           |   Blockedby:                  
 Running packagekitd with opkg backend, try to upgrade packages
 after upgrades for some packages, opkg seems easy to crash.
 libopkg 4545

 it's seems the gz_open returns NULL in

 opkg-NOTICE: Upgrading angstrom-version on root from
 1:P1-Snapshot-20080722-r1 to 1:P1-Snapshot-20080723-r1...
 opkg-NOTICE: Downloading
 opkg: fork failed

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1104708752 (LWP 6393)]
 0x402f8398 in fread () from /lib/
 (gdb) bt
 #0  0x402f8398 in fread () from /lib/
 #1  0x40c15d00 in get_header_tar (tar_stream=0x0) at unarchive.c:558
 #2  0x40c168f4 in unarchive (src_stream=0x0, out_stream=0x403bc6a0,
 get_headers=0x40c15c98 <get_header_tar>,
     free_headers=0x40c15bc4 <free_header_tar>, extract_function=688,
     prefix=0x247b6b8 "/tmp/opkg-qe7CHA/angstrom-version-rTf0wX/",
 extract_names=0x0) at unarchive.c:267
 #3  0x40c16a94 in deb_extract (package_filename=<value optimized out>,
 out_stream=0x0, extract_function=688,
     prefix=0x40c1b3ac "%s/%s-XXXXXX", filename=0x40c06ebc "") at
 #4  0x40c0f778 in pkg_extract_control_files_to_dir_with_prefix () from
 #5  0x40c06ebc in opkg_install_pkg () from /usr/lib/
 #6  0x40c08178 in opkg_upgrade_pkg () from /usr/lib/
 #7  0x40c02498 in opkg_upgrade_package () from /usr/lib/
 #8  0x40bef58c in backend_update_package_thread () from /usr/lib
 #9  0x4023cfc8 in ?? () from /usr/lib/

Ticket URL: <> <>
openmoko trac

More information about the buglog mailing list