home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.bash.bug
- Path: sparky!uunet!cis.ohio-state.edu!geom.umn.edu!scott
- From: scott@geom.umn.edu (Scott S. Bertilson)
- Subject: bash-1.12 "pwd" hang
- Message-ID: <199208200008.AA11669@poincare.geom.umn.edu>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Wed, 19 Aug 1992 14:08:57 GMT
- Approved: bug-bash@prep.ai.mit.edu
- Lines: 70
-
- This has been very intermittent so I have had a hard time getting
- the stack trace that was requested long ago. I did one a month or
- so ago, but wanted to see it again to be sure I had a valid one.
- I'm including both below. They are from a NeXTstation monochrome
- running NeXTstep 2.2 with 20 Megs. To my surprise the last one
- actually happened on a filesystem local to the machine - I had
- assumed that it might relate to NFS earlier.
- I (for a short time at least) am going to leave the latest hung
- copy running on my machine. I'd be willing to allow access to the
- machine in some form if it would help to track the problem down.
- Looking at the backtrace, I can't help but wonder if this isn't
- some sort of NeXTstep bug. We are testing 3.0PR2 here, but this
- happens so rarely and we're running it on so few machines that I
- can't say whether that clears up the problem.
- Scott S. Bertilson
-
- -----Trace 1-----
- #0 0x50240fc in cthread_yield ()
- #1 0x50240e2 in mutex_wait_lock ()
- #2 0x500be4c in nxzonemalloc ()
- #3 0x500974c in malloc ()
- #4 0x8e70 in xmalloc (size=23) (general.c line 76)
- #5 0x27e8a in history_filename (filename=(char *) 0x467ec "/u/scott/.bash_history") (history.c line 427)
- #6 0x281fe in history_do_write (filename=(char *) 0x467ec "/u/scott/.bash_history", nelements=43, overwrite=0) (history.c line 607)
- #7 0x28306 in append_history (nelements=43, filename=(char *) 0x467ec "/u/scott/.bash_history") (history.c line 641)
- #8 0x4910 in maybe_save_shell_history () (shell.c line 815)
- #9 0x5058 in termination_unwind_protect (sig=11) (shell.c line 1304)
- #10 0x500831c in _sigtramp ()
- #11 0x500ee48 in free ()
- #12 0x1d142 in unwind_frame_discard_internal (tag=(char *) 0x35765 "saved redirects") (unwind_prot.c line 200)
- #13 0x1cf6c in without_interrupts (function=(VFunction *) 0x1d0d2 <run_unwind_protects_internal+86>, arg1=(char *) 0x35765 "saved redirects", arg2=(char *) 0x0) (unwind_prot.c line 70)
- #14 0x1cfa4 in discard_unwind_frame (tag=(char *) 0x35765 "saved redirects") (unwind_prot.c line 96)
- #15 0xd0a4 in execute_builtin_or_function (words=(struct word_list *) 0x4a728, builtin=(Function *) 0x2137e <cd_builtin+830>, var=(struct variable *) 0x0, redirects=(struct redirect *) 0x0, fds_to_close=(struct fd_bitmap *) 0x45af8, flags=0) (execute_cmd.c line 1540)
- #16 0xcace in execute_simple_command (simple_command=(struct simple_com *) 0x4a654, pipe_in=-1, pipe_out=-1, async=0, fds_to_close=(struct fd_bitmap *) 0x45af8) (execute_cmd.c line 1254)
- #17 0xb9c8 in execute_command_internal (command=(struct command *) 0x50a28, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=(struct fd_bitmap *) 0x45af8) (execute_cmd.c line 481)
- #18 0xb3e4 in execute_command (command=(struct command *) 0x50a28) (execute_cmd.c line 177)
- #19 0x4b96 in reader_loop () (shell.c line 967)
- #20 0x481e in main (argc=1, argv=(char **) 0x3fffd54, env=(char **) 0x3fffd5c) (shell.c line 762)
-
- ------Trace 2-----
- Reading symbol data from bash+syms...
- Reading symbol data from /usr/shlib/libsys_s.B.shlib...
- Reading Objective-C data...
- done.
- Type "help" for a list of commands.
- (gdb) attach 2164
- 0x50240fc in cthread_yield ()
- (gdb) backtrace
- #0 0x50240fc in cthread_yield ()
- #1 0x50240e2 in mutex_wait_lock ()
- #2 0x500be4c in nxzonemalloc ()
- #3 0x500974c in malloc ()
- #4 0x8e74 in xmalloc (size=23) (general.c line 76)
- #5 0x27e8e in history_filename (filename=(char *) 0x467ec "/u/scott/.bash_history") (history.c line 427)
- #6 0x28202 in history_do_write (filename=(char *) 0x467ec "/u/scott/.bash_history", nelements=67, overwrite=0) (history.c line 607)
- #7 0x2830a in append_history (nelements=67, filename=(char *) 0x467ec "/u/scott/.bash_history") (history.c line 641)
- #8 0x4914 in maybe_save_shell_history () (shell.c line 815)
- #9 0x505c in termination_unwind_protect (sig=11) (shell.c line 1304)
- #10 0x500831c in _sigtramp ()
- #11 0x500ee48 in free ()
- #12 0x1d146 in unwind_frame_discard_internal (tag=(char *) 0x35767 "saved redirects") (unwind_prot.c line 200)
- #13 0x1cf70 in without_interrupts (function=(VFunction *) 0x1d0d6 <unwind_frame_discard_internal>, arg1=(char *) 0x35767 "saved redirects", arg2=(char *) 0x0) (unwind_prot.c line 70)
- #14 0x1cfa8 in discard_unwind_frame (tag=(char *) 0x35767 "saved redirects") (unwind_prot.c line 96)
- #15 0xd0a8 in execute_builtin_or_function (words=(struct word_list *) 0x51594, builtin=(Function *) 0x21382 <pwd_builtin>, var=(struct variable *) 0x0, redirects=(struct redirect *) 0x0, fds_to_close=(struct fd_bitmap *) 0x49b80, flags=0) (execute_cmd.c line 1540)
- #16 0xcad2 in execute_simple_command (simple_command=(struct simple_com *) 0x4a2c8, pipe_in=-1, pipe_out=-1, async=0, fds_to_close=(struct fd_bitmap *) 0x49b80) (execute_cmd.c line 1254)
- #17 0xb9cc in execute_command_internal (command=(struct command *) 0x4a290, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=(struct fd_bitmap *) 0x49b80) (execute_cmd.c line 481)
- #18 0xb3e8 in execute_command (command=(struct command *) 0x4a290) (execute_cmd.c line 177)
- #19 0x4b9a in reader_loop () (shell.c line 967)
- #20 0x4822 in main (argc=1, argv=(char **) 0x3fffd54, env=(char **) 0x3fffd5c) (shell.c line 762)
-
-