Sign in Join

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

Mailing lists / fpc-pascal / 2000-12

Crash with CMEM

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Andrey Kubyshev

Hello fpc-pascal,

Maybe my problem is in FAQs but i cannot find explanation for it. When i put CMEM unit whereever in my working project (before or after pthread unit) program crahses
on initialization of something before my program starts. here is strace output. Maybe i need some compilation keys ? I used lates sources from CVS.
...
uname({sys="Linux", node="mylinux", ...}) = 0
rt_sigaction(SIGRT_0, {0x4003ee70, [], 0x4000000}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x4003ef10, [], 0x4000000}, NULL, 8) = 0 rt_sigaction(SIGRT_2, {0x4003f030, [], 0x4000000}, NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [RT_0], NULL, 8) = 0
sigaction(SIGFPE, {0x8099140, [], 0}, NULL, 0x806e908) = 0 sigaction(SIGSEGV, {0x8099140, [], 0}, NULL, 0x806e908) = 0 open("/etc/timezone", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib/zoneinfo/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 open("/usr/lib/zoneinfo/localtime", O_RDONLY) = 4
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 44) = 44 brk(0) = 0x80e9940 brk(0x80e9970) = 0x80e9970 brk(0x80ea000) = 0x80ea000 read(4, 0, 536) = -1 EFAULT (Bad address) read(4, 0, 134) = -1 EFAULT (Bad address) --- SIGSEGV (Segmentation fault) ---

Best regards, Kubyshev Andrey
Unknown author
to Andrey Kubyshev
Andrey Kubyshev wrote 8 lines
Hello fpc-pascal, Maybe my problem is in FAQs but i cannot find explanation for it. When i put CMEM unit whereever in my working project (before or after pthread unit) program crahses on initialization of something before my program starts. here is strace output. Maybe i need some compilation keys ? I used lates sources from CVS.

What version of linux and (more important) of the C library are you running ?

Michael.

Show quoted text 32 lines
... uname({sys="Linux", node="mylinux", ...}) = 0 rt_sigaction(SIGRT_0, {0x4003ee70, [], 0x4000000}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x4003ef10, [], 0x4000000}, NULL, 8) = 0 rt_sigaction(SIGRT_2, {0x4003f030, [], 0x4000000}, NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [RT_0], NULL, 8) = 0 sigaction(SIGFPE, {0x8099140, [], 0}, NULL, 0x806e908) = 0 sigaction(SIGSEGV, {0x8099140, [], 0}, NULL, 0x806e908) = 0 open("/etc/timezone", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib/zoneinfo/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 open("/usr/lib/zoneinfo/localtime", O_RDONLY) = 4 read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 44) = 44 brk(0) = 0x80e9940 brk(0x80e9970) = 0x80e9970 brk(0x80ea000) = 0x80ea000 read(4, 0, 536) = -1 EFAULT (Bad address) read(4, 0, 134) = -1 EFAULT (Bad address) --- SIGSEGV (Segmentation fault) --- -- Best regards, Kubyshev Andrey _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Andrey Kubyshev
to Unknown author

Hello Michael,

Tuesday, December 12, 2000, 12:57:03 AM, you wrote:

Andrey Kubyshev wrote 8 lines
> Hello fpc-pascal, > > Maybe my problem is in FAQs but i cannot find explanation for it. > When i put CMEM unit whereever in my working project (before or > after pthread unit) program crahses > on initialization of something before my program starts. > here is strace output. Maybe i need some compilation keys ? > I used lates sources from CVS.

Michael> What version of linux and (more important) of the C library are you Michael> running ?

I have SuSe linux 7.0 and CLIB version 2.1

Best regards, Kubyshev Andrey