Bug#577393: reproducibly segfaults in uswsusp's s2disk

Stanislav Maslovski stanislav.maslovski at gmail.com
Sun Apr 11 08:59:46 UTC 2010

Package: libgcrypt11
Version: 1.4.5-2
Severity: important
Tags: sid

I was playing with s2disk configuration on current sid and found that
it reproducibly (always) segfaults in libgcrypt when image compression
is disabled. Here is the uswsusp config that reveals the segfault:

# /etc/uswsusp.conf(8) -- Configuration file for s2disk/s2both 
resume device = /dev/sda5
compress = n
early writeout = n
image size = 500000000
RSA key file = /etc/uswsusp.key
shutdown method = platform
encrypt = y

With "compress = y" (the debian default) it does not segfault.

This is what I see in /var/log/messages:

Apr 11 02:43:55 kaiba kernel: [ 4397.993554] s2disk[12902]: segfault at b7442000 ip b777050a sp bf8ad450 error 7 in libgcrypt.so.11.5.3[b775f000+71000]
Apr 11 02:45:37 kaiba kernel: [ 4500.325487] s2disk[13731]: segfault at b746a000 ip b779850a sp bfc0a860 error 7 in libgcrypt.so.11.5.3[b7787000+71000]
Apr 11 02:48:13 kaiba kernel: [   94.901770] s2disk[3531]: segfault at b73eb000 ip b771950a sp bf883760 error 7 in libgcrypt.so.11.5.3[b7708000+71000]
Apr 11 02:50:06 kaiba kernel: [  207.273716] s2disk[4367]: segfault at b74d7000 ip b780550a sp bfa2fba0 error 7 in libgcrypt.so.11.5.3[b77f4000+71000]
Apr 11 02:51:57 kaiba kernel: [   48.749826] s2disk[3446]: segfault at b7510000 ip b783e50a sp bff817f0 error 7 in libgcrypt.so.11.5.3[b782d000+71000]
Apr 11 02:55:01 kaiba kernel: [  232.253808] s2disk[4334]: segfault at b744c000 ip b777a50a sp bff0d4c0 error 7 in libgcrypt.so.11.5.3[b7769000+71000]
Apr 11 02:57:18 kaiba kernel: [  369.289817] s2disk[5191]: segfault at b741e000 ip b774c50a sp bfa104b0 error 7 in libgcrypt.so.11.5.3[b773b000+71000]
Apr 11 03:03:47 kaiba kernel: [  715.277807] s2disk[6959]: segfault at b74c6000 ip b77f450a sp bfdc3a50 error 7 in libgcrypt.so.11.5.3[b77e3000+71000]
Apr 11 03:03:58 kaiba kernel: [  725.353883] s2disk[7482]: segfault at b7484000 ip b77b250a sp bfe082e0 error 7 in libgcrypt.so.11.5.3[b77a1000+71000]
Apr 11 03:30:56 kaiba kernel: [ 1359.549816] s2disk[8595]: segfault at b7422000 ip b775050a sp bf998730 error 7 in libgcrypt.so.11.5.3[b773f000+71000]
Apr 11 03:31:13 kaiba kernel: [ 1376.765793] s2disk[9400]: segfault at b73ea000 ip b771850a sp bf946020 error 7 in libgcrypt.so.11.5.3[b7707000+71000]

I tried running s2disk from within gdb, but that freezed my system,
therefore no more info at the moment.

The severity of this bug should probably be higher (at RC-level).

-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (100, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgcrypt11 depends on:
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  libgpg-error0                 1.6-1      library for common error values an

libgcrypt11 recommends no packages.

Versions of packages libgcrypt11 suggests:
pn  rng-tools                     <none>     (no description available)

-- no debconf information

More information about the Pkg-gnutls-maint mailing list