9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Bruce Ellis" <brucee@chunder.com>
To: <9fans@cse.psu.edu>
Subject: [9fans] notify woe
Date: Wed,  7 Apr 2004 11:10:38 +1000	[thread overview]
Message-ID: <015701c41c3d$7c209770$8201a8c0@cc77109e> (raw)

gee, don't call malloc from a notify function, this is from mk ...

acid: stk()
sleep()+0x7 /sys/src/libc/9syscall/sleep.s:5
lock(lk=0x188b8)+0x88 /sys/src/libc/port/lock.c:22
plock(p=0x17814)+0x12 /sys/src/libc/port/malloc.c:78
poolalloc(p=0x17814,n=0x1d)+0xf /sys/src/libc/port/pool.c:1096
malloc(size=0x15)+0x1c /sys/src/libc/port/malloc.c:199
wait()+0x87 /sys/src/libc/9sys/wait.c:22
waitfor(msg=0x7fffc600)+0x8 /sys/src/cmd/mk/plan9.c:144
waitup(retstatus=0x0,echildok=0x1)+0x5a /sys/src/cmd/mk/run.c:119
killchildren(msg=0x7fffc6e8)+0x59 /sys/src/cmd/mk/run.c:269
notifyf(msg=0x7fffc6e8)+0x7b /sys/src/cmd/mk/plan9.c:294
notifier+0x30 /sys/src/libc/port/atnotify.c:15

actually don't call wait, or any library function that allocates,
from a notify function.  how's my timing in interrupting a malloc?

brucee


             reply	other threads:[~2004-04-07  1:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-07  1:10 Bruce Ellis [this message]
2004-04-07  1:40 ` William Josephson
2004-04-07  2:16   ` Bruce Ellis
2004-04-07  3:28     ` William Josephson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='015701c41c3d$7c209770$8201a8c0@cc77109e' \
    --to=brucee@chunder.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).