Project

General

Profile

Bug #652

libc uninitialized variable

Added by Alexander Stetsenko about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
lib - userland libraries
Start date:
2011-01-20
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

Crash while using apt-get update on NCP4 prealfa:

::status

debugging core file of http (32-bit) from ncp4
file: /usr/lib/apt/methods/http
initial argv: /usr/lib/apt/methods/http
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=fe9f5ff8

$C

080479e8 libc_hwcap1.so.1`_free_unlocked+0x20(fe9f6000)
08047a08 libc_hwcap1.so.1`free+0x3c(fe9f6000, 0, 8047a50, fe9053c2)
08047a98 libc_hwcap1.so.1`mktime1+0x4e6(8047b98, 0, 8047ac8, fedc2624, 8058cae, fe9f6000)
08047ab8 libc_hwcap1.so.1`timegm+0x10(8047b98, fe9e0810, 8047b48, fe93cf96)
08047b48 libc_hwcap1.so.1`__strptime+0xd5d(8058c94, fedc260c, 8047b98, 8047b6c, 806f254, 806f237)
08047b78 libc_hwcap1.so.1`strptime+0x1f(8058c94, fedc260c, 8047b98, fec79251, 8047c2c, 806f237)
08047bc8 libapt-pkg.so.4.10.0`_Z16RFC1123StrToTimePKcRl+0x4c(8058c94, 805b5bc, fedc6125, 0, 0, 804ad30)
08047c58 libapt-pkg.so.4.10.0`_ZN12pkgAcqMethod3RunEb+0x200(8047dd8, 1, 0, 1b6, 20303031, 61706143)
08047da8 0x804f58b(8047dd8, 8055cc4, 6, fefa07e8, e0, 8053495)
08047e18 0x8052e07(804a89a, feffbafc, 8047e48, 804b1b3, 1, 8047e54)
08047e48 0x804b1b3(1, 8047ef8, 0, 8047f12, 8047f16, 8047f2a)

Fix is easy - initialize variable "unused" in mktime1 :)

#1

Updated by Alexander Stetsenko about 10 years ago

  • Category set to lib - userland libraries
#2

Updated by Garrett D'Amore about 10 years ago

  • Status changed from New to Resolved

This is fixed in:

changeset: 13270:52325acbd90e
tag: tip
parent: 13268:b749961aba64
user: Alexander Stetsenko <>
date: Thu Jan 20 22:09:09 2011 +0300
description:
652 libc uninitialized variable
Reviewed by:
Approved by:

Also available in: Atom PDF