Bug 7251 - Segfault in DEBUG(2,("waiting for connections...
Segfault in DEBUG(2,("waiting for connections...
Product: Samba 3.5
Classification: Unclassified
Component: File services
Other Linux
: P3 normal
: ---
Assigned To: Karolin Seeger
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2010-03-15 09:14 UTC by Stefan Metzmacher
Modified: 2010-03-15 10:06 UTC (History)
1 user (show)

See Also:

Patch for v3-5 (2.93 KB, patch)
2010-03-15 09:16 UTC, Stefan Metzmacher
obnox: review+

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2010-03-15 09:14:27 UTC
In smbd there's a small gab between TALLOC_FREE(frame); before
we call smbd_parent_loop() where we don't have a valid talloc stackframe.
smbd_parent_loop() calls talloc_stackframe() only within the while(1) loop.
As DEBUG(2,("waiting for connections")) uses talloc_tos() to construct
the time header for the debug message we crash on some systems.
Comment 1 Stefan Metzmacher 2010-03-15 09:16:34 UTC
Created attachment 5499 [details]
Patch for v3-5
Comment 2 Michael Adam 2010-03-15 09:44:41 UTC
Comment on attachment 5499 [details]
Patch for v3-5

Comment 3 Michael Adam 2010-03-15 09:57:07 UTC
assign bug to karolin for incusion in 3.5.2
Comment 4 Karolin Seeger 2010-03-15 10:06:52 UTC
Pushed to v3-5-test.
Closing out bug report.

Metze, thanks a lot for tracking this one down! :-)