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

Bug#411069: Not so random endless loop/crash

Package: puf
Version: 1.0.0-3
Severity: important

I've found that puf crashes almost all the time when attempts to do a
recursive fetch like

puf -r http://www.htdig.org/files

This ends in an endless loop after some file downloaded (n < 10) on
all my machine (all i386).

I've tried to find the problem and i've found that the url.c source
causes the error if is compiled with -ON for N >= 1 with gcc-4.1. If
compiled with -O0 all works ok wathever is the optimization settings
for other source objects.

The error (a s = s->next disappaired) is on the line containing h_find
(a macro defined in puf.h) in the first function of file (find_url).

I've investigated a lot on this problem, but i've not found a solution
other then disabling the optimization at all.

My gcc knowledge is not so big, so i'm asking for help.

Any help will be apreciated.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)

Versions of packages puf depends on:
ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries

puf recommends no packages.

-- no debconf information

|    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
| mnencia@prato.linux.it | http://www.prato.linux.it/~mnencia       |
Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4

Attachment: signature.asc
Description: Digital signature

Reply to: