<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>16468</bug_id>
          
          <creation_ts>2007-12-17 00:54:12 -0800</creation_ts>
          <short_desc>REGRESSION(r28781): Crash running storage/transaction_callback_exception_crash.html</short_desc>
          <delta_ts>2007-12-17 09:53:47 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Rowe (bdash)">mrowe</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>darin</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64484</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-12-17 00:54:12 -0800</bug_when>
    <thetext>The buildbots are seeing this intermittently, but I can reproduce it nearly 100% of the time by doing the following:

./WebKitTools/Scripts/run-webkit-tests -g plugins storage

Crash is as follows:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x5d781fc0
[Switching to process 62794 thread 0x6a27]
0x9097e4ed in pthread_mutex_unlock ()
(gdb) bt
#0  0x9097e4ed in pthread_mutex_unlock ()
#1  0x020aeff0 in WebCore::Mutex::unlock (this=0x5d781fc0) at WebCore/platform/pthreads/ThreadingPthreads.cpp:168
#2  0x01d7370b in WebCore::MutexLocker::~MutexLocker (this=0xb032ccc0) at Threading.h:95
#3  0x01d73729 in WebCore::MutexLocker::~MutexLocker (this=0xb032ccc0) at Threading.h:95
#4  0x01faf51c in WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback (this=0x5d781f60) at WebCore/storage/SQLTransaction.cpp:404
#5  0x01faf5f0 in WebCore::SQLTransaction::handleTransactionError (this=0x5d781f60, inCallback=false) at WebCore/storage/SQLTransaction.cpp:362
#6  0x01fafacc in WebCore::SQLTransaction::handleCurrentStatementError (this=0x5d781f60) at WebCore/storage/SQLTransaction.cpp:265
#7  0x01fafc2b in WebCore::SQLTransaction::runCurrentStatement (this=0x5d781f60) at WebCore/storage/SQLTransaction.cpp:249
#8  0x01fafd12 in WebCore::SQLTransaction::runStatements (this=0x5d781f60) at WebCore/storage/SQLTransaction.cpp:184
#9  0x01faebcb in WebCore::SQLTransaction::performNextStep (this=0x5d781f60) at WebCore/storage/SQLTransaction.cpp:97
#10 0x01c0f47a in WebCore::Database::performTransactionStep (this=0x5d1bfeb0) at WebCore/storage/Database.cpp:416
#11 0x01c14d95 in WebCore::DatabaseTransactionTask::doPerformTask (this=0x600f7fb0, db=0x5d1bfeb0) at WebCore/storage/DatabaseTask.cpp:112
#12 0x01c14cbb in WebCore::DatabaseTask::performTask (this=0x600f7fb0, db=0x5d1bfeb0) at WebCore/storage/DatabaseTask.cpp:58
#13 0x01c16564 in WebCore::DatabaseThread::dispatchNextTaskIdentifier (this=0x5d217f00) at WebCore/storage/DatabaseThread.cpp:182
#14 0x01c16627 in WebCore::DatabaseThread::databaseThread (this=0x5d217f00) at WebCore/storage/DatabaseThread.cpp:131
#15 0x01c16735 in WebCore::DatabaseThread::databaseThreadStart (vDatabaseThread=0x5d217f00) at WebCore/storage/DatabaseThread.cpp:115
#16 0x909a7075 in _pthread_start ()
#17 0x909a6f32 in thread_start ()
(gdb)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64485</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-12-17 01:02:24 -0800</bug_when>
    <thetext>If I set MallocScribble=YES rather than using guard malloc, I see the following in the stderr output after the crash:

ASSERTION FAILED: false
(WebCore/platform/pthreads/ThreadingPthreads.cpp:169 void WebCore::Mutex::unlock())
Segmentation fault
ASSERTION FAILED: false
(WebCore/platform/pthreads/ThreadingPthreads.cpp:150 void WebCore::Mutex::lock())
Segmentation fault

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64531</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-12-17 08:13:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/5651076&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64532</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-12-17 08:14:21 -0800</bug_when>
    <thetext>I suspect the underlying bug here was present prior to r28781, but the change to return as soon as an exception is raised somehow exposes the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64540</commentid>
    <comment_count>4</comment_count>
      <attachid>17964</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-12-17 09:41:04 -0800</bug_when>
    <thetext>Created attachment 17964
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64541</commentid>
    <comment_count>5</comment_count>
      <attachid>17964</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-12-17 09:51:30 -0800</bug_when>
    <thetext>Comment on attachment 17964
patch

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64542</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-12-17 09:53:47 -0800</bug_when>
    <thetext>Committed revision 28811.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>17964</attachid>
            <date>2007-12-17 09:41:04 -0800</date>
            <delta_ts>2007-12-17 09:51:30 -0800</delta_ts>
            <desc>patch</desc>
            <filename>DatabaseRefPtrPatch.txt</filename>
            <type>text/plain</type>
            <size>1449</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAyODgxMCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDctMTItMTcgIERhcmluIEFkbGVyICA8ZGFyaW5AYXBwbGUuY29t
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIC0gZml4
IGh0dHA6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE2NDY4CisgICAgICAgICAg
UkVHUkVTU0lPTihyMjg3ODEpOiBDcmFzaCBydW5uaW5nIHN0b3JhZ2UvdHJhbnNhY3Rpb25fY2Fs
bGJhY2tfZXhjZXB0aW9uX2NyYXNoLmh0bWwKKworICAgICAgICAqIHN0b3JhZ2UvRGF0YWJhc2VU
aHJlYWQuY3BwOgorICAgICAgICAoV2ViQ29yZTo6RGF0YWJhc2VUaHJlYWQ6OmRpc3BhdGNoTmV4
dFRhc2tJZGVudGlmaWVyKTogVXNlIGEgUmVmUHRyIGZvciB0aGUgZGF0YWJhc2UKKyAgICAgICAg
YmVjYXVzZSB0aGVyZSdzIG5vIGd1YXJhbnRlZSBpdCB3b24ndCBsb3NlIGl0cyBsYXN0IHJlZmVy
ZW5jZSBvdGhlcndpc2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"
          id="7792"
          type_id="1"
          status="+"
          setter="mrowe"
    />
          </attachment>
      

    </bug>

</bugzilla>