Bug 151436 - [patch] Fix www/kannel on amd64
Summary: [patch] Fix www/kannel on amd64
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: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 22:20 UTC by Dmitry Pryanishnikov
Modified: 2010-10-16 10:20 UTC (History)
0 users

See Also:


Attachments
file.diff (265 bytes, patch)
2010-10-13 22:20 UTC, Dmitry Pryanishnikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Pryanishnikov 2010-10-13 22:20:08 UTC
Binaries produced by the www/kannel port (e.g. bearerbox) coredump during the initialization (Segmentation fault) on amd64 under 8-STABLE. I've tracked the problem down to the files/patch-af file (which patches the gwlib/gwthread-pthread.c file). This patch contains an obvious variable type error:

+    int stack_size;

+    pthread_attr_getstacksize(&thread_attr, &stack_size);

However, 2nd argument of the pthread_attr_getstacksize() must have type size_t *, not int *. On amd64 those types have different sizes (as distinct from i386 where the problem doesn't manifest itself).

How-To-Repeat: Install www/kannel on amd64 and try to run e.g. bearerbox.
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2010-10-15 14:25:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

I will take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-10-16 10:17:25 UTC
sunpoet     2010-10-16 09:17:20 UTC

  FreeBSD ports repository

  Modified files:
    www/kannel           Makefile 
    www/kannel/files     patch-af 
  Log:
  - Eliminate coredump on amd64
  - Bump PORTREVISION
  
  PR:             ports/151436
  Submitted by:   Dmitry Pryanishnikov <lynx.ripe@gmail.com>
  Approved by:    pgollucci (mentor, implicit)
  
  Revision  Changes    Path
  1.34      +1 -1      ports/www/kannel/Makefile
  1.4       +1 -1      ports/www/kannel/files/patch-af
_______________________________________________
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 Po-Chuan Hsieh freebsd_committer freebsd_triage 2010-10-16 10:17:30 UTC
State Changed
From-To: open->closed

Committed. Thanks!