Bug 134474 - deskutils/wmpinboard segfaults on startup
Summary: deskutils/wmpinboard segfaults on startup
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 22:10 UTC by Pavel Gorshkov
Modified: 2009-07-24 18:10 UTC (History)
0 users

See Also:


Attachments
wmpinboard-missing-sentinel.diff (647 bytes, patch)
2009-05-27 14:12 UTC, Pavel Gorshkov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Gorshkov 2009-05-11 22:10:03 UTC
deskutils/wmpinboard segfaults on startup regardless of what the locale settings are.
The actual segfault occurs in libX11-1.2.1/src/xlibi18n/ICWrap.c, at line 117:

This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run
Starting program: /tmp/wmpinboard-1.0.fromports/src/wmpinboard

Program received signal SIGSEGV, Segmentation fault.
0x0000000800694e2a in _XIMCountVaList (var=0x7fffffffe060,
    total_count=0x7fffffffe08c) at ICWrap.c:117
117             if (!strcmp(attr, XNVaNestedList)) {
(gdb) bt
#0  0x0000000800694e2a in _XIMCountVaList (var=0x7fffffffe060,
    total_count=0x7fffffffe08c) at ICWrap.c:117
#1  0x0000000800695307 in XCreateIC (im=0x80114e020) at ICWrap.c:243
#2  0x000000000040f4de in init_xlocale () at xmisc.c:260
#3  0x000000000040e4bb in main (argc=1, argv=0x7fffffffe920)
    at wmpinboard.c:2118
(gdb) display attr
1: attr = 0x800000000 <Error reading address 0x800000000: Bad address>

How-To-Repeat: Just build and run it.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-05-11 22:10:16 UTC
Maintainer of deskutils/wmpinboard,

Please note that PR ports/134474 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/134474

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-05-11 22:10:17 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Thomas Kempka 2009-05-16 09:17:02 UTC
Edwin Groothuis schrieb:
> Maintainer of deskutils/wmpinboard,
> 
> Please note that PR ports/134474 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/134474
> 

Approved!
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2009-05-17 01:31:21 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 5 Pavel Gorshkov 2009-05-27 14:12:04 UTC
Fixed.  XCreateIC() was getting 4 zero bytes + 4 extra bytes of
garbage instead of the NULL pointer needed to terminate the va_list.
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2009-07-24 18:03:09 UTC
State Changed
From-To: open->closed

committed, thanks
Comment 7 dfilter service freebsd_committer freebsd_triage 2009-07-24 18:03:12 UTC
arved       2009-07-24 17:02:57 UTC

  FreeBSD ports repository

  Modified files:
    deskutils/wmpinboard Makefile 
  Added files:
    deskutils/wmpinboard/files patch-xmisc.c 
  Log:
  Fix execution on 64bit platforms
  
  PR:             134474
  Submitted by:   Pavel Gorshkov
  
  Revision  Changes    Path
  1.24      +1 -1      ports/deskutils/wmpinboard/Makefile
  1.1       +22 -0     ports/deskutils/wmpinboard/files/patch-xmisc.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"