Bug 101327 - port cad/pcb. Load netlist causes crash due to unloaded PTHREAD
Summary: port cad/pcb. Load netlist causes crash due to unloaded PTHREAD
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: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 20:40 UTC by Michael Glaum
Modified: 2006-09-20 21:13 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 Michael Glaum 2006-08-03 20:40:11 UTC
If you have a pcb file loaded and then try to load the associated
netlist, via the program's menu -> File -> load netlist file,
the program pcb terminates complaining
/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined symbol "pthread_getschedparam".

So that means cad/pcb/Makefile etc needs to effect a patch
on the work/pcb/Makefile etc to refer to pthread in the LIB etc?

How-To-Repeat: cd /usr/ports/cad/pcb/work/pcb-20060414/example
pcb LED
Then select the menu item File -> load netlist file.
Program will close with the aforementioned loader message.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-03 20:40:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->hrs

Over to maintainer
Comment 2 Hiroki Sato freebsd_committer freebsd_triage 2006-08-06 17:48:50 UTC
Michael Glaum <mglaum@kvh.com> wrote
  in <200608031939.k73JdwxY035650@www.freebsd.org>:

mg> >Description:
mg> If you have a pcb file loaded and then try to load the associated
mg> netlist, via the program's menu -> File -> load netlist file,
mg> the program pcb terminates complaining
mg> /libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined symbol "pthread_getschedparam".

 I think there is a high possibility that glib20 and gtk20 on your system
 have a problem.  I tried clean install of cad/pcb and the dependencies
 on 6.1 system but could not reproduce that error.

 Could you try to reinstall the related packages?

-- 
| Hiroki SATO
Comment 3 mglaum 2006-08-11 21:36:10 UTC
Michael Glaum <mglaum@kvh.com> submitted ports/101327
mg> >Description:
mg> If you have a pcb file loaded and then try to load the associated
mg> netlist, via the program's menu -> File -> load netlist file,
mg> the program pcb terminates complaining
mg> /libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined
symbol "pthread_getschedparam".

Hiroki Sato <hrs@FreeBSD.org> followed up:
HS> I think there is a high possibility that glib20 and gtk20 on your
HS> system have a problem.  I tried clean install of cad/pcb and the
HS> dependencies on 6.1 system but could not reproduce that error.
HS> Could you try to reinstall the related packages?

I'm thinking you might be onto something. If I install a clean FreeBSD6.1,
cvsup the ports, install pcb via the ports, all is fine. No loader error.

If I then pkg_add -r gnome2 and subsequently use Gnome for my window
environment, the bug comes back.

I'm thinking I should install FreeBSD again and install Gnome2 via the
ports. That'll probably work?
Comment 4 mglaum 2006-08-17 23:14:23 UTC
I haven't been able to reproduce your error-free running of cad/pcb.

If I install a clean 6.1, update the cvs ports directory and install both
x11/gnome2 and then cad/pcb via the ports, I still get the same error
/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined symbol
"pthread_getschedparam".

So did you try the "pcb program's menu -> File -> load netlist file"?
Comment 5 Hiroki Sato freebsd_committer freebsd_triage 2006-09-18 19:14:01 UTC
State Changed
From-To: open->feedback

A patch has been committed.  Waiting a feedback about if it works or not.
Comment 6 dfilter service freebsd_committer freebsd_triage 2006-09-18 19:15:29 UTC
hrs         2006-09-18 18:13:41 UTC

  FreeBSD ports repository

  Modified files:
    cad/pcb              Makefile 
  Log:
  Add pthread dependency to fix a crash problem.
  
  PR:             ports/101327
  Spotted by:     Michael Glaum <mglaum@sdf.lonestar.org>
  
  Revision  Changes    Path
  1.53      +3 -2      ports/cad/pcb/Makefile
_______________________________________________
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 7 mglaum 2006-09-20 19:15:33 UTC
Hiroki Sato <hrs@FreeBSD.org> committed the patch 2006-09-18 18:13:41 UTC
         Revision Changes Path
         1.53 +3 -2 ports/cad/pcb/Makefile

This appears to fix the "load netlist" bug.

I believe this PR should be ...

         CLOSED.

Many thanks to Hiroki.
Comment 8 Hiroki Sato freebsd_committer freebsd_triage 2006-09-20 21:12:28 UTC
State Changed
From-To: feedback->closed

The problem has been fixed.  Thanks for the report!