OK, pushed to git with those 2 includes (should have checked that
myself).

On Mon, 02 Sep 2013 21:52:52 +0200 (CEST)
Richard Levitte <[email protected]> wrote:

> That worked like a charm!  (which shows that gdb on my system is
> allowed to attach to other processes, obviously)
> 
> BTW, I had to add the following two lines in src/common/darktable.c to
> have waitpid declared properly:
> 
> #include <sys/types.h>
> #include <sys/wait.h>
> 
> Cheers,
> Richard
> 
> In message <[email protected]> on Mon, 2 Sep 2013 
> 21:04:10 +0400, parafin <[email protected]> said:
> 
> parafin> I have another theory about what's causing the hang, can you please 
> try
> parafin> the attached patch? it replaces popen/read/write with fork/exec, so
> parafin> that there's no I/O deadlock possible between DT and gdb processes.
> parafin> 
> parafin> On Mon, 2 Sep 2013 15:41:39 +0200
> parafin> johannes hanika <[email protected]> wrote:
> parafin> 
> parafin> > does your system allow gdb to attach to processes? some disable 
> that by
> parafin> > default, which might lead to weird behaviour.
> parafin> > 
> parafin> > oh, also i'm quite sure we don't restrict ourselves to 
> async-signal-safe
> parafin> > functions in the sigseg handler (man 7 signal). so i guess every 
> once in a
> parafin> > million this is quite prone to deadlocking itself. i doubt that's 
> the
> parafin> > reason for you though if you get it every time.
> parafin> > 
> parafin> > -jo
> parafin> > 
> parafin> > 
> parafin> > On Mon, Sep 2, 2013 at 2:58 PM, Richard Levitte 
> <[email protected]> wrote:
> parafin> > 
> parafin> > > Hi!
> parafin> > >
> parafin> > > When darktable crashes, or bugs out, or whatever you want to 
> call it,
> parafin> > > it starts gdb with a set of commands.  Trouble is, this simply 
> does
> parafin> > > nothing.  Or rather, it just freezes.  Processes look like this:
> parafin> > >
> parafin> > > : ; ps auxw | grep darktable
> parafin> > > levitte  13570 28.6 10.7 4171824 877656 pts/7  tl   14:08  10:31 
> darktable
> parafin> > > -d memory
> parafin> > > levitte  16083  0.2  0.9  85248 75384 pts/7    T    14:37   0:01 
> gdb
> parafin> > > darktable 13570 -batch -x /usr/share/darktable/gdb_commands
> parafin> > > levitte  16628  0.0  0.0   5660   808 pts/8    R+   14:45   0:00 
> grep
> parafin> > > darktable
> parafin> > >
> parafin> > > On the command line where I started darktable, there's this 
> line, I've
> parafin> > > no clue if it's related or not:
> parafin> > >
> parafin> > > warning: Could not load shared library symbols for 
> linux-gate.so.1.
> parafin> > > Do you need "set solib-search-path" or "set sysroot"?
> parafin> > >
> parafin> > > And like many times before, /tmp has a 58 byte file
> parafin> > > darktable_bt_L0DR2W.txt containing this:
> parafin> > >
> parafin> > > ----------
> parafin> > > this is darktable 1.3+891~g0a180fa reporting a segfault:
> parafin> > >
> parafin> > > ----------
> parafin> > >
> parafin> > > This isn't terribly helpful, but what worries me most is the 
> stopped
> parafin> > > gdb process...
> parafin> > >
> parafin> > > Is there a way going forward with this?
> parafin> > >
> parafin> > > About "-d memory", I was trying to figure out what makes 
> darktable
> parafin> > > output those "skull" thumbnails on my system.  I run on a Y500 
> with
> parafin> > > 8GB RAM and the same amount of swap.  It uses OpenCL, and the 
> graphics
> parafin> > > card has 2GB RAM.
> parafin> > >
> parafin> > > Cheers,
> parafin> > > Richard
> parafin> > >
> parafin> > > --
> parafin> > > Richard Levitte                         [email protected]
> parafin> > >                                         
> http://richard.levitte.org/
> parafin> > >
> parafin> > > "Life is a tremendous celebration - and I'm invited!"
> parafin> > > -- from a friend's blog, translated from Swedish
> parafin> > >
> parafin> > >
> parafin> > > 
> ------------------------------------------------------------------------------
> parafin> > > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, 
> more!
> parafin> > > Discover the easy way to master current and previous Microsoft 
> technologies
> parafin> > > and advance your career. Get an incredible 1,500+ hours of 
> step-by-step
> parafin> > > tutorial videos with LearnDevNow. Subscribe today and save!
> parafin> > > 
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> parafin> > > _______________________________________________
> parafin> > > darktable-devel mailing list
> parafin> > > [email protected]
> parafin> > > https://lists.sourceforge.net/lists/listinfo/darktable-devel
> parafin> > >

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to