mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Solar Designer <solar@openwall.com>
To: musl@lists.openwall.com
Subject: Re: cluts daily reports 08/11 - fixes to buf and alloc
Date: Fri, 12 Aug 2011 06:48:33 +0400	[thread overview]
Message-ID: <20110812024833.GA4765@openwall.com> (raw)
In-Reply-To: <4E448E47.6040306@gmail.com>

On Fri, Aug 12, 2011 at 04:21:59AM +0200, Luka Mar??eti?? wrote:
> On 08/11/2011 09:08 PM, Solar Designer wrote:
> >Thanks for the report.  Where's the final line of diffstat output,
> >though?  The above says that you mostly deleted a few lines from buf.c,
> >but it does not tell how many and whether you also added/edited
> >anything.  Overall, it does show that you made very little progress.
> 
> Hey, I just checked my e-mail. I removed ~ files, binaries, git data 
> etc, which is why I thought the last line made little sense.

Going forward, please remove those extra files before you run
diff|diffstat.  Don't edit diffstat output.  If needed, you may make
copies of the cluts tree and remove extra files from the copies only.

> >You should try not only to fix problems in code already written, but
> >also make progress at further tasks each and every day.
> 
> Buggy code doesn't help much.

True, but you can't afford to spend over 50% of the remaining GSoC time
on fixing bugs and getting stuck on some of them.  This would be OK if
you already had everything implemented, but you don't.

> That said, I did focus on pthread_eintr today, rather than alloc.

OK.

> I'm pretty stuck with alloc. I just can't get 
> it to work with musl. Valgrind is clean, strace says little (or perhaps 
> I just can't interpret it well), and gdb - it just won't follow the 
> second child, so I can't step through it as I hoped to do.

This may or may not be the best approach, but you may try inserting:

asm("int3");

just in the child process or thread that you want interrupted.  You may
even make the int3 conditional in the code (check whatever condition you
like with an if).  Or at high level, you may set the same breakpoint
from gdb itself.

Alexander


      reply	other threads:[~2011-08-12  2:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-11  2:14 Luka Marčetić
2011-08-11 19:08 ` Solar Designer
2011-08-12  2:21   ` Luka Marčetić
2011-08-12  2:48     ` Solar Designer [this message]

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=20110812024833.GA4765@openwall.com \
    --to=solar@openwall.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).