gcal failed with a segmentation fault.

Bug #102373 reported by Jeff Bralley
30
Affects Status Importance Assigned to Milestone
gcal (Debian)
Fix Released
Unknown
gcal (Ubuntu)
Fix Released
Medium
Siegfried Gevatter

Bug Description

Binary package hint: gcal

$ Uname ; file /usr/bin/gcal ; ldd /usr/bin/gcal ; apt-show-versions gcal ; gcal --help
uname --kernel-name (-s) : Linux
uname --nodename (-n) : rose4
uname --kernel-release (-r) : 2.6.20-13-generic
uname --kernel-version (-v) : #2 SMP Sat Mar 24 23:12:02 UTC 2007
uname --machine (-m) : x86_64
uname --processor (-p) : unknown
uname --hardware-platform (-i) : unknown
uname --operating-system (-o) : GNU/Linux
/usr/bin/gcal: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
        libm.so.6 => /lib/libm.so.6 (0x00002b38eddf5000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x00002b38ee077000)
        libc.so.6 => /lib/libc.so.6 (0x00002b38ee2d3000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b38ee624000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b38edbd8000)
gcal/feisty uptodate 3.01.1-5.1
Segmentation fault (core dumped)

ProblemType: Crash
Architecture: amd64
Date: Tue Apr 3 05:01:32 2007
Dependencies:
 tzdata 2007b-0ubuntu1
 libncurses5 5.5-5ubuntu2
 belocs-locales-bin 2.4-2ubuntu2
 locales 2.3.23
 libc6 2.5-0ubuntu12
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gcal
Package: gcal 3.01.1-5.1
PackageArchitecture: amd64
ProcCmdline: gcal
ProcCwd: /home/jeffb
ProcEnviron:
 SHELL=/bin/bash
 PATH=.:/home/jeffb/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sbin:/usr/sbin:/opt/firefox:/opt/thunderbird:/opt/azureus:/usr/X11R6/lib/xscreensaver
 LANG=en_US.UTF-8
Signal: 11
SourcePackage: gcal
StacktraceTop:
 stpcpy () from /lib/libc.so.6
 ?? ()
 ?? ()
 __libc_start_main () from /lib/libc.so.6
 ?? ()
Uname: Linux rose4 2.6.20-13-generic #2 SMP Sat Mar 24 23:12:02 UTC 2007 x86_64 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Related branches

Revision history for this message
Jeff Bralley (bralley) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:stpcpy () from /lib/libc.so.6
?? ()
?? ()
__libc_start_main () from /lib/libc.so.6
?? ()

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
James (chiisu81) wrote : Re: gcal failed with a segnentation fault.

Confirmed for Feisty Amd64

Revision history for this message
James (chiisu81) wrote :

$ uname ; file /usr/bin/gcal ; ldd /usr/bin/gcal ; apt-show-versions gcal ; gcal --help
Linux
/usr/bin/gcal: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
        libm.so.6 => /lib/libm.so.6 (0x00002b7169861000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x00002b7169ae3000)
        libc.so.6 => /lib/libc.so.6 (0x00002b7169d3f000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b716a090000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b7169644000)
gcal/feisty uptodate 3.01.1-5.1
Segmentation fault (core dumped)

Revision history for this message
James (chiisu81) wrote :

gcal seems to be working ok in Gutsy beta

Revision history for this message
Jeff Bralley (bralley) wrote : Re: [Bug 102373] Re: gcal failed with a segmentation fault.

On Saturday 06 October 2007 11:12:33 am jclemon wrote:
> gcal seems to be working ok in Gutsy beta
>

Yes it is.
Thanks.

--
Jeff Bralley 251-599-1259 CST Mobile,AL,USA
    mailto:<email address hidden>
    http://bralley.networklight.net/ http://bralley.com/
    !Increase the Dosage!

Revision history for this message
Matt C (mvc1095) wrote :

gcal is crashing for me in Gutsy.

Revision history for this message
Jeff Bralley (bralley) wrote :
Download full text (14.9 KiB)

Yes, for me too on amd64.
I have attached gcal.[sl]trace

On Tuesday 23 October 2007 01:59:39 pm Matt C wrote:
> gcal is crashing for me in Gutsy.
>
> ** Attachment added: "_usr_bin_gcal.1000.crash"
> http://launchpadlibrarian.net/10134700/_usr_bin_gcal.1000.crash

--
Jeff Bralley 251-599-1259 CST Mobile,AL,USA
    mailto:<email address hidden>
    http://bralley.networklight.net/ http://bralley.com/

execve("/usr/bin/gcal", ["gcal"], [/* 33 vars */]) = 0
brk(0) = 0x5ca000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2abf4eaa0000
uname({sys="Linux", node="rose4", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2abf4eaa1000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=63391, ...}) = 0
mmap(NULL, 63391, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2abf4eaa3000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320>\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=526568, ...}) = 0
mmap(NULL, 2621672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2abf4eca1000
mprotect(0x2abf4ed21000, 2093056, PROT_NONE) = 0
mmap(0x2abf4ef20000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7f000) = 0x2abf4ef20000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \347\1\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=375920, ...}) = 0
mmap(NULL, 2473128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2abf4ef22000
mprotect(0x2abf4ef71000, 2097152, PROT_NONE) = 0
mmap(0x2abf4f171000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4f000) = 0x2abf4f171000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\334\1\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1408312, ...}) = 0
mmap(NULL, 3514744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2abf4f17e000
mprotect(0x2abf4f2d0000, 2093056, PROT_NONE) = 0
mmap(0x2abf4f4cf000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x151000) = 0x2abf4f4cf000
mmap(0x2abf4f4d4000, 16760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2abf4f4d4000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \16\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14624, ...}) = 0
mmap(NULL, 2109728, PRO...

Revision history for this message
Albert Damen (albrt) wrote :

The problem is still present in Hardy on amd64. A rebuild fixes the problem, but the package needs a little more work.

Changed in gcal:
assignee: nobody → albrt
status: New → In Progress
Revision history for this message
Albert Damen (albrt) wrote :

Sponsor, can you please sponsor this update for gcal?

gcal has given segfaults on amd64 since dapper, and has not been rebuilt since 2005. Last week a rebuild solved the problem, but now a change in the CFLAGS setting is required to build with the latest dpkg version. Since a change is needed anyway and because the package has a low frequency of updates (last updates were 2001 and 2004), I have also fixed the lintian warnings. Finally, I have added a pager setting which makes gcal -p use the setting of /etc/alternatives/pager (see debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=266365).

Changed in gcal:
status: In Progress → Confirmed
Albert Damen (albrt)
Changed in gcal:
assignee: albrt → nobody
Revision history for this message
Daniel Holbach (dholbach) wrote :

Why is the new debhelper version necessary? Also you introduce quite a lot of other changes over the Debian package, which need to be merged manually. All these changes would only make sense if they go to Debian too.

Revision history for this message
Albert Damen (albrt) wrote :

Considering the very low update frequency from debian and the guidelines given here: http://<email address hidden>/msg256671.html it seemed good to me to give the package a full uplift, including the debhelper and standards-version bump. In my opinion the chance we would need to consider a merge or sync would be very low.
However, I have removed the lintian fixes and created the debdiff which only changes the CFLAGS setting to prevent a FTBFS with the latest dpkg.

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Given that the package is quite abandoned, the changes look good to me (as long as you forward the debdiff to Debian -in a bug, not in a private mail to the Maintainer-), except one of them: don't change the debhelper level to 6, but instead to 4 or 5 (to make backports easier).

Daniel, are you OK with the full debdiff being uploaded?

Revision history for this message
Siegfried Gevatter (rainct) wrote :

(Unsubscribing ubuntu-universe-sponsors for now and subscribing Daniel and me.)

Revision history for this message
Daniel Holbach (dholbach) wrote :

Looks good. Go ahead and upload! :-)

Changed in gcal:
assignee: nobody → rainct
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
Siegfried Gevatter (rainct) wrote :

Uploaded (after changing compat level to 4). Thanks!

Changed in gcal:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcal - 3.01.1-5.1ubuntu1

---------------
gcal (3.01.1-5.1ubuntu1) hardy; urgency=low

  * Rebuild to fix segfault on amd64 (LP: #102373)
  * Change quoting of CFLAGS, to prevent FTBFS with latest dpkg version
  * Correct lintian warnings:
    - Escape minus signs in the gcal manpage
    - Bump debhelper compat from 3 (deprecated) to 4
    - Build depend on debhelper >= 6.0.0
    - Use debian/compat instead of DH_COMPAT
    - Do not ignore make errors in clean rule
    - Bump standards-version from 3.5.5 to 3.7.3
    - Update FSF address in debian/copyright
    - Correct spelling error in Debian GNU/Linux in debian/copyright
  * Use pager as default pager command, as required by Debian policy 11.4,
    by setting PAGER1=pager for the configure command
  * Modify Maintainer value to match the DebianMaintainerField
    specification.

 -- Albert Damen <email address hidden> Sun, 17 Feb 2008 15:30:35 +0100

Changed in gcal:
status: Fix Committed → Fix Released
Revision history for this message
Albert Damen (albrt) wrote :

The patch has been forwarded to Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=266365
Also, please note gcal was orphaned in Debian 10 days ago: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465930

Changed in gcal:
status: Unknown → New
Changed in gcal:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.