Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-05

Division by zero. with fpc r30855

20 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan

fpc r30888 lazarus r49115 osx qtx64 -dEnableUTF8RTL

I get this error, when try run or build my application with fpc r30855 or later. r30854 is work normal, I mean no error.

Division by zero.

Press OK to ignore and risk data corruption.

Press Cancel to kill the program.

I clean make fpc and lazarus then build lazarus in terminal. no any error. Open lazarus, then my project, no any error. When click to run button or build button, I get this error.
Remove all compiled units of my project, then click build button, project builded no error. After click to run button, I get error. But Application can work out from IDE

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150520/be6b7ffd/attachment-0001.html>

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 18 lines
fpc r30888 lazarus r49115 osx qtx64 -dEnableUTF8RTL I get this error, when try run or build my application with fpc r30855 or later. r30854 is work normal, I mean no error. Division by zero. Press OK to ignore and risk data corruption. Press Cancel to kill the program. I clean make fpc and lazarus then build lazarus in terminal. no any error. Open lazarus, then my project, no any error. When click to run button or build button, I get this error. Remove all compiled units of my project, then click build button, project builded no error. After click to run button, I get error. But Application can work out from IDE

Can you create a stacktrace?

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote
Can you create a stacktrace? Mattias

in terminal:
gdb lazarus
nearly all xxx.o files has warning
warning:
`/opt/lazarus/components/PascalScript/Source/lib/x86_64-darwin/PascalScript_Core_Reg.o': file time stamp mismatch.
warning:
`/opt/lazarus/components/PascalScript/Source/lib/x86_64-darwin/pascalscript.o': file time stamp mismatch.
....
If I'm not wrong, this warnings mean, IDE each click to build button, can't compare builded time so rebuild again. (out this topic)

this is When click to build button I get:

ERROR in IDE:
Creating gdb catchable error:
[New Thread 0x1c17 of process 686]

Program received signal SIGFPE, Arithmetic exception. 0x0000000100696c01 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb)

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 10 lines
[...] warning: `/opt/lazarus/components/PascalScript/Source/lib/x86_64-darwin/PascalScript_Core_Reg.o': file time stamp mismatch. warning: `/opt/lazarus/components/PascalScript/Source/lib/x86_64-darwin/pascalscript.o': file time stamp mismatch. .... If I'm not wrong, this warnings mean, IDE each click to build button, can't compare builded time so rebuild again. (out this topic)

This comes from the compiler.

Show quoted text 10 lines
this is When click to build button I get: ERROR in IDE: Creating gdb catchable error: [New Thread 0x1c17 of process 686] Program received signal SIGFPE, Arithmetic exception. 0x0000000100696c01 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb)

Can you create the stacktrace? Command "bt".

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
`/opt/lazarus/components/PascalScript/Source/lib/x86_64-darwin/pascalscript.o': file time stamp mismatch. .... If I'm not wrong, this warnings mean, IDE each click to build button, can't compare builded time so rebuild again. (out this topic) This comes from the compiler.

Is this mean, I'm right? Is this need to report new issue?

Can you create the stacktrace? Command "bt". Mattias

ERROR in IDE:
Creating gdb catchable error:
[New Thread 0x1b17 of process 647]

Program received signal SIGFPE, Arithmetic exception. 0x0000000100696c01 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt
#0 0x0000000100696c01 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 #1 0x0000000100b51c98 in ADD (this=0x11d811da0, SRCFILE=0x112cb14c0, PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182 #2 0x0000000100b538a8 in CHECKDUPLICATESRCFILES
(parentfp=0x7fff5fbfdb10) at ../packager/interpkgconflictfiles.pas:991 #3 0x0000000100b5362c in CHECKINTERPKGFILES (IDEOBJECT=0x112454b10, PKGLIST=0x11d8139c0, FILESCHANGED=false)
at ../packager/interpkgconflictfiles.pas:1062
#4 0x000000010056484d in PACKAGEGRAPHCHECKINTERPKGFILES (this=0x1168bf440, IDEOBJECT=0x112454b10, PKGLIST=0x11d8139c0, FILESCHANGED=false) at ../packager/pkgmanager.pas:929 #5 0x0000000100557344 in COMPILEREQUIREDPACKAGES (this=0x106ef3ac0, APACKAGE=0x0, FIRSTDEPENDENCY=0x11719c140,
SKIPDESIGNTIMEPACKAGES=true, POLICY=PUPASNEEDED) at ../packager/packagesystem.pas:3667
#6 0x000000010057162a in DOCOMPILEPROJECTDEPENDENCIES (this=0x1168bf440, APROJECT=0x112454b10, FLAGS=128) at ../packager/pkgmanager.pas:4164
#7 0x0000000100089fdb in DOBUILDPROJECT (this=0x106ef31c0, AREASON=CRBUILD, FLAGS=1, FINALIZERESOURCES=true) at main.pp:6575 #8 0x0000000100080a29 in MNUBUILDPROJECTCLICKED (this=0x106ef31c0, SENDER=0x116a70f40) at main.pp:4266
#9 0x0000000100450971 in
MENUINTF$_$TIDEMENUITEM_$__$$_MENUITEMCLICK$TOBJECT () #10 0x0000000100454679 in
MENUINTF$_$TIDEMENUCOMMAND_$__$$_MENUITEMCLICK$TOBJECT () #11 0x0000000100452315 in MENUINTF$_$TIDEMENUITEM_$__$$_TRIGGERCLICK () #12 0x0000000100f99769 in CLICK (this=0x111d0e1d0) at editortoolbar_impl.pas:162
#13 0x00000001002b339f in
COMCTRLS$_$TTOOLBUTTON_$__$$_MOUSEUP$TMOUSEBUTTON$TSHIFTSTATE$LONGINT$LONGINT ()
#14 0x00000001001fbbd7 in
CONTROLS$_$TCONTROL_$__$$_DOMOUSEUP$TLMMOUSE$TMOUSEBUTTON () #15 0x00000001001fc736 in CONTROLS$_$TCONTROL_$__$$_WMLBUTTONUP$TLMMOUSE () #16 0x000000010001231d in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal () #17 0x00000001019380b0 in $$fpclocal$_ld230 ()
#18 0x0000000101934048 in VMT_$CONTROLS_$$_TWINCONTROL () #19 0x000000000000002a in ?? ()
#20 0x0000000000000202 in ?? ()
#21 0x00007fff5fbfe258 in ?? ()
#22 0x0000000111d0e1d0 in ?? ()
#23 0x00007fff5fbfefa0 in ?? ()
#24 0x0000000106f095e0 in ?? ()
#25 0x00007fff5fbfefa0 in ?? ()
#26 0x000000011ad14730 in ?? ()
#27 0x0000000114416440 in ?? ()
#28 0x00000001001fb9b9 in CONTROLS$_$TCONTROL_$__$$_WNDPROC$TLMESSAGE () #29 0x00000001001fa220 in
CONTROLS$_$TCONTROL_$__$$_PERFORM$LONGWORD$WPARAM$LPARAM$$LRESULT () #30 0x00000001001ed4ab in
CONTROLS$_$TWINCONTROL_$__$$_ISCONTROLMOUSEMSG$formal$$BOOLEAN () #31 0x00000001001eeb7d in CONTROLS$_$TWINCONTROL_$__$$_WNDPROC$TLMESSAGE () #32 0x00000001002716b1 in
QTWIDGETS$_$TQTWIDGET_$__$$_DELIVERMESSAGE$formal$BOOLEAN$$LRESULT () #33 0x000000010026d6ad in
QTWIDGETS$_$TQTWIDGET_$__$$_SLOTMOUSE$QOBJECTH$QEVENTH$$BOOLEAN () #34 0x000000010026b63b in
QTWIDGETS$_$TQTWIDGET_$__$$_EVENTFILTER$QOBJECTH$QEVENTH$$BOOLEAN () #35 0x000000010028a762 in
QTWIDGETS$_$TQTVIEWPORT_$__$$_EVENTFILTER$QOBJECTH$QEVENTH$$BOOLEAN () #36 0x000000010028b8ad in
QTWIDGETS$_$TQTCUSTOMCONTROL_$__$$_VIEWPORTEVENTFILTER$QEVENTH$PBOOLEAN () #37 0x0000000103b9c92f in QLCLAbstractScrollArea::viewportEvent(QEvent*) () from /Library/Frameworks/Qt4Pas.framework/Versions/5/Qt4Pas ---Type <return> to continue, or q <return> to quit--- #38 0x0000000106114f10 in
QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #39 0x0000000106bdeff7 in
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #40 0x0000000105c98ade in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #41 0x0000000105c9eeb0 in QApplication::notify(QObject*, QEvent*) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #42 0x0000000106bdf54c in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #43 0x0000000105ca023d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #44 0x0000000105c4c62b in qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #45 0x00007fff8fa48e57 in -[NSWindow _reallySendEvent:isDelayedEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #46 0x00007fff8f3dbd76 in -[NSWindow sendEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #47 0x0000000105c41607 in -[QCocoaWindow sendEvent:] () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #48 0x00007fff8f3d8312 in -[NSApplication sendEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #49 0x0000000105c466e4 in -[QNSApplication sendEvent:] () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #50 0x0000000105c4efea in
qt_mac_send_event(QFlags<QEventLoop::ProcessEventsFlag>, NSEvent*, NSWindow*) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #51 0x0000000105c51370 in
QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #52 0x0000000106be1245 in
QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #53 0x0000000103b062b4 in QCoreApplication_processEvents () from /Library/Frameworks/Qt4Pas.framework/Versions/5/Qt4Pas #54 0x00000001001c71c1 in QTINT$_$TQTWIDGETSET_$__$$_APPPROCESSMESSAGES () #55 0x000000010005a4e5 in FORMS$_$TAPPLICATION_$__$$_HANDLEMESSAGE () #56 0x000000010005aa08 in FORMS$_$TAPPLICATION_$__$$_RUNLOOP () #57 0x00000001001c7180 in
QTINT$_$TQTWIDGETSET_$__$$_APPRUN$TAPPLICATIONMAINLOOP () #58 0x000000010005a9ac in FORMS$_$TAPPLICATION_$__$$_RUN () #59 0x0000000100000f5d in PASCALMAIN () at lazarus.pp:132 #60 0x0000000100021bf9 in SYSTEM_$$_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR () #61 0x0000000000000000 in ?? ()

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 24 lines
On 20.05.2015 13:05, Mattias Gaertner wrote: > `/opt/lazarus/components/PascalScript/Source/lib/x86_64-darwin/pascalscript.o': > file time stamp mismatch. .... If I'm not wrong, this warnings mean, > IDE each click to build button, can't compare builded time so rebuild > again. (out this topic) > This comes from the compiler. Is this mean, I'm right? Is this need to report new issue? > Can you create the stacktrace? Command "bt". > > Mattias ERROR in IDE: Creating gdb catchable error: [New Thread 0x1b17 of process 647] Program received signal SIGFPE, Arithmetic exception. 0x0000000100696c01 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt #0 0x0000000100696c01 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 #1 0x0000000100b51c98 in ADD (this=0x11d811da0, SRCFILE=0x112cb14c0, PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182 #2 0x0000000100b538a8 in CHECKDUPLICATESRCFILES (parentfp=0x7fff5fbfdb10) at ../packager/interpkgconflictfiles.pas:991

Fixed.

Mattias

Reply by email

Mattias Gaertner
to FreeMan: Is this mean, I'm right? Is this need to report new issue? ERROR in IDE: Creating gdb…
Show quoted text 7 lines
On 20.05.2015 13:05, Mattias Gaertner wrote: > `/opt/lazarus/components/PascalScript/Source/lib/x86_64-darwin/pascalscript.o': > file time stamp mismatch. .... If I'm not wrong, this warnings mean, > IDE each click to build button, can't compare builded time so rebuild > again. (out this topic) > This comes from the compiler. Is this mean, I'm right? Is this need to report new issue?

I don't know how to create the above message. Feel free to ask on the fpc lists, what it means.

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote
Same stacktrace? Mattias

ERROR in IDE:
Creating gdb catchable error:
[New Thread 0x1c17 of process 4309]

Program received signal SIGFPE, Arithmetic exception. 0x0000000100696bf1 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt
#0 0x0000000100696bf1 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 #1 0x0000000100b51c88 in ADD (this=0x11a334da0, SRCFILE=0x118154440, PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182 #2 0x0000000100b538ad in CHECKDUPLICATESRCFILES
(parentfp=0x7fff5fbfdae0) at ../packager/interpkgconflictfiles.pas:994 #3 0x0000000100b5361c in CHECKINTERPKGFILES (IDEOBJECT=0x117d2e9f0, PKGLIST=0x11a3369c0, FILESCHANGED=false)
at ../packager/interpkgconflictfiles.pas:1065
#4 0x000000010056483d in PACKAGEGRAPHCHECKINTERPKGFILES (this=0x11696b3c0, IDEOBJECT=0x117d2e9f0, PKGLIST=0x11a3369c0, FILESCHANGED=false) at ../packager/pkgmanager.pas:929 #5 0x0000000100557334 in COMPILEREQUIREDPACKAGES (this=0x106ef3ac0, APACKAGE=0x0, FIRSTDEPENDENCY=0x11714a1c0,
SKIPDESIGNTIMEPACKAGES=true, POLICY=PUPASNEEDED) at ../packager/packagesystem.pas:3667
#6 0x000000010057161a in DOCOMPILEPROJECTDEPENDENCIES (this=0x11696b3c0, APROJECT=0x117d2e9f0, FLAGS=128) at ../packager/pkgmanager.pas:4164
#7 0x0000000100089efb in DOBUILDPROJECT (this=0x106ef31c0, AREASON=CRBUILD, FLAGS=1, FINALIZERESOURCES=true) at main.pp:6575 #8 0x0000000100080949 in MNUBUILDPROJECTCLICKED (this=0x106ef31c0, SENDER=0x116b1cf40) at main.pp:4266
#9 0x0000000100450961 in
MENUINTF$_$TIDEMENUITEM_$__$$_MENUITEMCLICK$TOBJECT () #10 0x0000000100454669 in
MENUINTF$_$TIDEMENUCOMMAND_$__$$_MENUITEMCLICK$TOBJECT () #11 0x0000000100452305 in MENUINTF$_$TIDEMENUITEM_$__$$_TRIGGERCLICK () #12 0x0000000100f99769 in CLICK (this=0x117c5faf0) at editortoolbar_impl.pas:162
#13 0x00000001002b32bf in
COMCTRLS$_$TTOOLBUTTON_$__$$_MOUSEUP$TMOUSEBUTTON$TSHIFTSTATE$LONGINT$LONGINT ()
#14 0x00000001001fbaf7 in
CONTROLS$_$TCONTROL_$__$$_DOMOUSEUP$TLMMOUSE$TMOUSEBUTTON () #15 0x00000001001fc656 in CONTROLS$_$TCONTROL_$__$$_WMLBUTTONUP$TLMMOUSE () #16 0x000000010001223d in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal () #17 0x00000001019380b0 in $$fpclocal$_ld230 ()
#18 0x0000000101934048 in VMT_$CONTROLS_$$_TWINCONTROL () #19 0x000000000000002a in ?? ()
#20 0x0000000000000202 in ?? ()
#21 0x00007fff5fbfe228 in ?? ()
#22 0x0000000117c5faf0 in ?? ()
#23 0x00007fff5fbfef70 in ?? ()
#24 0x0000000106f00770 in ?? ()
#25 0x00007fff5fbfef70 in ?? ()
#26 0x0000000118a10e90 in ?? ()
#27 0x0000000118c00440 in ?? ()
#28 0x00000001001fb8d9 in CONTROLS$_$TCONTROL_$__$$_WNDPROC$TLMESSAGE () #29 0x00000001001fa140 in
CONTROLS$_$TCONTROL_$__$$_PERFORM$LONGWORD$WPARAM$LPARAM$$LRESULT () #30 0x00000001001ed3cb in
CONTROLS$_$TWINCONTROL_$__$$_ISCONTROLMOUSEMSG$formal$$BOOLEAN () #31 0x00000001001eea9d in CONTROLS$_$TWINCONTROL_$__$$_WNDPROC$TLMESSAGE () #32 0x00000001002715d1 in
QTWIDGETS$_$TQTWIDGET_$__$$_DELIVERMESSAGE$formal$BOOLEAN$$LRESULT () #33 0x000000010026d5cd in
QTWIDGETS$_$TQTWIDGET_$__$$_SLOTMOUSE$QOBJECTH$QEVENTH$$BOOLEAN () #34 0x000000010026b55b in
QTWIDGETS$_$TQTWIDGET_$__$$_EVENTFILTER$QOBJECTH$QEVENTH$$BOOLEAN () #35 0x000000010028a682 in
QTWIDGETS$_$TQTVIEWPORT_$__$$_EVENTFILTER$QOBJECTH$QEVENTH$$BOOLEAN () #36 0x000000010028b7cd in
QTWIDGETS$_$TQTCUSTOMCONTROL_$__$$_VIEWPORTEVENTFILTER$QEVENTH$PBOOLEAN () #37 0x0000000103b9c92f in QLCLAbstractScrollArea::viewportEvent(QEvent*) () from /Library/Frameworks/Qt4Pas.framework/Versions/5/Qt4Pas ---Type <return> to continue, or q <return> to quit--- #38 0x0000000106114f10 in
QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #39 0x0000000106bdeff7 in
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #40 0x0000000105c98ade in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #41 0x0000000105c9eeb0 in QApplication::notify(QObject*, QEvent*) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #42 0x0000000106bdf54c in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #43 0x0000000105ca023d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #44 0x0000000105c4c62b in qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #45 0x00007fff8fd9be57 in -[NSWindow _reallySendEvent:isDelayedEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #46 0x00007fff8f72ed76 in -[NSWindow sendEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #47 0x0000000105c41607 in -[QCocoaWindow sendEvent:] () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #48 0x00007fff8f72b312 in -[NSApplication sendEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #49 0x0000000105c466e4 in -[QNSApplication sendEvent:] () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #50 0x0000000105c4efea in
qt_mac_send_event(QFlags<QEventLoop::ProcessEventsFlag>, NSEvent*, NSWindow*) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #51 0x0000000105c51370 in
QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #52 0x0000000106be1245 in
QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #53 0x0000000103b062b4 in QCoreApplication_processEvents () from /Library/Frameworks/Qt4Pas.framework/Versions/5/Qt4Pas #54 0x00000001001c70c1 in QTINT$_$TQTWIDGETSET_$__$$_APPWAITMESSAGE () #55 0x0000000100058006 in FORMS$_$TAPPLICATION_$__$$_IDLE$BOOLEAN () #56 0x000000010005a41d in FORMS$_$TAPPLICATION_$__$$_HANDLEMESSAGE () #57 0x000000010005a928 in FORMS$_$TAPPLICATION_$__$$_RUNLOOP () #58 0x00000001001c70a0 in
QTINT$_$TQTWIDGETSET_$__$$_APPRUN$TAPPLICATIONMAINLOOP () #59 0x000000010005a8cc in FORMS$_$TAPPLICATION_$__$$_RUN () #60 0x0000000100000e7d in PASCALMAIN () at lazarus.pp:132 #61 0x0000000100021b19 in SYSTEM_$$_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR () #62 0x0000000000000000 in ?? ()
(gdb)

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 20 lines
On 20.05.2015 14:32, Mattias Gaertner wrote: > Same stacktrace? > > Mattias ERROR in IDE: Creating gdb catchable error: [New Thread 0x1c17 of process 4309] Program received signal SIGFPE, Arithmetic exception. 0x0000000100696bf1 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt #0 0x0000000100696bf1 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 #1 0x0000000100b51c88 in ADD (this=0x11a334da0, SRCFILE=0x118154440, PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182 #2 0x0000000100b538ad in CHECKDUPLICATESRCFILES (parentfp=0x7fff5fbfdae0) at ../packager/interpkgconflictfiles.pas:994 #3 0x0000000100b5361c in CHECKINTERPKGFILES (IDEOBJECT=0x117d2e9f0, PKGLIST=0x11a3369c0, FILESCHANGED=false) at ../packager/interpkgconflictfiles.pas:1065

Do you have ppu files in your include files path?
Please test now.

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
Do you have ppu files in your include files path? Please test now. Mattias

I checked all lpk one by one, and all folders I couldn't find any ppu in include file path.
All lpk's "unit output directory (-FU)" like this. ../../all_libs/ $(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)

ERROR in IDE:
Creating gdb catchable error:

Program received signal SIGFPE, Arithmetic exception. 0x0000000100696b71 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt
#0 0x0000000100696b71 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 #1 0x0000000100b51c08 in ADD (this=0x118653fa0, SRCFILE=0x1197f38c0, PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182 #2 0x0000000100b5382d in CHECKDUPLICATESRCFILES
(parentfp=0x7fff5fbfdae0) at ../packager/interpkgconflictfiles.pas:993 #3 0x0000000100b5359c in CHECKINTERPKGFILES (IDEOBJECT=0x115feedd0, PKGLIST=0x11d20d620, FILESCHANGED=false)
at ../packager/interpkgconflictfiles.pas:1064
#4 0x00000001005647bd in PACKAGEGRAPHCHECKINTERPKGFILES (this=0x1161b45c0, IDEOBJECT=0x115feedd0, PKGLIST=0x11d20d620, FILESCHANGED=false) at ../packager/pkgmanager.pas:929 #5 0x00000001005572b4 in COMPILEREQUIREDPACKAGES (this=0x106ef3ac0, APACKAGE=0x0, FIRSTDEPENDENCY=0x117d41840,
SKIPDESIGNTIMEPACKAGES=true, POLICY=PUPASNEEDED) at ../packager/packagesystem.pas:3667
#6 0x000000010057159a in DOCOMPILEPROJECTDEPENDENCIES (this=0x1161b45c0, APROJECT=0x115feedd0, FLAGS=128) at ../packager/pkgmanager.pas:4164
#7 0x0000000100089e7b in DOBUILDPROJECT (this=0x106ef31c0, AREASON=CRBUILD, FLAGS=1, FINALIZERESOURCES=true) at main.pp:6575 #8 0x00000001000808c9 in MNUBUILDPROJECTCLICKED (this=0x106ef31c0, SENDER=0x1162c5f40) at main.pp:4266
#9 0x00000001004508e1 in MENUITEMCLICK (this=0x1162c5f40, SENDER=0x1162c5f40) at menuintf.pas:575
#10 0x00000001004545e9 in MENUITEMCLICK (this=0x1162c5f40, SENDER=0x1162c5f40) at menuintf.pas:1651
#11 0x0000000100452285 in TRIGGERCLICK (this=0x1162c5f40) at menuintf.pas:932
#12 0x0000000100f996e9 in CLICK (this=0x111c266f0) at editortoolbar_impl.pas:162
#13 0x00000001002b323f in
COMCTRLS$_$TTOOLBUTTON_$__$$_MOUSEUP$TMOUSEBUTTON$TSHIFTSTATE$LONGINT$LONGINT ()
#14 0x00000001001fba77 in
CONTROLS$_$TCONTROL_$__$$_DOMOUSEUP$TLMMOUSE$TMOUSEBUTTON () #15 0x00000001001fc5d6 in CONTROLS$_$TCONTROL_$__$$_WMLBUTTONUP$TLMMOUSE () #16 0x00000001000121cd in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal () #17 0x00000001019380b0 in $$fpclocal$_ld230 ()
#18 0x0000000101934048 in VMT_$CONTROLS_$$_TWINCONTROL () #19 0x000000000000002a in ?? ()
#20 0x0000000000000202 in ?? ()
#21 0x00007fff5fbfe228 in ?? ()
#22 0x0000000111c266f0 in ?? ()
#23 0x00007fff5fbfef70 in ?? ()
#24 0x0000000107b063c0 in ?? ()
#25 0x00007fff5fbfef70 in ?? ()
#26 0x0000000117596ba0 in ?? ()
#27 0x000000011153d840 in ?? ()
#28 0x00000001001fb859 in CONTROLS$_$TCONTROL_$__$$_WNDPROC$TLMESSAGE () #29 0x00000001001fa0c0 in
CONTROLS$_$TCONTROL_$__$$_PERFORM$LONGWORD$WPARAM$LPARAM$$LRESULT () #30 0x00000001001ed34b in
CONTROLS$_$TWINCONTROL_$__$$_ISCONTROLMOUSEMSG$formal$$BOOLEAN () #31 0x00000001001eea1d in CONTROLS$_$TWINCONTROL_$__$$_WNDPROC$TLMESSAGE () #32 0x0000000100271551 in
QTWIDGETS$_$TQTWIDGET_$__$$_DELIVERMESSAGE$formal$BOOLEAN$$LRESULT () #33 0x000000010026d54d in
QTWIDGETS$_$TQTWIDGET_$__$$_SLOTMOUSE$QOBJECTH$QEVENTH$$BOOLEAN () #34 0x000000010026b4db in
QTWIDGETS$_$TQTWIDGET_$__$$_EVENTFILTER$QOBJECTH$QEVENTH$$BOOLEAN () #35 0x000000010028a602 in
QTWIDGETS$_$TQTVIEWPORT_$__$$_EVENTFILTER$QOBJECTH$QEVENTH$$BOOLEAN () #36 0x000000010028b74d in
QTWIDGETS$_$TQTCUSTOMCONTROL_$__$$_VIEWPORTEVENTFILTER$QEVENTH$PBOOLEAN () #37 0x0000000103b9c92f in QLCLAbstractScrollArea::viewportEvent(QEvent*) () from /Library/Frameworks/Qt4Pas.framework/Versions/5/Qt4Pas ---Type <return> to continue, or q <return> to quit--- #38 0x0000000106114f10 in
QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #39 0x0000000106bdeff7 in
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #40 0x0000000105c98ade in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #41 0x0000000105c9eeb0 in QApplication::notify(QObject*, QEvent*) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #42 0x0000000106bdf54c in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #43 0x0000000105ca023d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #44 0x0000000105c4c62b in qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #45 0x00007fff8fd9be57 in -[NSWindow _reallySendEvent:isDelayedEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #46 0x00007fff8f72ed76 in -[NSWindow sendEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #47 0x0000000105c41607 in -[QCocoaWindow sendEvent:] () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #48 0x00007fff8f72b312 in -[NSApplication sendEvent:] () from /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit #49 0x0000000105c466e4 in -[QNSApplication sendEvent:] () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #50 0x0000000105c4efea in
qt_mac_send_event(QFlags<QEventLoop::ProcessEventsFlag>, NSEvent*, NSWindow*) ()
from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #51 0x0000000105c51370 in
QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /Library/Frameworks/QtGui.framework/Versions/4/QtGui #52 0x0000000106be1245 in
QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /Library/Frameworks/QtCore.framework/Versions/4/QtCore #53 0x0000000103b062b4 in QCoreApplication_processEvents () from /Library/Frameworks/Qt4Pas.framework/Versions/5/Qt4Pas #54 0x00000001001c7041 in QTINT$_$TQTWIDGETSET_$__$$_APPWAITMESSAGE () #55 0x0000000100057f86 in FORMS$_$TAPPLICATION_$__$$_IDLE$BOOLEAN () #56 0x000000010005a39d in FORMS$_$TAPPLICATION_$__$$_HANDLEMESSAGE () #57 0x000000010005a8a8 in FORMS$_$TAPPLICATION_$__$$_RUNLOOP () #58 0x00000001001c7020 in
QTINT$_$TQTWIDGETSET_$__$$_APPRUN$TAPPLICATIONMAINLOOP () #59 0x000000010005a84c in FORMS$_$TAPPLICATION_$__$$_RUN () #60 0x0000000100000e0d in PASCALMAIN () at lazarus.pp:132 #61 0x0000000100021aa1 in SYSTEM_$$_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR () #62 0x0000000000000000 in ?? ()
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150521/b3a30761/attachment.html>

Reply by email

FreeMan
to FreeMan

for not fill pain, not pay & hate puzzle.
in terminal
gdb lazarus
run
lazarus IDE started, run or build project, if get error, you can see which file is raised exception

FreeMan wrote 21 lines
> Do you have ppu files in your include files path? > Please test now. > > > Mattias I checked all lpk one by one, and all folders I couldn't find any ppu in include file path. All lpk's "unit output directory (-FU)" like this. ../../all_libs/ $(PkgName)/$(TargetCPU)-$(TargetOS)-$(LCLWidgetType) ERROR in IDE: Creating gdb catchable error: Program received signal SIGFPE, Arithmetic exception. 0x0000000100696b71 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt #0 0x0000000100696b71 in RAISEEXCEPTION (MSG=0x0) at ideprocs.pp:2278 #1 0x0000000100b51c08 in ADD (this=0x118653fa0, SRCFILE=0x1197f38c0, PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150521/93980ed6/attachment.html>
-------------- next part --------------
Index: /opt/lazarus/packager/interpkgconflictfiles.pas
===================================================================
--- /opt/lazarus/packager/interpkgconflictfiles.pas	(revision 49126)
+++ /opt/lazarus/packager/interpkgconflictfiles.pas	(working copy)
@@ -178,8 +178,10 @@
     RaiseException('');
   if (SrcFilenil) and (PPUFilenil) and (PPUFile.OwnerInfoSrcFile.OwnerInfo) then
     RaiseException('');
-  if (SrcFilenil) and FilenameIsCompiledSource(SrcFile.ShortFilename) then
+  if (SrcFilenil) and FilenameIsCompiledSource(SrcFile.ShortFilename) then begin
+    DebugLn('Check this file -->> ', SrcFile.FullFilename);
     RaiseException('');
+  end;
   if (PPUFilenil) and not FilenameIsCompiledSource(PPUFile.ShortFilename) then
     RaiseException('');
   Result:=length(CompiledFiles);

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 6 lines
for not fill pain, not pay & hate puzzle. in terminal gdb lazarus run lazarus IDE started, run or build project, if get error, you can see which file is raised exception

Thanks. Added.

What file raises the error?

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
Thanks. Added. What file raises the error? Mattias

dcpcrypt packages has $(PkgOutDir) in "other units files (-FU)" and I wrote component, it has about.pas, in project has same name unit too. and Ported components has search path same unit name too. late you know, in messages window, some time I saw dublicate file xxx.lfm file. compiler copy lfm files to o and ppu files folder, need filter or check path then add to warning.

Reply by email

Lukasz Sokol
to Mattias Gaertner: On Thu, 21 May 2015 17:44:53 +0300 Thanks. Added. What file raises the error? Mattias
Mattias Gaertner wrote 16 lines
On Thu, 21 May 2015 17:44:53 +0300 FreeMan wrote: > for not fill pain, not pay & hate puzzle. > in terminal > gdb lazarus > run > lazarus IDE started, run or build project, if get error, you can see > which file is raised exception Thanks. Added. What file raises the error? Mattias

Why not have the RaiseException('') to contain that message instead of adding a DebugLn ? (In each covered case, actually) ?

el es

Reply by email

Mattias Gaertner
to Lukasz Sokol
Show quoted text 5 lines
[...] > Thanks. Added. Why not have the RaiseException('') to contain that message instead of adding a DebugLn ? (In each covered case, actually) ?

Actually I did that. I should have written "Added with modifications".

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 10 lines
On Fri, 22 May 2015 10:54:47 +0100 Lukasz Sokol wrote: >[...] > > Thanks. Added. > > Why not have the RaiseException('') to contain that message instead of > adding a DebugLn ? (In each covered case, actually) ? Actually I did that. I should have written "Added with modifications".

P.S.: the raiseexception is only a consistency check. If the code is bug free it is never called.

Mattias

Reply by email

Mattias Gaertner
to FreeMan: dcpcrypt packages has $(PkgOutDir) in "other units files (-FU)" and I wrote component, it…
Show quoted text 7 lines
On 22.05.2015 10:14, Mattias Gaertner wrote: > Thanks. Added. > > What file raises the error? > > Mattias dcpcrypt packages has $(PkgOutDir) in "other units files (-FU)"

Do you mean (-Fu)?

and I wrote component, it has about.pas, in project has same name unit too.

Your backtrace shows
../packager/interpkgconflictfiles.pas:182
which is about a ppu file, not a .pas file.

Can you update your svn and see what error message you get now?

and Ported components has search path same unit name too. late you know, in messages window, some time I saw dublicate file xxx.lfm file. compiler copy lfm files to o and ppu files folder, need filter or check path then add to warning.

The IDE should warn if an .lfm file is in two packages (or project and a package).

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote
> dcpcrypt packages has $(PkgOutDir) in "other units files (-FU)" Do you mean (-Fu)?

Yes, (-Fu) wrong typo, sorry

Show quoted text 7 lines
> >and I wrote component, it has about.pas, in project has same name unit too. Your backtrace shows ../packager/interpkgconflictfiles.pas:182 which is about a ppu file, not a .pas file. Can you update your svn and see what error message you get now?

I redo error, and I get this error lines in r49131 UGS_About.ppu same name in my wrote component and in project, I renamed in component so problem fixed for me
ERROR in IDE: bug: src is compiled file:
SrcFile.Filename=/opt/proje_laz/projeler/Dental/lib/x86_64-darwin-qt/UGS_About.ppu Creating gdb catchable error:
[New Thread 0x1d17 of process 4733]

Program received signal SIGFPE, Arithmetic exception. 0x0000000100696c51 in RAISEEXCEPTION (
MSG=0x11cd73f58 'bug: src is compiled file:
SrcFile.Filename=/opt/proje_laz/projeler/Dental/lib/x86_64-darwin-qt/UGS_About.ppu') at ideprocs.pp:2278
2278 if (length(Msg) div (length(Msg) div 10000))=0 then ; (gdb) bt
#0 0x0000000100696c51 in RAISEEXCEPTION (
MSG=0x11cd73f58 'bug: src is compiled file:
SrcFile.Filename=/opt/proje_laz/projeler/Dental/lib/x86_64-darwin-qt/UGS_About.ppu') at ideprocs.pp:2278
#1 0x0000000100b51dbb in ADD (this=0x11d731ea0, SRCFILE=0x11dd10c80, PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182 #2 0x0000000100b53a35 in CHECKDUPLICATESRCFILES
(parentfp=0x7fff5fbfdb10) at ../packager/interpkgconflictfiles.pas:993 #3 0x0000000100b537a4 in CHECKINTERPKGFILES (IDEOBJECT=0x10fb57310, PKGLIST=0x11793c680, FILESCHANGED=false)
at ../packager/interpkgconflictfiles.pas:1064

Show quoted text 9 lines
> >and Ported components has search path same unit name too. > >late you know, in messages window, some time I saw dublicate file > >xxx.lfm file. compiler copy lfm files to o and ppu files folder, need > >filter or check path then add to warning. The IDE should warn if an .lfm file is in two packages (or project and a package). Mattias

I have one unit1.lfm, but after compile project, compiler copied it to ppu file(s)'s folder. so 2 lfm files been in path, I'm talk about this.

Reply by email