Bug 148998 - mail/prayer 1.3.3 exits with segmentation fault
Summary: mail/prayer 1.3.3 exits with segmentation fault
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-27 13:30 UTC by mats
Modified: 2010-07-29 15:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mats 2010-07-27 13:30:04 UTC
Prayer 1.3.3 (mail/prayer) crashes with segmentation error when started. Prayer has been compiled and installed from the ports tree with default settings. Here is information on the binary:

# ldd /usr/local/sbin/prayer
/usr/local/sbin/prayer:
        libcrypt.so.5 => /lib/libcrypt.so.5 (0x280bd000)
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x280d6000)
        libutil.so.8 => /lib/libutil.so.8 (0x281cc000)
        libz.so.5 => /lib/libz.so.5 (0x281db000)
        libldap-2.4.so.7 => /usr/local/lib/libldap-2.4.so.7 (0x281ed000)
        libtidy-0.99.so.0 => /usr/local/lib/libtidy-0.99.so.0 (0x28228000)
        libssl.so.6 => /usr/lib/libssl.so.6 (0x28272000)
        libcrypto.so.6 => /lib/libcrypto.so.6 (0x282ba000)
        libdb41.so.1 => /usr/local/lib/libdb41.so.1 (0x28415000)
        libc.so.7 => /lib/libc.so.7 (0x284c4000)
        liblber-2.4.so.7 => /usr/local/lib/liblber-2.4.so.7 (0x285de000)
#

Here is information when running through GNU gdb, "gdb /usr/local/sbin/prayer":

(gdb) run
Starting program: /usr/local/sbin/prayer 

Program received signal SIGSEGV, Segmentation fault.
0x28576c47 in freeaddrinfo () from /lib/libc.so.7
(gdb) bt
#0  0x28576c47 in freeaddrinfo () from /lib/libc.so.7
#1  0x0806478a in os_bind_inet_socket (port=80, interface=0x28604e34 "172.16.25.101") at os.c:241
#2  0x0804bc78 in prayer_http_port_open (prayer=0x28633344, port=80, use_ssl=0, interface=0x28604e34 "172.16.25.101") at prayer.c:162
#3  0x0804b5b4 in main (argc=1, argv=0xbfbfebb8) at prayer_main.c:249
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-07-27 14:35:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bapt

Over to maintainer.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-07-29 15:08:07 UTC
bapt        2010-07-29 14:07:51 UTC

  FreeBSD ports repository

  Modified files:
    mail/prayer          Makefile 
    mail/prayer/files    patch-Config 
  Added files:
    mail/prayer/files    patch-lib__os.c 
  Log:
  - Fix segfault at run
  - Fix depend on cclient
  - Fix ldap depend
  
  PR:             ports/148998
  Submitted by:   Mats Dufberg <mats _at_ dufberg.se>
  Approved by:    jadawin@ (co-mentor)
  
  Revision  Changes    Path
  1.20      +6 -5      ports/mail/prayer/Makefile
  1.8       +7 -37     ports/mail/prayer/files/patch-Config
  1.1       +11 -0     ports/mail/prayer/files/patch-lib__os.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2010-07-29 15:10:55 UTC
State Changed
From-To: open->closed

Fixed. Thanks!