Re: [9fans] Irc segmentation fault
On 29 June 2017 at 11:29, Nick Owenswrote: > you probably need to use gcc -O0 -g for that. Doesn't it matter that the program is normally built with 9c? Thanks Ruda
Re: [9fans] Irc segmentation fault
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"wrote: On 29 June 2017 at 09:39, Nick Owens 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. 0x7749bedf in raise () from /lib64/libpthread.so.0 (gdb) where #0 0x7749bedf in raise () from /lib64/libpthread.so.0 #1 0x0040df34 in child () at daemonize.c:38 #2 0x0040e18e in _threadsetupdaemonize () at daemonize.c:153 #3 0x0040de3d in p9main (argc=2, argv=0x7fffdcb8) at thread.c:721 #4 0x00402ae9 in main (argc=, argv=) at main.c:10 which I really don't understand... How could argc, argv be 'optimized out'? Thanks for any comments! Ruda
Re: [9fans] Irc segmentation fault
On 29 June 2017 at 09:39, Nick Owenswrote: > 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. 0x7749bedf in raise () from /lib64/libpthread.so.0 (gdb) where #0 0x7749bedf in raise () from /lib64/libpthread.so.0 #1 0x0040df34 in child () at daemonize.c:38 #2 0x0040e18e in _threadsetupdaemonize () at daemonize.c:153 #3 0x0040de3d in p9main (argc=2, argv=0x7fffdcb8) at thread.c:721 #4 0x00402ae9 in main (argc=, argv=) at main.c:10 which I really don't understand... How could argc, argv be 'optimized out'? Thanks for any comments! Ruda
Re: [9fans] Irc segmentation fault
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. On Jun 29, 2017 00:33, "Rudolf Sykora"wrote: > > $ Irc irc.freenode.org > > Segmentation fault > > Do I have to use acid to debug it, or is it possible to use the usual > unix gdb to debug this on p9p? > > Thanks > Ruda > >
Re: [9fans] Irc segmentation fault
> $ Irc irc.freenode.org > Segmentation fault Do I have to use acid to debug it, or is it possible to use the usual unix gdb to debug this on p9p? Thanks Ruda