Bug 319556 (MONO76731) - Segfault starting the beagle helper process
Summary: Segfault starting the beagle helper process
Status: RESOLVED MOVED
Alias: MONO76731
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 23:32 UTC by Joe Shaw
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Core file; no debugging symbols though because I'm using the mono-project.com packages (72.38 KB, application/octet-stream)
2005-11-17 00:17 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:38:17 UTC


---- Reported by joeshaw@novell.com 2005-11-16 16:32:44 MST ----

This is with mono version 1.1.10.

Beagle starts a helper process to do the actual indexing of data.  If this
process exceeds a certain memory threshold or crashes, the daemon notices
and starts a new process.  Just now, when starting beagled, the index
helper process crashed with a SIGSEGV.  Here is a chunk of the beagle log,
along with the printed stack trace:

Debug: Launching helper process
Debug: IndexHelper PID is 13298
*** Running uninstalled IndexHelper.exe ***

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:


Native stacktrace:

        mono-beagled-helper(mono_handle_native_sigsegv+0xba) [0x81471da]
        mono-beagled-helper [0x81354cf]
        [0xffffe440]
        mono-beagled-helper [0x80fc552]
        mono-beagled-helper(mono_once+0xc6) [0x8102a66]
        mono-beagled-helper [0x80fc68c]
        mono-beagled-helper(mono_runtime_init+0xc9) [0x80daec9]
        mono-beagled-helper [0x8136431]
        mono-beagled-helper(mono_main+0x194) [0x805ce94]
        mono-beagled-helper(__fxstat64+0x12b) [0x805bf3b]
        /lib/tls/libc.so.6(__libc_start_main+0xd0) [0x4012eea0]
        mono-beagled-helper(sinh+0x41) [0x805be91]
Warn: Caught exception in DoTaskReal
Warn:         Tag: /home/joe/.evolution/mail/local/Sent
Warn:     Creator:
Warn: Description:
Warn:    Priority: Delayed (0)
Warn: System.Exception: Couldn't launch helper process

Beagle then retried and successfully started a helper process without any
problem:

Debug: Launching helper process
Debug: IndexHelper PID is 13300
*** Running uninstalled IndexHelper.exe ***
Debug: Starting messaging server
Warn: Unable to set IO-priority for process to idle
Debug: Helper Size: VmRSS=11.8 MB, size=1.00, 0.0%
Debug: -email://1119888322.27201.0@platitude/INBOX;uid=144887
[...]

This is the first time I've seen this, so I'm not really sure how to debug
futher.



---- Additional Comments From vargaz@gmail.com 2005-11-16 16:42:14 MST ----

When the runtime prints that message, it abort ()-s the process so 
there should be a core file somewhere.




---- Additional Comments From joeshaw@novell.com 2005-11-16 17:17:06 MST ----

Created an attachment (id=168826)
Core file; no debugging symbols though because I'm using the mono-project.com packages




---- Additional Comments From vargaz@gmail.com 2005-11-16 17:23:06 MST ----

The core file does not helped much.



---- Additional Comments From joeshaw@novell.com 2005-11-16 17:33:16 MST ----

if you have debuginfo packages, maybe you can use them?  Or put them
up in the download area for me to use them?



---- Additional Comments From dick@ximian.com 2005-11-16 18:35:10 MST ----

mono_once is inside io-layer, but it hasn't changed in over 3 years
apart from a pthread_cleanup wrapper in 2004.

Is it possible your machine ran out of memory for a while?




---- Additional Comments From joeshaw@novell.com 2005-11-29 12:03:34 MST ----

No, it's not possible given that this is only at startup, and I have
plenty of memory available.  (I'm not at all in swap and have a few
hundred megs in buffers)



---- Additional Comments From miguel@ximian.com 2005-12-02 17:47:07 MST ----

Wade, would it be possible to publish some debugging packages so we
can track this beagle bug down?



---- Additional Comments From wberrier@novell.com 2005-12-02 18:22:22 MST ----

1.1.10 x86 Debug packages:

http://primates.ximian.com/~wberrier/tmp/1.1.10-46/





---- Additional Comments From dick@ximian.com 2005-12-14 12:08:19 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO76841 ***

Imported an attachment (id=168826)

Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"