From: mischief@offblast.org (Nick Owens)
Subject: [9fans] Irc segmentation fault
Date: Thu, 29 Jun 2017 02:29:29 -0700 [thread overview]
Message-ID: <CAH_zEu6RcQQqm7QOrASuHBLGjN+gVm=_tV=quv+-vXPouLk+PA@mail.gmail.com> (raw)
In-Reply-To: <CAH_zEu663ZGshz1fFsVF4LrkJBGeNYGsR8bf4oXuFv4SKBdW-g@mail.gmail.com>
you probably need to use gcc -O0 -g for that. but it looks like the problem
is in dameonize.c:38. lowering optimization might help since there might be
inlined functions.. haven't really looked at Irc.
On Jun 29, 2017 02:24, "Rudolf Sykora" <rudolf.sykora at gmail.com> wrote:
On 29 June 2017 at 09:39, Nick Owens <mischief at offblast.org> wrote:
> acid is next to impossible to use on unix systems. just run gdb with
'thread
> apply all bt'.. should give you an idea of what's wrong.
If I run Irc in gdb, I get
(gdb) run irc.freenode.org
Starting program: /usr/local/plan9port/bin/Irc irc.freenode.org
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff749bedf in raise () from /lib64/libpthread.so.0
(gdb) where
#0 0x00007ffff749bedf in raise () from /lib64/libpthread.so.0
#1 0x000000000040df34 in child () at daemonize.c:38
#2 0x000000000040e18e in _threadsetupdaemonize () at daemonize.c:153
#3 0x000000000040de3d in p9main (argc=2, argv=0x7fffffffdcb8) at
thread.c:721
#4 0x0000000000402ae9 in main (argc=<optimized out>, argv=<optimized out>)
at main.c:10
which I really don't understand...
How could argc, argv be 'optimized out'?
Thanks for any comments!
Ruda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.9fans.net/private/9fans/attachments/20170629/b99a304c/attachment-0001.html>
next prev parent reply other threads:[~2017-06-29 9:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-27 14:57 Rudolf Sykora
2017-06-29 7:32 ` Rudolf Sykora
2017-06-29 7:39 ` Nick Owens
2017-06-29 9:20 ` Rudolf Sykora
[not found] ` <CAH_zEu663ZGshz1fFsVF4LrkJBGeNYGsR8bf4oXuFv4SKBdW-g@mail.gmail.com>
2017-06-29 9:29 ` Nick Owens [this message]
2017-06-29 9:51 ` Rudolf Sykora
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='CAH_zEu6RcQQqm7QOrASuHBLGjN+gVm=_tV=quv+-vXPouLk+PA@mail.gmail.com' \
--to=mischief@offblast.org \
/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).