[SOLVED]Easytag Segmentation fault with kde3 (kdemod)

(easytag:4811): Gtk-WARNING **: libbonoboui-2.so.0: cannot open shared object file: No such file or directory
(easytag:4811): Gtk-WARNING **: libbonoboui-2.so.0: cannot open shared object file: No such file or directory
EasyTAG 2.1.5: Abnormal exit! (PId: 4811).
Received signal SIGSEGV (11)
You have probably found a bug in EasyTAG. Please, send a bug report with a gdb backtrace ('gdb easytag core' then 'bt' and 'l') and informations to reproduce it to [email protected]
Segmentation fault
If I start up easytag while running KDE3 (kdemod), I get this problem every time. I have tried running it with openbox and it runs without a problem. I have deleted .easytag and reinstalled, but the problem continues.
EDIT: Installing libbonoboui resolves the problem. It looks like the there is a dependency issue here, I'll file a bug.
Last edited by alleyoopster (2008-08-02 17:18:06)

Allan wrote:Do a "pacman -S libbonoboui" an all should be good.  I don't understand why this only occurs in KDEmod though.  Is that on two different computers.   File a bug report about the missing dependancy.
Yeah thanks Allan, I figured it out. Bug report at http://bugs.archlinux.org/task/11094
No it is on the same machine
Last edited by alleyoopster (2008-08-02 17:18:28)

Similar Messages

  • [Solved] pSX Segmentation Fault - [Partially Solved] pSX problems

    Alright, I think that I've solved the segmentation fault thing that was happening in pSX whenever I ran it (I use Arch x86_64).  I'm not sure what was wrong, but after installing lib32-intel-dri-7.11.2-2 via pacman pSX appeared to work fine.  The only other problems I've encountered so far is that (1) installing one of the alsa plugin things (not sure which one since I was installing more than one at the time) seems to make it crash and stay crashed as long as the plugins are installed, (2) another problem was that when I try to load a savestate while running a loaded savestate of Final Fantasy 7 in pSX (I say FF7 because that's the only game I've tried playing so far) causes pSX to crash with a segmentation error, (3) and the last problem, which does happen to be the least important/crippling is that while pSX is running I keep getting a message displayed to xterm saying: "sound: underrun".  That's pretty much it.  So if any of you have been having trouble getting pSX to run on an x86_64 install of Arch/have been getting segmentation fault errors when you try to run pSX on Arch x86_64 just install lib32-intel-dri or the applicable alternative and it should hopefully work.
    Last edited by Orodruin (2012-01-06 09:44:00)

    I ran into this same problem after an upgrade on a Thinkpad T60 and this did fix the problem.
    Thanks to Roxas for posting the solution.

  • [SOLVED] Segmentation Fault with Clementine

    When I open the preferences (Ctrl+P) of Clementine it crashes with a segmentation fault.
    This is the backtrace:
    18:53:58.858 WARN unknown libpng warning: iCCP: known incorrect sRGB profile
    18:53:58.900 WARN unknown libpng warning: iCCP: known incorrect sRGB profile
    [Thread 0x7fff9ffff700 (LWP 1566) exited]
    Program received signal SIGSEGV, Segmentation fault.
    0x00007fffec8b9ba1 in ?? () from /usr/lib/libfontconfig.so.1
    (gdb) bt
    #0 0x00007fffec8b9ba1 in ?? () from /usr/lib/libfontconfig.so.1
    #1 0x00007fffec8ba03f in ?? () from /usr/lib/libfontconfig.so.1
    #2 0x00007fffec8b9cd8 in ?? () from /usr/lib/libfontconfig.so.1
    #3 0x00007fffec8ba554 in ?? () from /usr/lib/libfontconfig.so.1
    #4 0x00007fffec8ba77d in FcConfigSubstituteWithPat ()
    from /usr/lib/libfontconfig.so.1
    #5 0x00007fffec8c85cc in FcFontRenderPrepare ()
    from /usr/lib/libfontconfig.so.1
    #6 0x00007ffff32d695e in QFontDatabase::load(QFontPrivate const*, int) ()
    from /usr/lib/libQtGui.so.4
    #7 0x00007ffff32b35e9 in QFontPrivate::engineForScript(int) const ()
    from /usr/lib/libQtGui.so.4
    #8 0x00007ffff32e9252 in QTextEngine::fontEngine(QScriptItem const&, QFixed*, QFixed*, QFixed*) const () from /usr/lib/libQtGui.so.4
    #9 0x00007ffff32e9a03 in QTextEngine::shapeTextWithHarfbuzz(int) const ()
    from /usr/lib/libQtGui.so.4
    #10 0x00007ffff32eab02 in QTextEngine::shapeText(int) const ()
    from /usr/lib/libQtGui.so.4
    #11 0x00007ffff32eae25 in QTextEngine::shape(int) const ()
    from /usr/lib/libQtGui.so.4
    #12 0x00007ffff32f0a30 in QTextEngine::boundingBox(int, int) const ()
    from /usr/lib/libQtGui.so.4
    #13 0x00007ffff32c79f4 in QFontMetrics::boundingRect(QString const&) const ()
    ---Type <return> to continue, or q <return> to quit---
    from /usr/lib/libQtGui.so.4
    #14 0x00007ffff34673dd in ?? () from /usr/lib/libQtGui.so.4
    #15 0x00007ffff3467534 in QComboBox::sizeHint() const ()
    from /usr/lib/libQtGui.so.4
    #16 0x00007ffff30ce65c in QWidgetItemV2::updateCacheIfNecessary() const ()
    from /usr/lib/libQtGui.so.4
    #17 0x00007ffff30ce96d in QWidgetItemV2::maximumSize() const ()
    from /usr/lib/libQtGui.so.4
    #18 0x00007ffff30b0b55 in ?? () from /usr/lib/libQtGui.so.4
    #19 0x00007ffff30b11d6 in QBoxLayout::sizeHint() const ()
    from /usr/lib/libQtGui.so.4
    #20 0x00007ffff30caca4 in QLayout::totalSizeHint() const ()
    from /usr/lib/libQtGui.so.4
    #21 0x00007ffff30dec30 in QWidget::sizeHint() const ()
    from /usr/lib/libQtGui.so.4
    #22 0x00007ffff30ce65c in QWidgetItemV2::updateCacheIfNecessary() const ()
    from /usr/lib/libQtGui.so.4
    #23 0x00007ffff30ce96d in QWidgetItemV2::maximumSize() const ()
    from /usr/lib/libQtGui.so.4
    #24 0x00007ffff30b0b55 in ?? () from /usr/lib/libQtGui.so.4
    #25 0x00007ffff30b1206 in QBoxLayout::minimumSize() const ()
    from /usr/lib/libQtGui.so.4
    #26 0x00007ffff30cac34 in QLayout::totalMinimumSize() const ()
    ---Type <return> to continue, or q <return> to quit---
    from /usr/lib/libQtGui.so.4
    #27 0x00007ffff30dec60 in QWidget::minimumSizeHint() const ()
    from /usr/lib/libQtGui.so.4
    #28 0x00007ffff30cc8c3 in qSmartMinSize(QWidget const*) ()
    from /usr/lib/libQtGui.so.4
    #29 0x00007ffff350e4b9 in ?? () from /usr/lib/libQtGui.so.4
    #30 0x00007ffff350e897 in QScrollArea::setWidget(QWidget*) ()
    from /usr/lib/libQtGui.so.4
    #31 0x0000000000765b18 in SettingsDialog::AddPage(SettingsDialog::Page, SettingsPage*, QTreeWidgetItem*) ()
    #32 0x0000000000765e67 in SettingsDialog::SettingsDialog(Application*, BackgroundStreams*, QWidget*) ()
    #33 0x0000000000745360 in MainWindow::OpenSettingsDialog() ()
    #34 0x000000000080c1ea in ?? ()
    #35 0x00007ffff6cd7b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
    #36 0x00007ffff309cf82 in QAction::triggered(bool) ()
    from /usr/lib/libQtGui.so.4
    #37 0x00007ffff309e953 in QAction::activate(QAction::ActionEvent) ()
    from /usr/lib/libQtGui.so.4
    #38 0x00007ffff34c7d79 in ?? () from /usr/lib/libQtGui.so.4
    #39 0x00007ffff34cc2a9 in ?? () from /usr/lib/libQtGui.so.4
    #40 0x00007ffff30f262e in QWidget::event(QEvent*) ()
    ---Type <return> to continue, or q <return> to quit---
    from /usr/lib/libQtGui.so.4
    #41 0x00007ffff34d007b in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
    #42 0x00007ffff30a30dc in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/libQtGui.so.4
    #43 0x00007ffff30a97dd in QApplication::notify(QObject*, QEvent*) ()
    from /usr/lib/libQtGui.so.4
    #44 0x00007ffff6cc3ebd in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/libQtCore.so.4
    #45 0x00007ffff30a8f93 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
    from /usr/lib/libQtGui.so.4
    #46 0x00007ffff311aedc in ?? () from /usr/lib/libQtGui.so.4
    #47 0x00007ffff311961c in QApplication::x11ProcessEvent(_XEvent*) ()
    from /usr/lib/libQtGui.so.4
    #48 0x00007ffff3140162 in ?? () from /usr/lib/libQtGui.so.4
    #49 0x00007ffff41b3296 in g_main_context_dispatch ()
    from /usr/lib/libglib-2.0.so.0
    #50 0x00007ffff41b35e8 in ?? () from /usr/lib/libglib-2.0.so.0
    #51 0x00007ffff41b368c in g_main_context_iteration ()
    from /usr/lib/libglib-2.0.so.0
    #52 0x00007ffff6cf0b25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
    #53 0x00007ffff3140216 in ?? () from /usr/lib/libQtGui.so.4
    ---Type <return> to continue, or q <return> to quit---
    #54 0x00007ffff6cc2b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
    #55 0x00007ffff6cc2e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
    #56 0x00007ffff6cc7f4b in QCoreApplication::exec() ()
    from /usr/lib/libQtCore.so.4
    #57 0x00000000005db094 in main ()
    This happen every time. I searched on internet but I can't find similar issue.
    Thanks.
    Last edited by ryuzy (2014-02-06 11:30:13)

    I tried installing Infinality-bundle+fonts and it fixed the problem.
    So there was a problem with my fonts, I don't know why this happened but I'm happy to have solved.
    Last edited by ryuzy (2014-02-06 11:30:59)

  • Python segmentation fault with matplotlib and opencv2

    Once again fellow archers, I am in need of your help.
    I have a file, Test1.py, which uses cv2, pylab, and numpy.
    Excluding either pylab or cv2 functions, I can make the rest of the script work, but when pylab is imported, calling cv2's imshow() function causes a "segmentation fault (core dumped)".
    By the sound of it, I thought it might come from the underlying C stuff, rather than python.
    So I ran it through gdb.
    This is where I need help. I'm not sure how to interprete the backtrace, and I probably wouldn't know what to to if I were.
    Perhaps a problem with glib or GObject?
    Below are the python script in question (it a template for a school assignment), and the gdb trace.
    Test1.py
    import sys
    sys.settrace
    import numpy as np
    import cv2
    import math
    import pylab
    #----------------------------Functions
    def show1_OpenCV(image):
    # ##This function define a window by namedWindow() and then show the image in that window
    image=np.array(image)
    # cv2.namedWindow('ByOpenCV', cv2.WINDOW_AUTOSIZE)## create a window called
    # #+'By OpenCV'Using the \nw{cv2.WINDOW_AUTOSIZE} parameter when defining a window display the image with its actual size in the window.
    cv2.imshow('ByOpenCV', image) ## show the image in 'By OpenCV' window
    # cv2.waitKey(0) ## the window will be closed with a (any)key press
    def show2_OpenCV(*image):
    ## Showing the image using OpenCV
    im=[]
    for i in image:
    im.append(array(i))
    cv2.namedWindow('1', cv2.WINDOW_AUTOSIZE)## create a window called 'By OpenCV' Using the \nw{cv2.WINDOW_AUTOSIZE} parameter when defining a window display the image with its actual size in the window.
    cv2.imshow('1', im[0]) ## show the image in 'By OpenCV' window
    cv2.namedWindow('2', cv2.WINDOW_AUTOSIZE)
    cv2.imshow('2', im[1])
    cv2.waitKey(0) ## the window will be closed with a (any)key press
    def showAll_OpenCV(**image):
    im = []
    for (k,v) in image.items():
    cv2.namedWindow(str(k), cv2.WINDOW_AUTOSIZE)
    cv2.imshow(k, np.array(v))
    cv2.waitKey()
    def show1_pylab(image):
    ## Showing the image using pylab
    figure("By pylab")## Create a figure
    gray()
    title("1"); imshow(image)
    show()
    def show2_pylab(*images):
    ## Showing the image using pylab
    figure("By pylab")## Create a figure
    gray()
    subplot(1,2,1);title("1"); imshow(images[0])## more about 'subplot()' : <http://www.scipy.org/Cookbook/Matplotlib/Multiple_Subplots_with_One_Axis_Label>
    subplot(1,2,2);title("2"); imshow(images[1])
    show()
    def grayLevelMap2(I,vector):
    I = np.copy(I)
    (x,y) = np.shape(I)
    for i in range(x):
    for j in range(y):
    I[i,j] = vector[I[i,j]]
    return I
    def grayLevelMap(I,a,b):
    I = np.copy(I)
    (x,y) = np.shape(I)
    for i in range(x):
    for j in range(y):
    I[i,j] = max(0,min(255, a* I[i,j] +b))
    return I
    def grayLevelMapF(I,f):
    I = np.copy(I)
    (x,y) = np.shape(I)
    for i in range(x):
    I[i] = map(f, I[i])
    return I
    def f(x):
    func=(255-x)*math.sqrt(100/+1)
    return func
    def displayVect(v):
    points=[]
    for i in range(len(v)):
    points.append((i,v[i]))
    bins = range(256)
    n = v
    grid(None, 'major', 'both')
    plot(bins, n, 'k-', linewidth=5)
    axis([-2, 256, -2, 256])
    show()
    ##------------------------------Main body
    # Loading an image using openCV
    I1=cv2.imread("children.tif")
    I2=cv2.imread("Eye1.jpg")
    I3=cv2.imread("Marker1.jpg")
    I4=cv2.imread("GreenTest.jpg")
    I1=cv2.cvtColor(I1, cv2.COLOR_RGB2GRAY)
    I2=cv2.cvtColor(I2, cv2.COLOR_RGB2GRAY)
    I3=cv2.cvtColor(I3, cv2.COLOR_RGB2GRAY)
    I4=cv2.cvtColor(I4, cv2.COLOR_RGB2GRAY)
    show1_OpenCV(grayLevelMapF(I4, lambda x: 2*x))
    show1_OpenCV(I4)
    gdb output:
    Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
    (gdb) run Test1.py
    Starting program: /usr/bin/python2 Test1.py
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need "set solib-search-path" or "set sysroot"?
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    Traceback (most recent call last):
    File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py", line 9, in <module>
    from gobject import register
    File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
    ImportError: No module named backtrace
    [New Thread 0x7fffdf259700 (LWP 3981)]
    Program received signal SIGSEGV, Segmentation fault.
    0x00000036cb6bc785 in do_warn () from /usr/lib/libpython2.7.so.1.0
    (gdb) backtrace
    #0 0x00000036cb6bc785 in do_warn () from /usr/lib/libpython2.7.so.1.0
    #1 0x00000036cb6bcc4c in PyErr_WarnEx () from /usr/lib/libpython2.7.so.1.0
    #2 0x00007fffe10153b5 in ?? ()
    from /usr/lib/python2.7/site-packages/gobject/_gobject.so
    #3 0x00000036cde4ea00 in g_logv () from /usr/lib/libglib-2.0.so.0
    #4 0x00000036cde4ebf2 in g_log () from /usr/lib/libglib-2.0.so.0
    #5 0x00007fffef8e009e in gtk_disable_setlocale ()
    from /usr/lib/libgtk-x11-2.0.so.0
    #6 0x00007ffff21ca8a8 in cvInitSystem ()
    from /usr/lib/libopencv_highgui.so.2.4
    #7 0x00007ffff21cafb3 in cvNamedWindow ()
    from /usr/lib/libopencv_highgui.so.2.4
    #8 0x00007ffff352dfe4 in ?? () from /usr/lib/python2.7/site-packages/cv2.so
    #9 0x00000036cb6dc05a in PyEval_EvalFrameEx ()
    from /usr/lib/libpython2.7.so.1.0
    #10 0x00000036cb6dba83 in PyEval_EvalFrameEx ()
    from /usr/lib/libpython2.7.so.1.0
    #11 0x00000036cb6dcedd in PyEval_EvalCodeEx ()
    ---Type <return> to continue, or q <return> to quit---j
    from /usr/lib/libpython2.7.so.1.0
    #12 0x00000036cb6dcfb2 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
    #13 0x00000036cb6f5eea in run_mod () from /usr/lib/libpython2.7.so.1.0
    #14 0x00000036cb6f6ce2 in PyRun_FileExFlags ()
    from /usr/lib/libpython2.7.so.1.0
    #15 0x00000036cb6f76fb in PyRun_SimpleFileExFlags ()
    from /usr/lib/libpython2.7.so.1.0
    #16 0x00000036cb7089f2 in Py_Main () from /usr/lib/libpython2.7.so.1.0
    #17 0x00007ffff7833a15 in __libc_start_main () from /usr/lib/libc.so.6
    #18 0x0000000000400741 in _start ()
    (gdb) run Test1.py
    Last edited by Bladtman242 (2013-02-12 19:30:55)

    Thank you so much!
    This (ugly) workaround might have saved me from a lot of trouble with this semester's exercises.
    Just to be clear, the solution is:
    Import opencv
    Call namedWindow
    Do the rest of the imports
    Do the rest of the script
    Corect?
    I'm hesitant to mark the thread as solved, as the problem is still very much there, this workaround just allows us to ignore it.

  • Segmentation fault with just one user

    Hi,
    When I try to close a toolwindow in an application (it's iViewMediaPro), the app crashes. Console says, there's a segmentation fault. This happens only with one useraccount (adminrights). I deleted .pref-files, reinstalled the software, emptied the preferencesfolder in the users library and started the app then, nothing helps.
    Any ideas to solve the problem?
    Thanks for help
    Wolfgang

    Are you implying that you can run that app in other accounts without any problems? If so, then there's corruption or a conflict within the original account, usually associated with preference files. See my response in http://discussions.apple.com/message.jspa?messageID=8664734 on how to resolve those.

  • X Segmentation fault with new sapphire HD7850

    Hi,
    randomly my X server crash and reboot (like 1 time at day, while surfing the net. No problem while playing under wine/steam)
    i attach the xorg log, but it doesn't say very much to me.
    can you find out what is going on or what i have to do to get a better stack trace/error log?
    interesting part:
    [  6057.946] (EE)
    [  6057.946] (EE) Backtrace:
    [  6057.981] (EE) 0: /usr/bin/X (xorg_backtrace+0x36) [0x58a416]
    [  6057.981] (EE) 1: /usr/bin/X (0x400000+0x18e269) [0x58e269]
    [  6057.981] (EE) 2: /usr/lib/libpthread.so.0 (0x7fd7ffa22000+0xf1e0) [0x7fd7ffa311e0]
    [  6057.981] (EE) 3: /usr/lib/libpixman-1.so.0 (0x7fd7ff57e000+0x82a7d) [0x7fd7ff600a7d]
    [  6057.981] (EE) 4: /usr/lib/libpixman-1.so.0 (0x7fd7ff57e000+0x50c7b) [0x7fd7ff5cec7b]
    [  6057.981] (EE) 5: /usr/lib/libpixman-1.so.0 (pixman_blt+0x52) [0x7fd7ff5894b2]
    [  6057.981] (EE) 6: /usr/lib/xorg/modules/libfb.so (fbCopyNtoN+0x343) [0x7fd7fbf0c453]
    [  6057.981] (EE) 7: /usr/lib/xorg/modules/glesx.so (0x7fd7f9f8d000+0x8d491) [0x7fd7fa01a491]
    [  6057.981] (EE) 8: /usr/lib/xorg/modules/glesx.so (0x7fd7f9f8d000+0x8f62b) [0x7fd7fa01c62b]
    [  6057.981] (EE) 9: /usr/bin/X (0x400000+0x1141f9) [0x5141f9]
    [  6057.981] (EE) 10: /usr/bin/X (0x400000+0xc7315) [0x4c7315]
    [  6057.981] (EE) 11: /usr/bin/X (0x400000+0xc8136) [0x4c8136]
    [  6057.981] (EE) 12: /usr/bin/X (0x400000+0xc6b9c) [0x4c6b9c]
    [  6057.981] (EE) 13: /usr/bin/X (0x400000+0x60d86) [0x460d86]
    [  6057.981] (EE) 14: /usr/bin/X (MapWindow+0x1a2) [0x463b22]
    [  6057.981] (EE) 15: /usr/bin/X (0x400000+0x32690) [0x432690]
    [  6057.981] (EE) 16: /usr/bin/X (0x400000+0x37e51) [0x437e51]
    [  6057.981] (EE) 17: /usr/bin/X (0x400000+0x2695a) [0x42695a]
    [  6057.981] (EE) 18: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7fd7fe8aea15]
    [  6057.982] (EE) 19: /usr/bin/X (0x400000+0x26c9d) [0x426c9d]
    [  6057.982] (EE)
    [  6057.982] (EE) Segmentation fault at address 0x7fd7eac0b000
    [  6057.982]
    Fatal server error:
    [  6057.982] Caught signal 11 (Segmentation fault). Server aborting
    [  6057.982]
    [  6057.982] (EE)
    Please consult the The X.Org Foundation support
             at http://wiki.x.org
    for help.
    [  6057.982] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [  6057.982] (EE)
    full xorg log: http://snipt.org/zJhd9

    Here is some additional information that may or may not be of any relevance. I do not know.
    On the old server, I compiled the code with the compilation commands: f95 program.for
    I was able to compile and execute code with small, medium size or large arrays (with or without the additional -openmp flag).
    If I repeat the same command: f95 program.for
    on the new server, I get the following compilation error message for programs with medium size and large arrays:
    In function `newmaxmalecor':
    /mnt/ide0/home/gustaf/education/programming/cesprod100//chicago.for:4340: relocation truncated to fit: R_X86_64_32 against symbol
    If I compile with the additional flags: f95 -xmodel=medium -m64 program.for
    on the new server, there are no compilation errors and I can run the code in sequence.
    However, when I compile with
    f95 -xmodel=medim -m64 -openmp program.for
    on the new server, compilation works, but I cannot execute the code with medium size and large arrays.
    The programs for which I have to add the "-xmodel=medium" flag on the new server to be able to compile the code and run it in sequence, are exactly the ones for which I get segmentation faults when I introduce the openmp flag and try to execute the code in parallel fashion.
    Is this just a coincidence?
    Lage

  • Segmentation fault with xqillia when using purifyplus

    Hi friends,
    I am using BDB , xqilla /xerces interface to perform an xquery.The program works fine,but after building the program along with purifyplus,if i try to run the program a segmentation fault is raised.
    attached are the code,command used to build the program and the stack trace.
    here is some specifications-
    Rational Purifyplus 7.0
    gcc version 3.4.6
    OS-Linux(redhat);Linux 3 2.6.9-89.ELsmp
    dbxml-2.4.16
    CODE:
    #include "DbXml.hpp"
    #include <iostream>
    using namespace DbXml;
    using namespace std;
    int putxml(string filename,string docname2)
    XmlManager myManager;
    XmlContainer myContainer;
    try
    if (!myManager.existsContainer("Container.bdbxml"))
    myContainer =myManager.createContainer("Container.bdbxml");
    myContainer = myManager.openContainer("Container.bdbxml");
    XmlUpdateContext theContext = myManager.createUpdateContext();
    XmlInputStream *theStream =myManager.createLocalFileInputStream(filename);
    myContainer.putDocument(docname2,theStream,theContext,0);
    catch(XmlException &e)
    cout<<e.what()<<endl;
    /* function to get the xml file and display output */
    void getxml(string docname3)
    string query_result;
    try
    XmlManager myManager;
    XmlContainer myContainer = myManager.openContainer("Container.bdbxml");
    XmlQueryContext myContext = myManager.createQueryContext();
    myContext.setDefaultCollection("./Container.bdbxml");
    cout<<"docname3 is "<<docname3<<endl;
    std::string myQuery="for $i in doc('dbxml:/Container.bdbxml/docname') return ($i)";
    XmlQueryExpression qe = myManager.prepare(myQuery, myContext);
    XmlResults results = qe.execute(myContext);
    XmlValue my_value;
    while (results.next(my_value))
    query_result += my_value.asString(); //xml file data come in query_result
    }catch(XmlException &e){
    cout<<e.what()<<endl;
    cout<<query_result<<endl;
    /* main function */
    int main()
    string filename("XYZ.xml"),docname1("docname");
    putxml(filename,docname1);
    getxml(docname1);
    Command used:
    purify -always-use-cache-dir=yes -cache-dir=/tmp/3rdPArty/RT -chain-length=10 -static-checking=no -thread_stack_change=0x4000 -fds=57 -thread-stack-change=0x4000 -best-effort g++ -g final.cpp -I /tmp/3rdPArty/dbxml-2.4.16/dbxml/include/dbxml -L /tmp/3rdPArty/dbxml-2.4.16/install/lib/ -ldbxml -ldbxml-2.4 -lxqilla -lxerces-c -ldb -ldb_cxx
    Stack Trace:
    #0 0x01205131 in m_apm_is_integer ()
    at /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_construct.h:134
    #1 0x009d9794 in std::vector<ASTNode*, XQillaAllocator<ASTNode*> >::_M_insert_aux (this=dwarf2_read_address: Corrupted DWARF expression.
    at /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/vector.tcc:229
    #2 0x00d94dea in std::vector<ASTNode*, XQillaAllocator<ASTNode*> >::push_back (this=Could not find the frame base for "std::vector<ASTNode*, XQillaAllocator<ASTNode*> >::push_back(ASTNode* const&)".
    at /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_vector.h:564
    *#3 0x01195bca in XQParser::yyparse (qp=Could not find the frame base for "*XQParser::yyparse(void*)"*.*
    *) at /tmp/3rdPArty/dbxml-2.4.16/xqilla/build/../src/parser/XQParser.y:2266*
    #4 0x00eb1c4a in XQilla::parse () at /tmp/3rdPArty/dbxml-2.4.16/xqilla/build/../include/xqilla/ast/LocationInfo.hpp:63
    #5 0x006a266a in QueryExpression (this=Not enough elements for DW_OP_rot. Need 3, have 0
    ) at QueryExpression.hpp:42
    #6 0x007d819c in DbXml::XmlManager::prepare (this=Could not find the frame base for "DbXml::XmlManager::prepare(std::string const&, DbXml::XmlQueryContext&)".
    ) at XmlManager.cpp:551
    #7 0x08086a0d in getxml (docname3=
    {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, Mp = 0x80be6e4 "docname"}}) at final.cpp:56
    #8 0x08087dae in main () at final.cpp:81
    As per my understanding my program is crashing in XQParser::yyparse(void*) which is in YACC. is there any known issue regarding compatibility between YACC and Purifyplus ?
    Kindly help me out
    Thanks.
    Edited by: user8114111 on Jul 22, 2009 11:10 PM
    Edited by: user8114111 on Jul 22, 2009 11:15 PM

    Hi. This question is better suited for the BDB XML forum, which is here:
    Berkeley DB XML
    Ben Schmeckpeper

  • Segmentation fault with apache plug-in

    The debug flag is on with apache.Getting the following message and core dump.wl 6.0, jdk 1.3, Solaris 2.6 105181-21, apache 1.3.12, gcc 2.8(FSF), make(3.7.6)os patch 10559-09 installed.[Fri Dec 29 14:57:11 2000] [notice] child pid 27661 exit signal Segmentation Fault (11), possible coredump in /usr/local/apache

    The debug flag is on with apache.Getting the following message and core dump.wl 6.0, jdk 1.3, Solaris 2.6 105181-21, apache 1.3.12, gcc 2.8(FSF), make(3.7.6)os patch 10559-09 installed.[Fri Dec 29 14:57:11 2000] [notice] child pid 27661 exit signal Segmentation Fault (11), possible coredump in /usr/local/apache

  • Help needed, segmentation fault with java 1.6

    Hey, I would very much appreciate help with this problem.
    It began a while ago, while I was using Netbeans 6.5 to do some Java Server testing stuff, I was running Adobe Flash on top (working on some WSDL stuff), and the computer was understandable running a bit slowly. However, it got to the point where the computer stopped responding, even with me killing apps as often as possible to conserve memory (1 GB on this machine) and I was forced to kill the machine by holding down the power button (using a white MacBook). When I started up once more, java 1.6 was dead, no amount of re-installs seemed to be helping when I tried downloading the Java Updates from Apple, though java 1.5 seemed to be working at that time. However, poking around in the console and looking at the logs, I noticed that launchd[1] was failing every 10 seconds to start something up, it looked like it was the apache http server, therefore I went to System Preferences to turn of Web Sharing, and that particular problem disappeared. However, whenever I would attempt to run java, even using the Terminal, I would get this Console log, or at least one very similar (this one was generated with java 1.5 I believe)
    Process: java [7217]
    Path: /usr/bin/java
    Identifier: java
    Version: ??? (???)
    Code Type: X86-64 (Native)
    Parent Process: bash [7208]
    Date/Time: 2008-12-13 10:41:23.197 -0500
    OS Version: Mac OS X 10.5.5 (9F33)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: 0x000000000000000d, 0x0000000000000000
    Crashed Thread: 0
    Thread 0 Crashed:
    0 libSystem.B.dylib 0x00007fff80e57164 strcmp + 84
    1 libobjc.A.dylib 0x00007fff8000b23f _selregisterName + 49
    2 libobjc.A.dylib 0x00007fff8000ab46 map_images + 3757
    3 dyld 0x00007fff5fc04130 dyld::notifyBatchPartial(dyldimagestates, bool, char const* (*)(dyldimagestates, unsigned int, dyldimageinfo const*)) + 416
    4 dyld 0x00007fff5fc048fd dyld::registerImageStateBatchChangeHandler(dyldimagestates, char const* (*)(dyldimagestates, unsigned int, dyldimageinfo const*)) + 525
    5 libSystem.B.dylib 0x00007fff80e56472 dyldregister_image_state_changehandler + 88
    6 libobjc.A.dylib 0x00007fff8000954f objcinit + 38
    7 dyld 0x00007fff5fc11257 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 279
    8 dyld 0x00007fff5fc0d16c ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 268
    9 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
    10 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
    11 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
    12 dyld 0x00007fff5fc0d254 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 52
    13 dyld 0x00007fff5fc038b4 dyld::initializeMainExecutable() + 132
    14 dyld 0x00007fff5fc06eb1 dyld::main(machheader const*, unsigned long, int, char const**, char const**, char const**) + 2209
    15 dyld 0x00007fff5fc01695 dyldbootstrap::start(mach_header const*, int, char const**, long) + 693
    16 dyld 0x00007fff5fc0103a dyldstart + 42
    Thread 0 crashed with X86 Thread State (64-bit):
    rax: 0x00000000000008a0 rbx: 0x00007fff80018760 rcx: 0x0000000000005722 rdx: 0x000000000000008a
    rdi: 0x00007fff80018760 rsi: 0x0c00004806000038 rbp: 0x00007fff5fbfdbc0 rsp: 0x00007fff5fbfdba8
    r8: 0x00000000c5a8037d r9: 0x0000000068e33de7 r10: 0x00000000bcafe771 r11: 0x0000000000000001
    r12: 0x0c00004806000038 r13: 0x0000000000000001 r14: 0x0000000000000001 r15: 0x000000000000001d
    rip: 0x00007fff80e57164 rfl: 0x0000000000010202 cr2: 0x00007fff7002f9f0
    Binary Images:
    0x100000000 - 0x10000afe0 +java ??? (???) <53c91321e79d660f62c011f5d8625a7f> /usr/bin/java
    0x100010000 - 0x100018ffd com.apple.JavaVM 12.2.0 (12.2.0) <2b178e8d4bbcc0aa427c2f3f71bb2fcb> /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
    0x7fff5fc00000 - 0x7fff5fc2e593 dyld 96.2 (???) <b0570939de4a19f478c8eabab95aaaee> /usr/lib/dyld
    0x7fff80003000 - 0x7fff800f7fff libobjc.A.dylib ??? (???) <118dc1ae05e685ad64290352fc94f1f0> /usr/lib/libobjc.A.dylib
    0x7fff80199000 - 0x7fff801aaffd libz.1.dylib ??? (???) <f260db32dd97a14108a5e04184785ded> /usr/lib/libz.1.dylib
    0x7fff801ab000 - 0x7fff801e8ff7 com.apple.SystemConfiguration 1.9.2 (1.9.2) <3e058b95c78dc2f54ec3f9781bd86e1c> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x7fff801e9000 - 0x7fff80239fe7 com.apple.Metadata 10.5.2 (398.22) <1fc60b4568a7ffbec4273f656d61ab58> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x7fff808c2000 - 0x7fff80957ffb com.apple.LaunchServices 290 (290) <b5b494e44b291a782bee370a046d5727> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x7fff80a31000 - 0x7fff80a39ffa libbsm.dylib ??? (???) <4d838c0d8a74fe61c781a53a8723303d> /usr/lib/libbsm.dylib
    0x7fff80a3a000 - 0x7fff80a6cff7 libauto.dylib ??? (???) <cc8eece8c0097b254c758bd4e8df9537> /usr/lib/libauto.dylib
    0x7fff80e4d000 - 0x7fff80fd1ffb libSystem.B.dylib ??? (???) <8e3de87ccdf6c4606b9bcb9da3a33eda> /usr/lib/libSystem.B.dylib
    0x7fff80fd2000 - 0x7fff81046fe7 libstdc++.6.dylib ??? (???) <565ee6f798f7fef6f804c60682787280> /usr/lib/libstdc++.6.dylib
    0x7fff81075000 - 0x7fff81106fff com.apple.SearchKit 1.2.1 (1.2.1) <e2a25e04f281fe8ff7088a08a549020f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x7fff81107000 - 0x7fff8119bfe3 com.apple.CFNetwork 339.5 (339.5) <6e912954955e0af0e0defb59cc2c348a> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x7fff814b5000 - 0x7fff814dcfff libxslt.1.dylib ??? (???) <22a74e7859cfbf63ae7fc310b0a669a4> /usr/lib/libxslt.1.dylib
    0x7fff82112000 - 0x7fff82249fff com.apple.CoreFoundation 6.5.4 (476.15) <4b970007410b71eca926819f3959548f> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8224a000 - 0x7fff8224affa com.apple.CoreServices 32 (32) <c12e589173b697ce88050a6f736549eb> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff830ae000 - 0x7fff830edfef com.apple.framework.IOKit 1.5.1 (???) <56d5528f3623ad4d9c68751018e658c3> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff832b0000 - 0x7fff83360fef com.apple.CoreServices.OSServices 226.5 (226.5) <4461ef69cec249de2315c88e83d4c904> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x7fff83465000 - 0x7fff835d3fff libicucore.A.dylib ??? (???) <25557e76cafa3f8a97ca7bffe42e2d97> /usr/lib/libicucore.A.dylib
    0x7fff835d8000 - 0x7fff835dcfff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x7fff835f5000 - 0x7fff8360dfff com.apple.DictionaryServices 1.0.0 (1.0.0) <78ea11e9a92120f76d69efa24b8d1f95> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x7fff836a5000 - 0x7fff8379afff libxml2.2.dylib ??? (???) <8226d1180354f493954c5fa1fc0e1154> /usr/lib/libxml2.2.dylib
    0x7fff8379b000 - 0x7fff837a1fff com.apple.DiskArbitration 2.2.1 (2.2.1) <e75fe224700767869227cc903bef8ed9> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff8387a000 - 0x7fff83a80ffb com.apple.security 5.0.4 (34102) <e0b73ab106139601404f2666ce1b9d65> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff83ecb000 - 0x7fff84165fe3 com.apple.Foundation 6.5.6 (677.21) <8995b3185ca91d3508c7580794d40813> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff84166000 - 0x7fff841a1fff com.apple.AE 402.2 (402.2) <b03583e0747f82199e0d9604014faa34> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x7fff842ed000 - 0x7fff842f9ff1 libgcc_s.1.dylib ??? (???) <23fa31a628c1ea8a62ac529fa333b6e1> /usr/lib/libgcc_s.1.dylib
    0x7fff842fa000 - 0x7fff84382fe7 libsqlite3.0.dylib ??? (???) <3c7ab3523b816dbd3e039ee7e6e2c580> /usr/lib/libsqlite3.0.dylib
    0x7fff84383000 - 0x7fff8467efe3 com.apple.CoreServices.CarbonCore 786.6 (786.6) <7048aee00133f19029108600e9ede844> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x7fffffe00000 - 0x7fffffe01780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
    0xfffffffffffec000 - 0xfffffffffffeffff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
    As I said, java 1.5 worked for a while, however recently it too has stopped working and spits out Segmentation Faults like these. Any clues as to why, and how to fix?
    Much thanks.

    I have no answers, but strongly suggest posting to an appropriate forum under OS X Technologies, where Unix and developer gurus hang out.

  • [Partially solved]Torcs Segmentation fault

    Everything working until I start race,text shows on screen and when it show 'Ready.' application crushes. I can change options and customize race,it working. I tried all races but it is same. I use nvidia-96xx proprietary driver.This is terminal output:
    [nale@nale ~]$ torcs
    Visual Properties Report
    Compatibility mode, properties unknown.
    /usr/bin/torcs: line 53: 12670 Segmentation fault (core dumped) $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
    Comp specs:
    processor: AMD 1.5 GHz
    ram: 256 MB
    video: nvidia  GeForce4 MX 4000 with 64MB
    Last edited by na12 (2013-02-21 10:04:41)

    Hi Gurus,
    glxgears and other openGL apps work fine, but Torcs (self-compiled) fails on startup:
    ~$ torcs
    Visual Properties Report
    Compatibility mode, properties unknown.
    /usr/local/bin/torcs: line 53: 4267 Segmentation fault $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
    ~$
    and here the debug output:
    ~$ torcs -d
    GNU gdb (GDB) 7.4.1-debian
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/local/lib/torcs/torcs-bin...done.
    (gdb) Starting program: /usr/local/lib/torcs/torcs-bin -l /home/peter/.torcs -L /usr/local/lib/torcs -D /usr/local/share/games/torcs
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    Visual Properties Report
    Compatibility mode, properties unknown.
    [New Thread 0x7fffee823700 (LWP 4343)]
    [New Thread 0x7fffee022700 (LWP 4344)]
    Program received signal SIGSEGV, Segmentation fault.
    0x00007fffeeeac773 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
    (gdb) #0 0x00007fffeeeac773 in ?? ()
    from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
    #1 0x00007ffff6b446d1 in getGLTextureMaxSize (result=@0x7ffff6d4ad14: 0)
    at glfeatures.cpp:113
    #2 0x00007ffff6b447d8 in checkGLFeatures () at glfeatures.cpp:155
    #3 0x00007ffff6b3c554 in GfScrInit (argc=7, argv=0x7fffffffe2f8)
    at screen.cpp:413
    #4 0x000000000040153c in main (argc=7, argv=0x7fffffffe2f8) at main.cpp:132
    (gdb) quit
    A debugging session is active.
    ---Type <return> to continue, or q <return> to quit---
    Inferior 1 [process 4340] will be killed.
    Quit anyway? (y or n) [answered Y; input not from terminal]
    ~$
    Any idea how I can fix the segmention fault?
    Things I've tried:
    - my user is in the 'video' group
    - I have not found any way to disable sound, since startup fails. I think from Debug that the sound isn't the issue.
    Thanks!

  • Segmentation fault with mod_wl_22.so and Apache 2.2.3

    Hi,
    Every few requests, the proxy plugin seg faults.
    The following backtrace is logged:
    [Sun Sep 26 06:26:16 2010] [notice] child pid 28254 exit signal Segmentation fault (11)
    *** glibc detected *** /usr/sbin/httpd: free(): invalid pointer: 0x00002b285a9882f0 ***
    ======= Backtrace: =========
    /lib64/libc.so.6[0x2b2853f3230f]
    /lib64/libc.so.6(cfree+0x4b)[0x2b2853f3276b]
    /etc/httpd/modules/mod_wl_22.so(_tmf90043+0x2f)[0x2b285d4f9954]
    /etc/httpd/modules/mod_wl_22.so(_tmf90047+0x51)[0x2b285d4e0c2c]
    /etc/httpd/modules/mod_wl_22.so(_tmf90487+0xa3)[0x2b285d4e062d]
    /etc/httpd/modules/mod_wl_22.so(_ZN3URL5closeEv+0x69)[0x2b285d49d353]
    /etc/httpd/modules/mod_wl_22.so(_Z19getPooledConnectionP8ListNodePKctiiP10LogContext+0x1c2)[0x2b285d498ff2]
    /etc/httpd/modules/mod_wl_22.so[0x2b285d490ee4]
    /etc/httpd/modules/mod_wl_22.so(request_handler+0x10b0)[0x2b285d493018]
    /usr/sbin/httpd(ap_run_handler+0x7a)[0x2b2851fc5a4a]
    /usr/sbin/httpd(ap_invoke_handler+0x78)[0x2b2851fc8ed8]
    /usr/sbin/httpd(ap_process_request+0x1a8)[0x2b2851fd3978]
    /usr/sbin/httpd[0x2b2851fd0bb0]
    /usr/sbin/httpd(ap_run_process_connection+0x72)[0x2b2851fcccd2]
    /usr/sbin/httpd[0x2b2851fd77c9]
    /usr/sbin/httpd[0x2b2851fd7a5a]
    /usr/sbin/httpd[0x2b2851fd7b10]
    /usr/sbin/httpd(ap_mpm_run+0xccb)[0x2b2851fd87fb]
    /usr/sbin/httpd(main+0x7e8)[0x2b2851fb2e48]
    /lib64/libc.so.6(__libc_start_main+0xf4)[0x2b2853edd994]
    /usr/sbin/httpd[0x2b2851fb2199]
    I am using the following plugin version:
    Oracle WebLogic plugin build date/time: Apr 20 2009 15:29:36. Change Number: 1211636
    The OS is a stock RHEL 5.4 (64 bit)
    Any ideas?

    I've tried to upgrade to plugin version 1.1, but now it refuses to use SSL between the proxy and the weblogic server.
    All I get from the logs is the following:
    Sun Sep 26 12:03:32 2010 <2450512854954051> mod_weblogic(ssl): Connection mod_wl SSL handshake failed (29024)
    Sun Sep 26 12:03:32 2010 <2450512854954051> mod_weblogic(ssl): SSL Handshake failed
    I've created a wallet, and imported my certificate to it as a trusted certificate.
    It should be noted that I have a wildcard certificate, and the previous plugin version did not support it - I had to use
    RequireSSLHostMatch false
    EnforceBasicConstraints false
    for it to work. These options are no longer supported in 1.1 - Why?

  • [solved] Segmentation fault with bash script

    I have a bash script that checks if it has to do something, if not it sleeps 15 secs and checks again. It works great except that after ~6hrs of just checking and sleeping it seg faults. I upped the stack limit with ulimit -s and it goes ~12hrs before it seg faults. I have a similar script that I have been using for ages that works for 24hrs no problem and I can't pinpoint where the problem is.
    The check it does is to see if a file exists, if it's empty and if not, read the first line of a file and do some date comparisons. It doesn't matter if the file is empty or not the seg fault always happens.
    Here's the seg fault causing script - it starts at the bottom
    #!/bin/bash
    # User defines
    declare -i DVB_DEVICE_NUM="0"
    declare CHANNELS_CONF="${HOME}/Mychannels.conf"
    declare SAVE_FOLDER="${HOME}/TV/tele"
    declare SCHED_FILE="$HOME/.sched-tv"
    declare ZAP_COMMAND="tzap"
    declare -i SLEEP=15
    # Program defines
    declare -i DAY="0"
    declare -i START="0"
    declare -i FINISH="0"
    declare CHAN="0"
    declare NAME="0"
    declare -i MINUTES="0"
    declare -i REC_START="0"
    declare -i REC_HOURS="0"
    declare -i REC_MINS="0"
    declare -i howlong="0"
    declare -i PIDOF_AZAP=0
    declare -i PIDOF_CAT=0
    red='\033[1;31m'
    green='\033[1;32m'
    yell='\033[1;33m'
    cyan='\033[1;36m'
    white='\033[1;37m'
    reset='\033[0m'
    function remove_entry {
    if [ "$NAME" == "" ]; then
    sed "/$DAY $START $FINISH $CHAN/d" $SCHED_FILE > /tmp/dummy
    else
    sed "/$DAY $START $FINISH $CHAN $NAME/d" $SCHED_FILE > /tmp/dummy
    fi
    mv /tmp/dummy $SCHED_FILE
    function record_entry {
    ${ZAP_COMMAND} -a ${DVB_DEVICE_NUM} -f ${DVB_DEVICE_NUM} -d ${DVB_DEVICE_NUM} \
    -c $CHANNELS_CONF -r ${CHAN} >/dev/null 2>&1 &
    PIDOF_AZAP=$!
    if [ "$PIDOF_AZAP" == "" ]; then
    printf "$red\tError starting ${ZAP_COMMAND}.\n\tFAILED: $CHAN $START\n"
    remove_entry
    exit 1
    fi
    printf "$green\tSET CHANNEL$cyan ${CHAN}\n"
    REC_MINS=$((${START}%100))
    REC_HOURS=0
    MINUTES=0
    REC_START=$(($START-$REC_MINS))
    while [ $((${REC_START}+${REC_HOURS}+${REC_MINS})) -lt $FINISH ]; do
    ((REC_MINS++))
    ((MINUTES++))
    if [ ${REC_MINS} -ge 60 ]; then
    REC_MINS=0
    ((REC_HOURS+=100))
    fi
    done
    if [ "$NAME" == "" ]; then
    declare FILE_NAME="${SAVE_FOLDER}/TV-`date +%Y%m%d-%H%M`-ch.${CHAN}-${MINUTES}.min.mpg"
    else
    declare FILE_NAME="${SAVE_FOLDER}/TV-${NAME}-${MINUTES}.min.mpg"
    fi
    dd if=/dev/dvb/adapter${DVB_DEVICE_NUM}/dvr${DVB_DEVICE_NUM} \
    of=${FILE_NAME} conv=noerror &
    PIDOF_CAT=$!
    if (( ${PIDOF_CAT} == 0 )); then
    printf "$red\tError Starting Recording.\n\t/dev/dvb/adapter${DVB_DEVICE_NUM}/dvr${DVB_DEVICE_NUM} Unavailable\n"
    kill ${PIDOF_AZAP}
    remove_entry
    exit 1
    fi
    printf "$yell\tRECORDING TO :$cyan ${FILE_NAME}\n"
    sleep ${MINUTES}m
    kill ${PIDOF_CAT} && wait ${PIDOF_CAT} 2> /dev/null
    # pkill $ZAP_COMMAND # && wait ${PIDOF_AZAP} 2> /dev/null
    kill ${PIDOF_AZAP} && wait ${PIDOF_AZAP} 2> /dev/null
    printf "$yell\tFINISHED REC :$cyan ${FILE_NAME}\n$reset"
    remove_entry
    waiting 1
    function check_action {
    [ -e "$SCHED_FILE" ] || waiting $SLEEP
    [ "`cat $SCHED_FILE`" == "" ] && waiting $SLEEP
    DAY="0"; START="0"; FINISH="0"; CHAN="0"; NAME="0"
    TODAY=`date +%Y%m%d`
    NOW=`date +%k%M`
    while read -r DAY START FINISH CHAN NAME; do
    #printf "$DAY $START $FINISH $CHAN $NAME\n"
    break
    done < $SCHED_FILE
    if [ $DAY == $TODAY ] && [ $START -lt $NOW ]; then
    printf "$red\tOld Entry : Removing $CHAN $START\n"
    remove_entry
    waiting 1
    fi
    if [ $DAY == $TODAY ] && [ $START == $NOW ]; then
    record_entry
    else
    waiting $SLEEP
    fi
    function waiting {
    howlong=$1
    sleep $howlong && check_action
    check_action
    exit 0
    And the script that has been working fine 24hrs at a time
    #!/bin/bash
    echo alarm uses a twelve hour clock
    echo Type the time for the alarm to sound as 00-00-?m
    echo e.g. 05-35-pm for 5:35pm :: 05-35-am for 5:35am
    read TIME
    function play {
    A="$(date +%I-%M-%P)"
    if [ $A = $TIME ]; then
    for i in {1..10}; do
    $(aplay -c 1 /home/$USER/alarm/chime.wav); done
    exit
    else
    wait
    fi
    function wait {
    sleep 15 && play
    play
    I was hoping to have this script idling away in screen with rtorrent, always ready to do something if need be but that's not going to happen unless I can get a clue on what part of the script I need to change to not hit any limits. My websearches are failing me on this...
    Last edited by moetunes (2012-06-24 21:41:52)

    Thanks falconindy. I changed to using a while loop.
    #!/bin/bash
    set -o nounset
    shopt -s huponexit
    # User defines
    declare -i DVB_DEVICE_NUM="0"
    declare CHANNELS_CONF="${HOME}/Mychannels.conf"
    declare SAVE_FOLDER="${HOME}/TV/tele"
    declare SCHED_FILE="$HOME/.sched-tv"
    declare ZAP_COMMAND="tzap"
    declare -i SLEEP=15
    # Program defines
    declare -i DAY="0"
    declare -i START="0"
    declare -i FINISH="0"
    declare CHAN="0"
    declare NAME="0"
    declare -i MINUTES="0"
    declare -i REC_START="0"
    declare -i REC_HOURS="0"
    declare -i REC_MINS="0"
    declare -i howlong=$SLEEP
    declare -i PIDOF_AZAP=0
    declare -i PIDOF_CAT=0
    red='\033[1;31m'
    green='\033[1;32m'
    yell='\033[1;33m'
    cyan='\033[1;36m'
    white='\033[1;37m'
    reset='\033[0m'
    function remove_entry {
    if [ "$NAME" == "" ]; then
    sed "/$DAY $START $FINISH $CHAN/d" $SCHED_FILE > /tmp/dummy
    else
    sed "/$DAY $START $FINISH $CHAN $NAME/d" $SCHED_FILE > /tmp/dummy
    fi
    mv /tmp/dummy $SCHED_FILE
    function record_entry {
    ${ZAP_COMMAND} -a ${DVB_DEVICE_NUM} -f ${DVB_DEVICE_NUM} -d ${DVB_DEVICE_NUM} \
    -c $CHANNELS_CONF -r ${CHAN} >/dev/null 2>&1 &
    PIDOF_AZAP=$!
    if [ "$PIDOF_AZAP" == "" ]; then
    printf "$red\tError starting ${ZAP_COMMAND}.\n\tFAILED: $CHAN $START\n"
    remove_entry
    exit 1
    fi
    printf "$green\tSET CHANNEL$cyan ${CHAN}\n"
    REC_MINS=$((${START}%100))
    REC_HOURS=0
    MINUTES=0
    REC_START=$(($START-$REC_MINS))
    while [ $((${REC_START}+${REC_HOURS}+${REC_MINS})) -lt $FINISH ]; do
    ((REC_MINS++))
    ((MINUTES++))
    if [ ${REC_MINS} -ge 60 ]; then
    REC_MINS=0
    ((REC_HOURS+=100))
    fi
    done
    if [ "$NAME" == "" ]; then
    declare FILE_NAME="${SAVE_FOLDER}/TV-`date +%Y%m%d-%H%M`-ch.${CHAN}-${MINUTES}.min.mpg"
    else
    declare FILE_NAME="${SAVE_FOLDER}/TV-${NAME}-${MINUTES}.min.mpg"
    fi
    dd if=/dev/dvb/adapter${DVB_DEVICE_NUM}/dvr${DVB_DEVICE_NUM} \
    of=${FILE_NAME} conv=noerror &
    PIDOF_CAT=$!
    if (( ${PIDOF_CAT} == 0 )); then
    printf "$red\tError Starting Recording.\n\t/dev/dvb/adapter${DVB_DEVICE_NUM}/dvr${DVB_DEVICE_NUM} Unavailable\n"
    kill ${PIDOF_AZAP}
    remove_entry
    exit 1
    fi
    printf "$yell\tRECORDING TO :$cyan ${FILE_NAME}\n"
    sleep ${MINUTES}m
    kill ${PIDOF_CAT} && wait ${PIDOF_CAT} 2> /dev/null
    # pkill $ZAP_COMMAND # && wait ${PIDOF_AZAP} 2> /dev/null
    kill ${PIDOF_AZAP} && wait ${PIDOF_AZAP} 2> /dev/null
    printf "$yell\tFINISHED REC :$cyan ${FILE_NAME}\n$reset"
    remove_entry
    while true; do
    sleep $howlong
    howlong=$SLEEP
    [ -e "$SCHED_FILE" ] || continue
    [ "`cat $SCHED_FILE`" == "" ] && continue
    TODAY=`date +%Y%m%d`
    NOW=`date +%k%M`
    while read -r DAY START FINISH CHAN NAME; do
    #printf "$DAY $START $FINISH $CHAN $NAME\n"
    break
    done < $SCHED_FILE
    if [ $DAY == $TODAY ] && [ $START -lt $NOW ]; then
    printf "$red\tOld Entry : Removing $CHAN $START\n"
    remove_entry
    howlong=1
    continue
    fi
    if [ $DAY == $TODAY ] && [ $START == $NOW ]; then
    record_entry
    fi
    done
    exit 0
    I think that should be ok now.

  • **SOLVED**Heavy Metal Fakk 2 problem (Segmentation Fault)

    **Fixed**
    To play the game, download the installer from http://www.liflg.org/?catid=6&gameid=68
    Once installed, instead using "fakk2" to start the game, just use "fakk2.sh"
    Hi all
    Im having this problem trying to get Heavy Metal Fakk 2 running
    When i try to launch the game i get
    [almamater@boX fakk2]$ ./fakk2
    Creating fakk2 preferences directory: /home/almamater/.loki/fakk2
    Heavy Metal: FAKK2 1.02 linux-i386 Oct 9 2001
    ----- FS_Startup -----
    Current search path:
    /home/almamater/.loki/fakk2/fakk
    /usr/local/games/fakk2/fakk/pak4.pk3 (6 files)
    /usr/local/games/fakk2/fakk/pak3.pk3 (21 files)
    /usr/local/games/fakk2/fakk/pak2.pk3 (13 files)
    /usr/local/games/fakk2/fakk/pak1.pk3 (2606 files)
    /usr/local/games/fakk2/fakk/pak0.pk3 (9610 files)
    /usr/local/games/fakk2/fakk
    /usr/local/games/fakk2/fakk/pak4.pk3 (6 files)
    /usr/local/games/fakk2/fakk/pak3.pk3 (21 files)
    /usr/local/games/fakk2/fakk/pak2.pk3 (13 files)
    /usr/local/games/fakk2/fakk/pak1.pk3 (2606 files)
    /usr/local/games/fakk2/fakk/pak0.pk3 (9610 files)
    /usr/local/games/fakk2/fakk
    ----- CL_Shutdown -----
    BUG! (Segmentation Fault) Going down hard...
    Heavy Metal: FAKK2
    Built with glibc-2.1 on x86
    Stack dump:
    ./fakk2(loki_printstack+0x3f)[0x8181443]
    ./fakk2[0x818162b]
    ./fakk2[0x81060a4]
    [0xb7eec420]
    /lib/libz.so.1(inflate+0x10f0)[0xb7ea6ba0]
    ./fakk2(unzReadCurrentFile+0x15c)[0x80e72f4]
    ./fakk2(FS_Read+0xfa)[0x80d4a42]
    ./fakk2(FS_ReadFileEx+0x1e7)[0x80d4fab]
    ./fakk2(FS_ReadFile+0x18)[0x80d5044]
    ./fakk2[0x80d6460]
    ./fakk2(FS_InitFilesystem+0x62)[0x80d65ca]
    ./fakk2(Com_Init+0x48)[0x80d1b6c]
    ./fakk2(main+0x25a)[0x8106416]
    /lib/libc.so.6(__libc_start_main+0xe0)[0xb7c6ff90]
    ./fakk2(XMapRaised+0x35)[0x808e5e1]
    Please send a full bug report,
    along with the contents of autosave to: [email protected]
    Unable to execute loki_qagent - exiting
    Have anyone got this problem whit this game? if so.. did u fix it?...if so..  can u please tell me how can i make it run?
    thanks for any help
    cheers
    I have everything up-to-date , direct rendering  whit i810 driver, olso i have other games running whitout problems
    Last edited by AlmaMater (2007-10-05 01:24:27)

    Hello again
    I think I've solved my problem :)
    I was using database to hold my images. After generating image from database with PHP I didn't destroy the output. So there was segmentation fault with memory. After correcting my scripts everything from 72 hours works fine :)))
    I hope so....
    Best regards
    Rafal
    P.S.
    http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php#60241
    http://pl.php.net/manual/pl/function.imagejpeg.php#42610

  • Mutt sidebar and imap gmail account: Segmentation fault

    Hi,
    i recently installed mutt sidebar, but i cannot get it to work. if i use "mailboxes =INBOX" it gives segmentation fault, with that line commented out, it works (except for no sidebar folders)
    i've tried with +INBOX, +Inbox, =Inbox, Inbox, INBOX, [Gmail]/INBOX, and nothing seems to work
    is there a guide or something around the web to setup mutt sidebar with gmail correctly? or also a tool to discover my gmail folder tree?

    There's this:
    http://pbrisbin.com:8080/pages/mutt.html
    My mutt configuration is heavliy based on it.
    Last edited by alexandrite (2010-08-25 13:31:24)

  • Cfencode.linux segmentation fault

    Does anybody have cfencode.linux working? I keep getting a
    segmentation fault with I actually try to cfencode a file (cfencode
    somefile.cfm). If I just do a cfencode, this seems to work in that
    it prints out the usage message.
    Mike

    I am receiving this error too. I was originally unable to run
    the program at all because it was unable to find libporting.so, but
    I added the path to this file to my LD_LIBRARY_PATH global
    variable. After that I was able to run the raw program to generate
    a list of expected parameters, but once I try to feed a template to
    it I got the segmentation fault error.
    Did you ever find a solution?

Maybe you are looking for

  • HT1688 Itunes on Iphone crashes-after the ios7 update my iPhone 5 will no longer open iTunes. Any suggestions.

    I have updated my iPhone 5 to iOS 7. Since the update whenever I go to open iTunes on my iPhone it crashes. Can anybody help?

  • When I tried to burn a CD

    After I tried to burn a CD it quit and said:  The burn to the OPTIARC DVD RW AD5690H drived.  Failed  The burn failed because of a medium write error.

  • ABAP mapping split messages and dynamic filename

    Hello, i have set up a IDOC to file scenario where the IDOC is split into several files, which works fine. In addition to this it is required to set a dynamic filename out of the ABAP mapping for each file. If only one file is created this works alre

  • Navigate in a new window

    Hey, I'am actually using navigation targets through the column properties. I hve 5 targets on it. Everything is fine but I would like it to open in a new window. Is that possible? Thanks!

  • Server wont accept smtp relays

    I have a 10.5 mail server that until recently accepted smtp connections from our users while offsite. For no apparent reason we are now getting a message that the server does not accept relays. I have turned off the accept relays only from these netw