pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/38613: www/firefox 2.0.0.14: segmentation fault durning compilation



The following reply was made to PR pkg/38613; it has been noted by GNATS.

From: johan.wallen%helsinki.fi@localhost (Johan =?iso-8859-1?Q?Wall=E9n?=)
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/38613: www/firefox 2.0.0.14: segmentation fault durning 
compilation
Date: Wed, 14 May 2008 02:18:35 +0300

 A more detailed backtrace when firefox was compiled with CFLAGS+=-g:
 
   Core was generated by `shlibsign'.
   Program terminated with signal 11, Segmentation fault.
   #0  0xefbf719c in pthread_key_create () from /usr/lib/libpthread.so.0
   (gdb) bt
   #0  0xefbf719c in pthread_key_create () from /usr/lib/libpthread.so.0
   #1  0xefe0cca8 in _PR_InitThreads (type=<value optimized out>, 
priority=PR_PRIORITY_NORMAL, maxPTDs=<value optimized out>) at ptthread.c:920
   #2  0xefdfd91c in _PR_ImplicitInitialization () at prinit.c:216
   #3  0xefdf70f0 in PR_Calloc (nelem=1, elsize=4) at prmem.c:472
   #4  0xefe5329c in PL_CreateOptState (argc=4, argv=0xffffbf94, 
options=0x18103e4 "d:i:o:v") at plgetopt.c:78
   #5  0x01802bb8 in main ()
   (gdb) up
   #1  0xefe0cca8 in _PR_InitThreads (type=<value optimized out>, 
priority=PR_PRIORITY_NORMAL, maxPTDs=<value optimized out>) at ptthread.c:920
   (gdb) print pt_book
 $  1 = {ml = 0x182c180, cv = 0x1829080, system = 0, user = 1, this_many = 1, 
key = 0, first = 0x182d000, last = 0x182d000}
   (gdb) print _pt_thread_death
   $2 = {void (void *)} 0xefe0cae4 <_pt_thread_death>
   (gdb) up
   #2  0xefdfd91c in _PR_ImplicitInitialization () at prinit.c:216
   (gdb) up
   #3  0xefdf70f0 in PR_Calloc (nelem=1, elsize=4) at prmem.c:472
   (gdb) print _pr_initialized
   $3 = 1
   (gdb) up
   #4  0xefe5329c in PL_CreateOptState (argc=4, argv=0xffffbf94, 
options=0x18103e4 "d:i:o:v") at plgetopt.c:78
 (gdb) print argv[0]
   $4 = 0xffffd22c 
"/usr/pkgsrc/www/firefox/work/mozilla/security/nss/cmd/shlibsign/NetBSD4.99.62_OPT.OBJ/shlibsign"
   (gdb) print argv[1]
   $5 = 0xffffd28c "-v"
   (gdb) print argv[2]
   $6 = 0xffffd28f "-i"
   (gdb) print argv[3]
   $7 = 0xffffd292 
"/usr/pkgsrc/www/firefox/work/mozilla/dist/lib/libsoftokn3.so"
 
 The only suspectable ting I was able to find is the comment 
 
      * NB: The destructor logic seems to have a bug so it isn't used.
      * NBB: Oh really? I'm going to give it a spin - AOF 19 June 1998.
      * More info - the problem is that pthreads calls the destructor
      * eagerly as the thread returns from its root, rather than lazily
      * after the thread is joined. Therefore, threads that are joining
      * and holding PRThread references are actually holding pointers to
      * nothing.
 
 at line 912 in mozilla/nsprpub/pr/src/pthreads/ptthread.c .
 


Home | Main Index | Thread Index | Old Index